rosserial_arduino_lib
rosserial_arduino_lib copied to clipboard
Controllino Ros
We are using a Controllino, seems we have to modify the Rosserial arduino library/src/ros/msg.h file with the following modifications:
Line 40 #include <string.h> Line 68 memcpy(&val, &f, sizeof(val)); Line 182 memcpy(f, &val, sizeof(val));
The library Cstring is not recognised.
Today I installed this library and attempted to verify the Blink example code in the Rosserial Arduino Library of the Arduino IDE. It failed for the reasons above. Next is the following error.
Arduino\libraries\Rosserial_Arduino_Library\src/ros/node_handle.h:122:47: error: 'nullptr' was not declared in this scope Subscriber_ * subscribers[MAX_SUBSCRIBERS] {nullptr}; ^ Error compiling.