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

rosserial arduino timer problem [closed]

asked 2019-07-11 15:31:46 -0500

MrMartins gravatar image

I'm trying to make a publisher in Arduino to send some data to ROS. But I can't do it unless I comment the timer I have on my code. I'm using timer3 but already tried timer1 also.

The problem I get when running "rosrun rosserial_python serial_node.py /dev/ttyACM0" is : "Unable to sync with device"

But when the timer is off it works perfectly.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2020-12-18 13:30:43.834721

Comments

for what do you need time form arduino?

khasreto gravatar image khasreto  ( 2019-07-11 16:41:28 -0500 )edit

I'm using them to control 2 motors. Btw, ROS is installed on a Raspberry Pi with no internet access so it's kind of hard to copy my entire code.

MrMartins gravatar image MrMartins  ( 2019-07-11 17:00:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-07-12 11:57:34 -0500

duck-development gravatar image

how often you timer fires? how long take it to finisch the timer interrupt?

it it create to mutch load then you get time outs in the communication.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-07-11 15:31:46 -0500

Seen: 420 times

Last updated: Jul 12 '19