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

rosserial: cstring: No such file or directory (arduino ide)

asked 2021-08-24 12:26:15 -0600

matthewfwork gravatar image

updated 2021-08-25 01:26:57 -0600

gvdhoorn gravatar image

I have been trying to make rosserial work for days now to no avail. This is the most recent issue off a fresh arduino install with a successful catkin_make and catkin_make install. I am running ubuntu 20.04. This happens when I try to verify the code in IDE

Arduino: 1.8.15 (Linux), Board: "Arduino Uno"

In file included from /home/ubuntu/Desktop/arduino library/sketchbook/libraries/Rosserial_Arduino_Library/src/std_msgs/Time.h:7:0,
                 from /home/ubuntu/Desktop/arduino library/sketchbook/libraries/Rosserial_Arduino_Library/src/ros/node_handle.h:40,
                 from /home/ubuntu/Desktop/arduino library/sketchbook/libraries/Rosserial_Arduino_Library/src/ros.h:38,
                 from /home/ubuntu/Desktop/arduino library/sketchbook/Hello_world/Hello_world.ino:9:
/home/ubuntu/Desktop/arduino library/sketchbook/libraries/Rosserial_Arduino_Library/src/ros/msg.h:40:10: fatal error: cstring: No such file or directory
 #include <cstring>
compilation terminated.
exit status 1
Error compiling for board Arduino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-08-24 12:39:55 -0600

gvdhoorn gravatar image

updated 2021-08-24 12:41:34 -0600

Seems to be a known issue: ros-drivers/rosserial#518 and apparently ros-drivers/rosserial#525 should fix it.

edit flag offensive delete link more


Sweet that seemed to have worked because now I get a new error when compliling

Arduino: 1.8.15 (Linux), Board: "Arduino Uno"
Hello_world:2:14: error: expected constructor, destructor, or type conversion before 'Publisher'
  * rosserial Publisher Example
exit status 1
expected constructor, destructor, or type conversion before 'Publisher'
matthewfwork gravatar image matthewfwork  ( 2021-08-24 12:47:39 -0600 )edit

That would be a different problem.

gvdhoorn gravatar image gvdhoorn  ( 2021-08-24 12:58:12 -0600 )edit

got it thanks for the help for original issue!

matthewfwork gravatar image matthewfwork  ( 2021-08-24 13:00:44 -0600 )edit

Question Tools



Asked: 2021-08-24 12:26:15 -0600

Seen: 559 times

Last updated: Aug 25 '21