Skip to content

Commit

Permalink
Default to 0.1 second per tick in state machine transitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rf-ivtdai committed Jan 12, 2024
1 parent b3e91b6 commit f29cd4e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
12 changes: 9 additions & 3 deletions invertedai_cpp/examples/initialize_body.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
{
"location": "carla:Town03",
"num_agents_to_spawn": 10,
"location": "iai:terminal_and_quebec",
"num_agents_to_spawn": 20,
"states_history": null,
"agent_attributes": null,
"agent_attributes": [
["car"],
["pedestrian"],
["pedestrian"],
["pedestrian"],
["pedestrian"]
],
"traffic_light_state_history": null,
"get_birdview": true,
"get_infractions": true,
Expand Down
4 changes: 2 additions & 2 deletions invertedai_cpp/examples/initialize_sampling_with_types.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"location": "carla:Town04",
"num_agents_to_spawn": 10,
"location": "iai:drake_street_and_pacific_blvd",
"num_agents_to_spawn": 20,
"states_history": null,
"agent_attributes": [
["car"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"location": "canada:ubc_roundabout",
"num_agents_to_spawn": 10,
"num_agents_to_spawn": 20,
"states_history": [
[
[
Expand Down
4 changes: 2 additions & 2 deletions invertedai_cpp/invertedai/data_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ struct TrafficLightState {
* Light recurrent state that contains the current state and ticks remaining in this state.
*/
struct LightRecurrentState {
int state;
int ticks_remaining;
float state;
float ticks_remaining;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion invertedai_cpp/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ bazel build //examples:drive_tests
bazel build //examples:initialize_tests

./bazel-bin/examples/initialize_tests "EFGHTOKENABCD"
./bazel-bin/examples/drive_tests 30 "EFGHTOKENABCD"
./bazel-bin/examples/drive_tests 100 "EFGHTOKENABCD"

0 comments on commit f29cd4e

Please sign in to comment.