Commit d1040f75 authored by Matteo Saveriano's avatar Matteo Saveriano
Browse files

Fixed compilation issues with libserial1

parent 10804c02
......@@ -10,7 +10,7 @@
#include <nav_msgs/Odometry.h>
#include <SerialStream.h>
#include <libserial/SerialStream.h>
using namespace LibSerial;
#include "lss_4dof_hw_interface.h"
......@@ -50,11 +50,10 @@ namespace lss_4dof_hw_interface
// Libserial Documentation: https://libserial.readthedocs.io/en/latest/description.html
SerialStream serial;
serial.Open("/dev/ttyUSB0");
serial.SetCharSize(SerialStreamBuf::CHAR_SIZE_8);
serial.SetBaudRate(SerialStreamBuf::DEFAULT_BAUD);
serial.SetBaudRate(SerialStreamBuf::BAUD_115200 );
serial.SetNumOfStopBits(1);
serial.SetFlowControl(SerialStreamBuf::FLOW_CONTROL_NONE);
serial.SetCharacterSize(LibSerial::CharacterSize::CHAR_SIZE_8);
serial.SetBaudRate(BaudRate::BAUD_115200);
serial.SetStopBits(LibSerial::StopBits::STOP_BITS_1);
serial.SetFlowControl(LibSerial::FlowControl::FLOW_CONTROL_NONE);
if(serial.good()){
ROS_INFO("Successfully connected to the LSS 4 DoF Arm");
} else{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment