Skip to content

Commit f6bd34f

Browse files
committed
added back start offset
1 parent 3e15d70 commit f6bd34f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/MotionPlanner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ int main(int argc, char **argv) {
297297
goal_ = server.acceptNewGoal();
298298

299299
// offset by start pose so that we never "go out" of arena
300-
double x_offset = 10;
301-
double y_offset = 10;
300+
double x_offset = 10-start.motion_point.pose.position.x;
301+
double y_offset = 10-start.motion_point.pose.position.y;
302302

303303
pose_start.x = goal_->start.motion_point.pose.position.x + x_offset;
304304
pose_start.y = goal_->start.motion_point.pose.position.y + y_offset;

0 commit comments

Comments
 (0)