Skip to content

Commit

Permalink
update simulator
Browse files Browse the repository at this point in the history
Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com>
  • Loading branch information
TakaHoribe committed Jun 30, 2022
1 parent 6c9604f commit aff04ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,14 @@ def launch_setup(context, *args, **kwargs):
],
remappings=[
("input/ackermann_control_command", "/control/command/control_cmd"),
("input/manual_ackermann_control_command", "/vehicle/command/manual_control_cmd"),
("input/gear_command", "/control/command/gear_cmd"),
("input/manual_gear_command", "/vehicle/command/manual_gear_command"),
("input/turn_indicators_command", "/control/command/turn_indicators_cmd"),
("input/hazard_lights_command", "/control/command/hazard_lights_cmd"),
("input/trajectory", "/planning/scenario_planning/trajectory"),
("input/engage", "/vehicle/engage"),
("input/control_mode_request", "/system/control_mode_request"),
("output/twist", "/vehicle/status/velocity_status"),
("output/odometry", "/localization/kinematic_state"),
("output/steering", "/vehicle/status/steering_status"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ SimplePlanningSimulator::SimplePlanningSimulator(const rclcpp::NodeOptions & opt
"input/control_mode_request",
std::bind(&SimplePlanningSimulator::on_control_mode_request, this, _1, _2));

// TODO(Horibe): will be replaced by mode_request. May still be needed for scenario testing
// TODO(Horibe): should be replaced by mode_request. Keep for the backward compatibility.
sub_engage_ = create_subscription<Engage>(
"input/engage", rclcpp::QoS{1}, std::bind(&SimplePlanningSimulator::on_engage, this, _1));

Expand Down Expand Up @@ -178,6 +178,7 @@ SimplePlanningSimulator::SimplePlanningSimulator(const rclcpp::NodeOptions & opt

// control mode
current_control_mode_.data = ControlMode::AUTO;
current_manual_gear_cmd_.command = GearCommand::DRIVE;
}

void SimplePlanningSimulator::initialize_vehicle_model()
Expand Down

0 comments on commit aff04ea

Please sign in to comment.