Ask Your Question

Matlab can't create my ros action client:Failed to create a simple action client

asked 2018-01-22 02:32:57 -0600

ZouQiang gravatar image

updated 2018-01-22 02:35:36 -0600

I use this command to create a ros action client in matlab:

[actClient,goalMsg] = rosactionclient('/do_dishes');

However, an error occured:

Failed to create a simple action client with name /do_dishes and type action_tutorials/DoDishes. Verify that the action type is valid.

I do not know if I need to define the action message type in matlab.

DoDishes_client and DoDishes_server nodes worked well in ROS.

So who can help me?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-01-23 00:37:27 -0600

ZouQiang gravatar image

I have solved this proble. We should "Create Custom Messages from ROS Package" by ourselfs.

Firstly, install "Robotics System Toolbox Interface for ROS Custom Messages"

Secondly, because my packages and matlab are both in ubuntu system, so I just enter follow codes in matlab command window.

userfolder = '/home/robot/msg_gen';

and I had put my packages "action_tutorials" into msg_gen. Then message file will be generated in /msg_gen/matlab_gen . You can watch for more details.

edit flag offensive delete link more


I have done that but I couldn't use that custom message in Simulink. I can't even open it using " rosmsg('show','xxxxxx')" or " YYYY= rosmessage('XXXX')". My message is there in rosmsg list (Matlab) but i cant access it in matlab.

SkullKrushur gravatar image SkullKrushur  ( 2019-02-05 03:49:10 -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



Asked: 2018-01-22 02:32:57 -0600

Seen: 489 times

Last updated: Jan 23 '18