Skip to content

Commit

Permalink
加減速挙動の改善 (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
HansRobo authored Dec 15, 2024
1 parent 53c38f8 commit fb7a18a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions crane_local_planner/src/rvo2_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ crane_msgs::msg::RobotCommands RVO2Planner::extractRobotCommandsFromRVOSim(
original_command.position_target_mode.front().target_y - robot->pose.pos.y());
if (distance < original_command.position_target_mode.front().position_tolerance) {
vel = Velocity::Zero();
} else if (
original_command.local_planner_config.terminal_velocity == 0. &&
original_command.position_target_mode.front().position_tolerance == 0. && distance < 0.03) {
// terminal_velocityが0のときはデフォルトで3cmのトレランス
vel = Velocity::Zero();
}
}

Expand Down
2 changes: 1 addition & 1 deletion crane_sender/src/ibis_sender_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class IbisSenderNode : public SenderBase
packet.enable_chip = command.chip_enable;
packet.lift_dribbler = command.lift_up_dribbler_flag;
packet.stop_emergency = command.stop_flag;
packet.acceleration_limit = command.local_planner_config.max_acceleration;
packet.acceleration_limit = command.local_planner_config.max_acceleration + 1.0;
packet.linear_velocity_limit = command.local_planner_config.max_velocity;
packet.angular_velocity_limit = 10.;
packet.prioritize_move = true;
Expand Down

0 comments on commit fb7a18a

Please sign in to comment.