Ask Your Question
0

How can I use actionlib API directly to send multiple goals ?

asked 2018-05-29 06:43:40 -0600

Developer gravatar image

updated 2018-05-29 09:59:45 -0600

hi

simpleaction server can not handle multiple goals.If i send 5 goals, it cancels the 2. 3. 4. goals. Is there any way to deal with case?

thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-05-29 07:24:53 -0600

updated 2018-05-29 07:29:04 -0600

See this Answer:

Summary (from linked Answer):

  • There is no limit to how many action servers a node can have. It is perfectly possible to have one ROS node with multiple action servers; just pass them different topic names on creation.
  • Each SimpleActionServer is limited to one goal; whenever there is a new incoming goal, the currently pending goal is cancelled. This behaviour is a simplification of the actionlib API which catches most use cases.
  • If you want to have a more sophisticated handling of goals, you are free to do so using the actionlib API directly (without the SimpleActionServer). You could have multiple goals executing in parallel, queue goals, and generally do whatever you want.
edit flag offensive delete link more

Comments

thank you for the reference and answer, I have already seen that answer and ask a question here. I could not understand the third bullet point. How can I use actionlib API directly to get multiple goals?

Developer gravatar imageDeveloper ( 2018-05-29 08:50:25 -0600 )edit
2

I recommend you amend your question title to "How can I use actionlib API directly to send multiple goals" to more accurately reflect your actual question.

josephcoombe gravatar imagejosephcoombe ( 2018-05-29 09:42:00 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-05-29 06:43:40 -0600

Seen: 54 times

Last updated: May 29 '18