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

Why "#include <string>" doesn't work on rosserial?

asked 2017-04-24 08:03:36 -0600

w.fradin gravatar image

Hi,

I work with ROS and Arduino and I want to include some libraries like #include <string> or #include <vector> to my rosserial program. When i compile, i have : fatal error: string: No such file or directory #include <string>.

I haven't find a solution. If someone can explain me how should i do.

Thank for your help.

William

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-04-24 10:10:41 -0600

Headers like string and vector are part of the STL, which isn't included with the Arduino IDE by default. See this discussion for more details:

https://arduino.stackexchange.com/que...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-04-24 08:03:36 -0600

Seen: 809 times

Last updated: Apr 24 '17