Skip to content

Commit

Permalink
Setting use_sim_time for various nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Paweł Lech <[email protected]>
  • Loading branch information
pawellech1 committed Dec 13, 2023
1 parent 5274218 commit 82d1c1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion external/concealer/src/field_operator_application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
namespace concealer
{
FieldOperatorApplication::FieldOperatorApplication(const pid_t pid)
: rclcpp::Node("concealer_user", "simulation", rclcpp::NodeOptions().use_global_arguments(false)),
: rclcpp::Node("concealer_user", "simulation", rclcpp::NodeOptions().use_global_arguments(true)),
process_id(pid)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
rclcpp::NodeOptions options;
auto component = std::make_shared<simple_sensor_simulator::ScenarioSimulator>(options);
auto component = std::make_shared<simple_sensor_simulator::ScenarioSimulator>(options.use_global_arguments(true));
rclcpp::spin(component);
rclcpp::shutdown();
return 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def description():
namespace="simulation",
output="screen",
on_exit=ShutdownOnce(),
parameters=[{"port": port}]+make_vehicle_parameters()+[{"use_sim_time": True}],
parameters=[{"port": port, "use_sim_time": True}]+make_vehicle_parameters(),
# parameters=[{"port": port}]+make_vehicle_parameters(),
condition=IfCondition(launch_simple_sensor_simulator),
),
Expand All @@ -185,7 +185,7 @@ def description():
executable="openscenario_interpreter_node",
namespace="simulation",
output="screen",
parameters=make_parameters(),
parameters=[{"use_sim_time": True}]+make_parameters(),
on_exit=ShutdownOnce(),
),
Node(
Expand Down

0 comments on commit 82d1c1e

Please sign in to comment.