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

Trying to control a robot using teleop_twist_keyboard and rosserial(arduino).

asked 2021-04-09 14:25:48 -0500

S Vignesh gravatar image

I want to control my robot using teleop_twist_keyboard. I am using arduino uno to establish serial communication(rosserial) with ubuntu(18.04). After sending a single twist message, if I wish to send the next twist message, I get this error : "Lost sync with device, restarting..."

The following is the text from my terminal window on which I had run rosserial:

rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 _baud:=57600 I am unsure as to why this occurs. I am a beginner, hence would like to have some help in fixing this issue. I am posting on this platform for the first time around, so kindly pardon me if I've missed to specify any necessary details. Thank you

edit retag flag offensive close merge delete

Comments

The codes that i used were taken from this github repository: https://github.com/centauri-robotics/...

S Vignesh gravatar image S Vignesh  ( 2021-04-09 14:24:19 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-04-11 01:49:22 -0500

It seems like your Arduino doesn't receive commands for a long while.

Could you add more information on the type of Arduino board you are using?

Also, try adding the following line

#include<ArduinoHardware.h>

to your Arduino Code and try running the same again.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-04-09 14:02:09 -0500

Seen: 139 times

Last updated: Apr 11 '21