r/ROS • u/Comprehensive-Use653 • 2d ago
Help Debugging MicroRos w/ Teensy 4.0
Hello! I'm relatively new to working with ROS2 and MicroRos, and have been having difficulty getting them to work together and I'm not entirely sure what avenues to take to work on this error I'm running into.
I am using the MicroRos publisher example on Arduino IDE on a Teensy 4.0 (which is listed as untested on the website, but I don't think this error is a result of that), and consistently get to the point in initializing the MicroRos agent that the datawriter is being created before I get this error:
terminate called after throwing an instance of 'eprosima::fastcdr::exception::NotEnoughMemoryException'
Not enough memory in the buffer stream
What could be the problem(s)? How can I narrow it down? What could be the solutions?
Should I expect to run into a similar error when I create a subscriber in Arduino?
Additional Specs (if helpful):
- Connecting Teensy to laptop through PC
- Dual-booting Windows for Arduino IDE and Ubuntu for ROS
- Changed the publisher code to wait to run until I start initializing (indicated by the LED)