Open buckybots opened 11 years ago
If you do just "Plan", you only get a motion plan, which you can visualize. The current state of the robot is not affected. If you click Plan & Execute (and you have a robot or a simulator behind), the robot will move, and the current state will be that which you expect.
Yes, planning and executing the plan works as expected. The issue is that
after this is done once, the robot in Gazebo is now in a new pose. To
create a new plan, we want to plan from the current (changed) pose, to a
new position. At this point I would expect that "Set Start State" ,
"
On Tue, May 21, 2013 at 4:33 AM, isucan notifications@github.com wrote:
If you do just "Plan", you only get a motion plan, which you can visualize. The current state of the robot is not affected. If you click Plan & Execute (and you have a robot or a simulator behind), the robot will move, and the current state will be that which you expect.
— Reply to this email directly or view it on GitHubhttps://github.com/ros-planning/moveit_planners/issues/13#issuecomment-18195644 .
I see. So basically you would like a mode where the start state stays pegged to the current state of the robot. This is done internally when you do Plan & Execute, but not when you just do Plan (even if followed by Execute). Is this correct?
Yes, correct, except, I thought I was reporting a bug. I am not yet familiar enough with the software to determine if the interface should act differently.
I just tried same thing using Plan and Execute (but I did not reinitialize the setup). When I select "Update" on Query: Select Start State:
I, too, was using
I think the issue here is that the planning scene topic is probably not set to the "monitored_planning_scene" in the RVIZ plugin -- which means that the "current state" does not update as the robot moves.
+1 to @mikeferguson's explanation
I did already have the planning scene topic set to "monitored_planning_scene". It turns out my real issue was forgetting to hit the Update button in the Query: Select Start State panel for
When following the directions :
Press the "Set Start To Current" button in the "Planning" tab at the bottom of the Motion Planning plugin. This will set the start configuration that you want to plan from to the current configuration of the robot. You will need to do this every time when planning with a real or simulated robot.
It appears this button sets the start position to the initial position of the robot, not its current position. So that after the first plan is executed, the initial position no longer matches the current position, and the button does not operate as expected.