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

Goals in actionlib

asked 2011-02-17 13:55:09 -0500

Homer Manalo gravatar image

The actionlib accepts only one goal at a time. Does it mean I cannot do this:

#goal
int32[] goal
or
#goal
int32 goal1
int32 goal2
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2011-02-17 14:21:23 -0500

mmwise gravatar image

The goal of an action is defined by a single message type it can have compound data inside. For example the VisionPlugDetection.action has a several data types in the goal definition of the action (string, geometry_msgs/PoseStamped, bool) while the result has only one data type (geometry_msgs/PoseStamped):

# Goal
string camera_name
geometry_msgs/PoseStamped prior
# Origin is on left (FALSE) for left forearm looking at plug on base,
# on right (TRUE) for right forearm looking at plug in gripper.
bool origin_on_right
---
# Result
geometry_msgs/PoseStamped plug_pose
---
# Feedback

Actionlib can only act on one goal at a time, meaning as goals are received by the action they are buffered and acted on in the order received. Depending on the application sequences of goals will either be preempted, queued, or acted on concurrently. This behavior is dependent on the action server implementation.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-02-17 13:55:09 -0500

Seen: 1,389 times

Last updated: Feb 17 '11