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

Running ROS with DMA

asked 2017-08-15 10:17:57 -0600

j3ven7 gravatar image

updated 2017-08-15 10:21:57 -0600

I have an Arduino Due configured to use DMA with the following library: https://github.com/rblilja/DmaSerial . However, when I try to run the code in my sketch I get the following error /ros_lib/ArduinoHardware.h:72:19: error: 'Serial' was not declared in this scope iostream = &Serial; I changed the extern reference to the Serial variable in the variant.h file from a UARTClass object to a DmaSerial object, called dmaSerial, which fixed the error above, but I still run into errors, and I am unsure exactly what to change in ROS to allow ROS to be configured with the arduino DMA. I currently get the following error,

undefined reference to `dmaSerial'

but it's on a line where there isn't even any code in my sketch, which is peculiar. If anyone has done this before or understands ROS well enough to tackle this issue that would be of great help.

edit retag flag offensive close merge delete

Comments

Can you post your terminal output (full error) and source?

jayess gravatar image jayess  ( 2017-08-15 18:03:39 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-30 18:14:45 -0600

rreignier gravatar image

You have to add a case to use the object dmaSerial in the ArduinoHardware.h file that you will found in the ros_lib folder.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-08-15 10:17:57 -0600

Seen: 714 times

Last updated: Sep 30 '17