Hello everyone,
I'm trying to control a dynamixel ax-12a with the OpenCM9.04 board and I'm programming the board using the arduino IDE.
I was using the Dynamixel Workbench library for commanding the servo and it was working just fine, but because I will need to use ROS in my project, I wanted to include it into my code already.
I downloaded the rosserial library and included it into simple h_Position example (under the OpenCM9.04/Dynamixel Workbench examples ) like:
...
#include <DynamixelWorkbench.h>
#include <ros.h>
...
but as soon as I included the <ros.h> I started getting the following error
In file included from /home/dominik/Arduino/libraries/Rosserial_Arduino_Library/src/ros.h:39:0,
from /tmp/arduino_modified_sketch_218835/h_Position.ino:20:
/home/dominik/Arduino/libraries/Rosserial_Arduino_Library/src/ArduinoHardware.h: In constructor 'ArduinoHardware::ArduinoHardware()':
/home/dominik/Arduino/libraries/Rosserial_Arduino_Library/src/ArduinoHardware.h:55:16: error: cannot convert 'USBSerial*' to 'HardwareSerial*' in assignment
iostream = &Serial;
and the code won't compile.
Does anyone know, what is causing this error and how to work around it?
Thanks in advance!
Bookmarks