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

Revision history [back]

click to hide/show revision 1
initial version
  1. Works out of the box. But the goalhandles received in the GoalCallback on the server side have to be stored somewhere to get access to older goals. In my implementation I just store them in a vector.

  2. Store the callback goalhandles on the server side and store the client goalhandles on the client side. Client goalhandles are the returned object of actionclient.sendGoal(goal).

  3. Use the client goalhandle received from the sendGoal-Function.

  4. The server goalhandle has a function allowing to access the goal. It can be accessed with (*server_goalhandle.getGoal()).[goal-attribute1]