Ask Your Question

How to send empty message from js to ros

asked 2016-11-28 14:51:07 -0500

Saif Alabachi gravatar image

I'm trying to use roslibjs and I want to try to send std_msgs/Empty for take_off or land, I tried to send like


but I receive an error about missing the field

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-11-28 15:57:09 -0500

Saif Alabachi gravatar image

Thank you, i figure it out, it is only


Because it is empty message!

edit flag offensive delete link more


I would actually recommend to use a Service with the std_srvs/Trigger type. That communicates intent in a much more explicit way than std_msgs/Empty.

gvdhoorn gravatar image gvdhoorn  ( 2016-11-29 02:14:57 -0500 )edit

answered 2016-11-28 15:42:24 -0500

andruino gravatar image

try with a std_msgs/String

edit flag offensive delete link more

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: 2016-11-28 14:51:07 -0500

Seen: 370 times

Last updated: Nov 28 '16