Adding Custom Messages(Generating Message Header File)

asked 2021-02-25 15:05:58 -0500

nicholai_hel gravatar image

I'm following this tutorial: http://wiki.ros.org/rosserial_arduino...

And the last part(rosrun rosserial_client make_library.py Arduino/libraries Num for me) didn't work although I followed the steps in this tutorial's 2.1 Creating a msg part: http://wiki.ros.org/ROS/Tutorials/Cre...

I should have been created Num.msg file and I can see it when I search "Num.msg" in my home directory,it is in my worksapce's src folder's package I work on.

But when I tried to run this

$rosrun rosserial_client make_library.py Arduino/libraries Num

Required statement didn't occur.(This command will create the headers, and locate them in Arduino/libraries/ros_lib/Num/.)

It didn't gave me any error but in my Arduino/libraries/ros_lib/ folder,Num didn't created.Why is that?

edit retag flag offensive close merge delete

Comments

Your first link indicates the command should be rosrun rosserial_client make_library.py path_to_libraries your_message_package. I'm guessing that Num is not the right package name. Should it be beginner_tutorials, like in your second link? If that's not the issue, please post your CMakeLists.txt and package.xml.

tryan gravatar image tryan  ( 2021-02-28 13:49:18 -0500 )edit

rosrun rosserial_client make_library,py ~/Arduino/libraries open_manipulator_msgs Doesn't do anything either for me.

GreyHobbyist gravatar image GreyHobbyist  ( 2022-07-14 18:16:44 -0500 )edit