ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You can also define the node handle in your code using NodeHandle_
, which avoids the need to edit rosserial code:
ros::NodeHandle_<ArduinoHardware, 5, 5, 125, 125> nh;
Be aware, though, that rosserial on a ~2 kbyte Arduino can easily get a corrupted stack/heap if you're not careful, and it can be unstable in mysterious ways. I've had issues with around 600 or fewer bytes free RAM. (In fact, it's been frustrating enough that I've abandoned rosserial in favor of ros_arduino_bridge.)
If possible, switching to a Mega or Teensy would be more stable.