-
Notifications
You must be signed in to change notification settings - Fork 33
Add "set to goal" button for start state in rviz #13
Comments
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 On Tue, May 21, 2013 at 4:33 AM, isucan [email protected] wrote:
|
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 On Tue, May 21, 2013 at 10:51 AM, isucan [email protected] wrote:
|
I, too, was using state expecting that to be state resulting from the last trajectory execution, not the initial position of the robot. Now that there is a button, I can achieve what I want - but it was confusing at first. |
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 . For some reason I didn't remember having to do that before when working with a fresh moveit_config/demo.launch file and that the normal behavior was that it automatically would update the current position after having already executed a plan. |
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.
The text was updated successfully, but these errors were encountered: