Skip to content

Commit

Permalink
HALTでは目標位置の上書きをしない
Browse files Browse the repository at this point in the history
  • Loading branch information
HansRobo committed Jan 16, 2025
1 parent daed9b3 commit 3520369
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crane_local_planner/src/rvo2_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,11 @@ crane_msgs::msg::RobotCommands RVO2Planner::calculateRobotCommand(
const crane_msgs::msg::RobotCommands & msg)
{
crane_msgs::msg::RobotCommands commands = msg;
overrideTargetPosition(commands);
if (
world_model->play_situation.getRefereeCommandID() !=
robocup_ssl_msgs::msg::Referee::COMMAND_HALT) {
overrideTargetPosition(commands);
}
reflectWorldToRVOSim(commands);
// RVOシミュレータ更新
rvo_sim->doStep();
Expand Down

0 comments on commit 3520369

Please sign in to comment.