How to change MoveIt! goal state through code?
I am working with ROS Indigo and MoveIt! and I already set up my robot through the setup assistant, and In Rivz I can see the start and goal state, in green and orange. I can manually move the orange goal state from Rviz and then plan and execute a trajectory in order to reach it. Otherwise, I have a piece of code that sets a goal trajectory and plans and executes the whole trajectory to it.
But I would like to just move the (orange) goal state to a new position through a piece of code, without planning any trajectory. Just changing the goal state. How can I do it?
Please stop editing your posts over and over again. This sends out notification emails every time to everyone who watches ros-answers.
Oh damn, I am sorry, I didn't know. I just wanted to have it pop up at the top of the question list in the Home page. I will stop now that I have an answer.
Hey you said that you had a piece of code that sets a goal trajectory and plans and executes that trajectory? I am struggling to figure out how to do this, would you mind giving some details?