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

JointTrajectoryResult not defined?

asked 2011-06-23 17:12:44 -0500

liuhuanjim013 gravatar image


I am trying to get the result of a JointTrajectoryAction. The my_joint_trajecotry_action_client.get_result() returns a message of type JointTrajectoryResult, but it has no meaningful fields. What's the right way to get the result of a JointTrajectoryAction?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-06-23 17:55:51 -0500

Eric Perko gravatar image

I'm not familiar with using JointTrajectoryAction in particular, but according to the docs, the result is supposed to be empty. This means that you would use the state of the ActionClient to determine the result of your command to the controller. For example, some states that you could get (e.g. with my_joint_trajectory_action_client.get_state() ) could be GoalStatus.SUCCEEDED or GoalStatus.ABORTED. There are other states that you could get; see the actionlib docs for details.

edit flag offensive delete link more


Thanks Eric! This is exactly what I need :)
liuhuanjim013 gravatar image liuhuanjim013  ( 2011-06-23 18:11:33 -0500 )edit

Question Tools


Asked: 2011-06-23 17:12:44 -0500

Seen: 168 times

Last updated: Jun 23 '11