Lots of errors compiling with ros_lib library since updating libraries

Hi,

I'm using an Arduino Uno and IDE 1.8.10 (also tried 1.8.4).

Since I updated my libraries a few days ago, my sketches can't be compiled anymore.

one error is:

Arduino: 1.8.4 (Linux), Board: "Arduino Uno"

In file included from /home/ubuntu/Arduino/libraries/ros_lib/ros.h:43:0,
                 from /home/ubuntu/Arduino/servo_uss/servo_uss.ino:26:
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:67:33: error: expected ')' before '*' token
     ArduinoHardware(SERIAL_CLASS* io , long baud= 57600){
                                 ^
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:56:24: error: 'Serial_' does not name a type; did you mean 'Serial'?
   #define SERIAL_CLASS Serial_
                        ^
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:111:5: note: in expansion of macro 'SERIAL_CLASS'
     SERIAL_CLASS* iostream;
     ^~~~~~~~~~~~
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h: In constructor 'ArduinoHardware::ArduinoHardware()':
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:79:7: error: 'iostream' was not declared in this scope
       iostream = &Serial;
       ^~~~~~~~
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:79:7: note: suggested alternative: 'Stream'
       iostream = &Serial;
       ^~~~~~~~
       Stream
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h: In copy constructor 'ArduinoHardware::ArduinoHardware(ArduinoHardware&)':
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:84:13: error: 'class ArduinoHardware' has no member named 'iostream'
       this->iostream = h.iostream;
             ^~~~~~~~
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:84:26: error: 'class ArduinoHardware' has no member named 'iostream'
       this->iostream = h.iostream;
                          ^~~~~~~~
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h: In member function 'void ArduinoHardware::init()':
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:99:7: error: 'iostream' was not declared in this scope
       iostream->begin(baud_);
       ^~~~~~~~
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:99:7: note: suggested alternative: 'Stream'
       iostream->begin(baud_);
       ^~~~~~~~
       Stream
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h: In member function 'int ArduinoHardware::read()':
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:102:23: error: 'iostream' was not declared in this scope
     int read(){return iostream->read();};
                       ^~~~~~~~
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:102:23: note: suggested alternative: 'Stream'
     int read(){return iostream->read();};
                       ^~~~~~~~
                       Stream
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h: In member function 'void ArduinoHardware::write(uint8_t*, int)':
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:105:9: error: 'iostream' was not declared in this scope
         iostream->write(data[i]);
         ^~~~~~~~
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:105:9: note: suggested alternative: 'Stream'
         iostream->write(data[i]);
         ^~~~~~~~
         Stream
Multiple libraries were found for "Servo.h"
 Used: /home/ubuntu/Arduino/libraries/Servo
 Not used: /opt/arduino-1.8.4/libraries/Servo
exit status 1
Error compiling for board Arduino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Other sketches also show errors, but they are too long to post here...
Anybody know whats going on?

Sounds like a problem with that library? Where did it come from? Have you checked the documentation for the latest release of that library?

@DrAzzy
Yeah, guess there's aproblem with that specific library, because the other sketches also give errors about /home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h .
It's the library needed so teh Arduino can interact with ROS via rosserial. The latest documentation is: rosserial_arduino/Tutorials/Arduino IDE Setup - ROS Wiki
Maybe i should try reinstalling that libraray?

DrAzzy:
Sounds like a problem with that library? Where did it come from? Have you checked the documentation for the latest release of that library?

I just reinstalled ros_lib, now I’m getting the following error:

Arduino: 1.8.10 (Linux), Board: "Arduino Uno"

In file included from /home/ubuntu/Arduino/servo_uss/servo_uss.ino:3:0:
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoTcpHardware.h:48:7: error: redefinition of 'class ArduinoHardware'
 class ArduinoHardware {
       ^~~~~~~~~~~~~~~
In file included from /home/ubuntu/Arduino/libraries/ros_lib/ros.h:43:0,
                 from /home/ubuntu/Arduino/servo_uss/servo_uss.ino:1:
/home/ubuntu/Arduino/libraries/ros_lib/ArduinoHardware.h:65:7: note: previous definition of 'class ArduinoHardware'
 class ArduinoHardware {
       ^~~~~~~~~~~~~~~
Multiple libraries were found for "ros.h"
 Used: /home/ubuntu/Arduino/libraries/ros_lib
Multiple libraries were found for "SPI.h"
 Used: /home/ubuntu/.arduino15/packages/arduino/hardware/avr/1.8.2/libraries/SPI
Multiple libraries were found for "Ethernet.h"
 Used: /home/ubuntu/Arduino/libraries/Ethernet
 Not used: /opt/arduino-1.8.10/libraries/Ethernet
Multiple libraries were found for "Servo.h"
 Used: /home/ubuntu/Arduino/libraries/Servo
 Not used: /opt/arduino-1.8.10/libraries/Servo
exit status 1
Error compiling for board Arduino Uno.