How to send a goal directly to action server

Hi,

At the Unit 4 ROS Action, exercise 4.10, i should send a goal direckty to the action server ardrone_action_server with the following command:

What should i specify for [type_of_the_message_used_by_the_topic] here?

Thanks!

Hi @delethai.mai,

in order to send action goals you have to make sure that:

  1. you ran catkin_make to build the action message
  2. source ~/catkin_ws/devel/setup.bash in EVERY SHELL

Then you can send the goal by typing rostopic pub /“name_of_as_server”/goal after which you can press tab+tab to auto-fill the correct message and then another tab+tab to autofill the message structure, which you then can alter

2 Likes

If you want to know the type of message used by a topic you need to do the command:

rostopic info /name_of_the_topic

Then you will see the type of message used by the topic

1 Like

@delethai.mai Please let us know how it goes.

I believe if change the instrction to this: rostopic pub /[name_of_action_server]/goal [TAB][TAB] would be more clear because I met the same problem.

1 Like