Ask Your Question

jordiguerrero's profile - activity

2020-11-18 22:48:35 -0500 received badge  Famous Question (source)
2018-08-31 12:14:57 -0500 received badge  Enthusiast
2018-06-25 08:06:25 -0500 received badge  Notable Question (source)
2018-06-25 05:57:41 -0500 marked best answer rosserial Teensy bluetooth problem

Hello,

I'm trying to use rosserial with Teensy 3.5 through bluetooth.

My first step: change the serial port from Serial to Serial1.

I follow the thread: https://answers.ros.org/question/1982...

It compiles with Arduino Mega board but no with Teensy 3.5 (or other Teensy boards)


I use: Ubuntu 16.04, Kinetic ros, Arduino 1.8.5 The Hello World example code: http://wiki.ros.org/rosserial_arduino...


I tried to ways:

  1. Modify the line 73 in the code arduino.1.8.5/libraries/ros_lib/ArduinoHardware.h

    iostream = &Serial1;

  2. Replace:

    ros::NodeHandle nh;

with:

class NewHardware : public ArduinoHardware
{
  public:
  NewHardware():ArduinoHardware(&Serial1, 57600){};
};
ros::NodeHandle_<NewHardware>  nh;

The error when I try to compile is:

.../arduino-1.8.5/libraries/ros_lib/ArduinoHardware.h:67:5: note:   no known conversion for argument 1 from 'HardwareSerial*' to 'usb_serial_class*'
no matching function for call to 'ArduinoHardware::ArduinoHardware(HardwareSerial*, int)'

ArduinoHardware.h: http://docs.ros.org/jade/api/rosseria...

2018-06-25 05:55:26 -0500 commented question rosserial Teensy bluetooth problem

Ok, I make the changes. Sorry about any inconvenient, it is my first post...

2018-06-25 05:53:33 -0500 answered a question rosserial Teensy bluetooth problem

SOLVED: I forget to add the next include: #define USE_USBCON It was solved in the teensy forum, thank you to Thereming

2018-06-25 05:39:51 -0500 edited question rosserial Teensy bluetooth problem

rosserial Teensy bluetooth problem Hello, I'm trying to use rosserial with Teensy 3.5 through bluetooth. My first step

2018-06-25 05:35:24 -0500 received badge  Popular Question (source)
2018-06-24 06:55:03 -0500 commented answer How to change the serial port in the rosserial lib for the Arduino side?

Ok, I've just created another thread. https://answers.ros.org/question/295163/rosserial-teensy-bluetooth-problem/ Tha

2018-06-24 06:52:20 -0500 asked a question rosserial Teensy bluetooth problem

rosserial Teensy bluetooth problem Hello, I'm trying to use rosserial with Teensy 3.5 through bluetooth. My first step

2018-06-24 06:21:26 -0500 answered a question How to change the serial port in the rosserial lib for the Arduino side?

I tried this solution but doesn't work with Teensy 3.5. I tried first with the Hello World (example publisher) at it wo