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

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

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

w.fradin gravatar image


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.


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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:

edit flag offensive delete link more

Question Tools

1 follower


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

Seen: 713 times

Last updated: Apr 24 '17