I am trying to create a custom message for ROS noetic and implement it in a rosserial_arduino node. To do that, I first created my workspace:
mkdir neopixel_ws
then, I cloned the rosserial_arduino into src
directory, and I created (in src
folder) other folder named neopixel
which contains the msg
folder with my custom message. My custom message contains the following lines:
uint8 red
uint8 green
uint8 blue
uint8 pixel_number
bool enable
then, I modified the CMakeLists.txt
and package.xml
as follows:
https://gist.github.com/LeonardoJulianOcampo/e209896e6e9df80b475d7f535b31effa
after that, I go to neopixel_ws
root and execute:
catkin_make
when finished, I ran catkin_make
and source devel/setup.bash
.
Finally, I try generate the header files for rosserial_arduino of my custom message. To do so, I ran:
rosrun rosserial_client make_libraries /home/leo/Arduino/libraries/ neopixel_msgs
The output of this command indicates the following:
...
Exporting nav_msgs
Messages:
MapMetaData,OccupancyGrid,GridCells,GetMapActionResult,GetMapActionGoal,GetMapFeedback,GetMapActionFeedback,Path,GetMapAction,GetMapGoal,Odometry,GetMapResult,
Services:
LoadMap,GetMap,SetMap,GetPlan,
Exporting neopixel
Messages:
Unable to build message: neopixel/neopixel_msg
neopixel_msg,Exporting nodelet
Services:
NodeletLoad,NodeletList,NodeletUnload,
Exporting pcl_msgs
Messages:
Vertices,PolygonMesh,ModelCoefficients,PointIndices,
...
In the Arduino/libraries folder, the ros_lib folder is created with the default headers, but not with my custom message.
How can I resolve this? Is there any part of the process that I might be doing incorrectly? Any suggestions are greatly appreciated. Thanks.