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

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

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

matthewfwork gravatar image

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

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
1

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

gvdhoorn gravatar image

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

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

Comments

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 -0500 )edit
1

That would be a different problem.

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

got it thanks for the help for original issue!

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

Question Tools

2 followers

Stats

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

Seen: 581 times

Last updated: Aug 25 '21