ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Rosserial Arduino custom message not being generated

asked 2021-05-10 05:33:20 -0600

sathyas gravatar image

I have made a custom message called gas_msg.msg. It is located in a package named gas_sensor_msg. The custom message has been created with catkin_make. I am now trying to make the custom message files in the Arduino libaries using the command "rosrun rosserial_arduino make_libraries.py ~/Arduino/libraries/ gas_sensor_msg". I first delete the old ros_lib before running the command, but it is not creating header files for the new custom message. It is only replacing the old default messages.

Any help is appreciated. Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-05-10 19:20:32 -0600

miura gravatar image

You probably need to run source devel/setup.bash and then you need to rosrun rosserial_arduino make_libraries.py ~/Arduino/libraries/ gas_sensor_msg. The messages generated by catkin_make are in the devel directory if you do not install it, and will not be included in the ros_lib creation unless you can reference them.

edit flag offensive delete link more

Comments

1

This worked! Tysm

sathyas gravatar image sathyas  ( 2021-05-10 19:35:12 -0600 )edit

@sathyas if this answered your question, then please accept the answer by clicking on the checkmark next to the answer

jayess gravatar image jayess  ( 2021-05-11 02:50:35 -0600 )edit

Question Tools

Stats

Asked: 2021-05-10 05:33:20 -0600

Seen: 714 times

Last updated: May 10 '21