Skip to content

Commit cd015fe

Browse files
rvoプランナ調整 (#615)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 20c3344 commit cd015fe

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

crane_local_planner/src/rvo2_planner.cpp

+8-2
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,14 @@ void RVO2Planner::overrideTargetPosition(crane_msgs::msg::RobotCommands & msg)
288288
}();
289289
if (not command.local_planner_config.disable_goal_area_avoidance) {
290290
bool is_in_penalty_area = isInBox(penalty_area, target_pos, 0.2);
291-
constexpr double SURROUNDING_OFFSET = 0.3;
292-
constexpr double PENALTY_AREA_OFFSET = 0.1;
291+
double SURROUNDING_OFFSET = 0.3;
292+
double PENALTY_AREA_OFFSET = 0.1;
293+
if (
294+
world_model->play_situation.getSituationCommandID() ==
295+
crane_msgs::msg::PlaySituation::STOP) {
296+
PENALTY_AREA_OFFSET = 0.5;
297+
SURROUNDING_OFFSET = 0.6;
298+
}
293299
if (isInBox(
294300
penalty_area, Point(command.current_pose.x, command.current_pose.y),
295301
PENALTY_AREA_OFFSET)) {

crane_msgs/msg/control/RobotCommand.msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ geometry_msgs/Pose2D current_pose
2929
bool enable_local_feedback
3030

3131
float32 target_theta
32-
float32 omega_limit 10.0
32+
float32 omega_limit 100.0
3333
# for local planner
3434
float32 theta_tolerance 0.0
3535

crane_sender/src/ibis_sender_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class IbisSenderNode : public SenderBase
152152
packet.stop_emergency = command.stop_flag;
153153
packet.acceleration_limit = command.local_planner_config.max_acceleration;
154154
packet.linear_velocity_limit = command.local_planner_config.max_velocity;
155-
packet.angular_velocity_limit = command.omega_limit;
155+
packet.angular_velocity_limit = 10.;
156156
packet.prioritize_move = true;
157157
packet.prioritize_accurate_acceleration = true;
158158

0 commit comments

Comments
 (0)