ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Planning sequence of motion using arm_navigation/moveit

asked 2012-11-06 11:37:01 -0500

Tien Thanh gravatar image

Hi,

I would like to planning sequence of motion with planning_component_visualizer. In the menu handler, there are only the option: set start and set end position.I would like to add option: "set next motion" which will swap the current end_state_ to a new start_state_ and selectmarker from the new start_state_ to set new goal. But I don't know how to set new start_state_ to "current" end_state_ (which is KinematicState), therefore, the start_state_ also changes when I start move the marker to the new end_state.

Is there any way to get the current KinematicState?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-11-06 12:17:36 -0500

Tien Thanh gravatar image

Problem is solved:

vector< double > state_vector;

gc.end_state_->getKinematicStateValues(state_vector);

gc.start_state_->setKinematicState(state_vector);

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-11-06 11:37:01 -0500

Seen: 240 times

Last updated: Nov 06 '12