Goals in actionlib
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
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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
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.
Asked: 2011-02-17 13:55:09 -0500
Seen: 1,368 times
Last updated: Feb 17 '11