Fixed service name confilict

This commit is contained in:
2025-02-26 16:47:58 +01:00
parent 4576703012
commit e46b336357

View File

@ -76,10 +76,10 @@ namespace mg {
sv_rotate = rclcpp_action::create_server<Rotate>(
this,
"MoveStraight",
std::bind(&MgNavigationServer::handle_goal<Rotate>, this, _1, _2, "MoveStraight"),
std::bind(&MgNavigationServer::handle_cancel<Rotate>, this, _1, "MoveStraight"),
std::bind(&MgNavigationServer::handle_accepted<Rotate>, this, _1, "MoveStraight"));
"Rotate",
std::bind(&MgNavigationServer::handle_goal<Rotate>, this, _1, _2, "Rotate"),
std::bind(&MgNavigationServer::handle_cancel<Rotate>, this, _1, "Rotate"),
std::bind(&MgNavigationServer::handle_accepted<Rotate>, this, _1, "Rotate"));
}
};