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

Revision history [back]

click to hide/show revision 1
initial version

I didn't find any ros_lib folder as mentioned in above answers. But fixed it. the problem is in your ros/msg.h file #include <cstring> no longer works, replace it with #include <string.h> and the std::memcpy() finction is not a part of std anymore, so change it to memcpy().

Summary: (Changes) File - ros/msg.h

  1. Change -> #include <cstring> to #include <string.h>
  2. Change -> std::memcpy() to memcpy()

And it will work!

I didn't find any ros_lib folder as mentioned in above answers. But fixed it. the problem is in your ros/msg.h file #include <cstring> no longer works, replace it with #include <string.h> and the std::memcpy() finction function is not a part of std anymore, so change it to memcpy().

Summary: (Changes) File - ros/msg.h

  1. Change -> #include <cstring> to #include <string.h>
  2. Change -> std::memcpy() to memcpy()

And it will work!