Skip to content

Commit

Permalink
update
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 aff9c01 commit cfd080a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ class PLANNING_SIMULATOR_PUBLIC SimplePlanningSimulator : public rclcpp::Node
/**
* @brief ControlModeRequest server
*/
void on_operation_mode_request(
void on_control_mode_request(
const ControlModeRequest::Request::SharedPtr request,
const ControlModeRequest::Response::SharedPtr response);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ SimplePlanningSimulator::SimplePlanningSimulator(const rclcpp::NodeOptions & opt
"input/trajectory", QoS{1}, std::bind(&SimplePlanningSimulator::on_trajectory, this, _1));

srv_mode_req_ = create_service<tier4_vehicle_msgs::srv::ControlModeRequest>(
"operation_mode_request",
std::bind(&SimplePlanningSimulator::on_operation_mode_request, this, _1, _2));
"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
sub_engage_ = create_subscription<Engage>(
Expand Down Expand Up @@ -379,7 +379,7 @@ void SimplePlanningSimulator::on_engage(const Engage::ConstSharedPtr msg)
simulate_motion_ = msg->engage;
}

void SimplePlanningSimulator::on_operation_mode_request(
void SimplePlanningSimulator::on_control_mode_request(
const ControlModeRequest::Request::SharedPtr request,
const ControlModeRequest::Response::SharedPtr response)
{
Expand Down

0 comments on commit cfd080a

Please sign in to comment.