We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e15d70 commit f6bd34fCopy full SHA for f6bd34f
1 file changed
src/MotionPlanner.cpp
@@ -297,8 +297,8 @@ int main(int argc, char **argv) {
297
goal_ = server.acceptNewGoal();
298
299
// offset by start pose so that we never "go out" of arena
300
- double x_offset = 10;
301
- double y_offset = 10;
+ double x_offset = 10-start.motion_point.pose.position.x;
+ double y_offset = 10-start.motion_point.pose.position.y;
302
303
pose_start.x = goal_->start.motion_point.pose.position.x + x_offset;
304
pose_start.y = goal_->start.motion_point.pose.position.y + y_offset;
0 commit comments