Ask Your Question
0

Lost sync with device..restarting

asked 2016-08-04 04:24:34 -0500

silverbullet gravatar image

updated 2016-08-08 14:04:29 -0500

ahendrix gravatar image

Hello everyone, I am trying to communicate between my arduino and an IMU sensor. I believe I have done everything right via rosserial. But the catch is that, after running all sparton node, it keeps throwing the error "Lost sync with device..restarting". The code isn't maintained anymore I think, I tried contacting their customer support but no avail. One thing that bugs me about their code is that, is it complete? because I don't see any rospy.spin or anything. I am not sure what all modifications need to be done in that .py file to run it properly. When I open my serial monitor on arduino, I get truncated values along with some garbage data. Any help would be appreciated. Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-07 15:07:50 -0500

silverbullet gravatar image

Bump..anyone? Need urgent help here.

edit flag offensive delete link more

Comments

1

That ROS node looks like it's designed to communicate directly with the IMU, but you say that you've connected the IMU to your arduino. You probably don't need the rosserial node and the IMU node both talking to the same serial port (this will probably cause conflicts).

ahendrix gravatar image ahendrix  ( 2016-08-07 19:01:46 -0500 )edit

Thanks for enlightening me. So how do I fix this? I want the values from thr sensor on my Arduino to drive my thrusters.

silverbullet gravatar image silverbullet  ( 2016-08-07 21:28:15 -0500 )edit
1

You haven't provided a wiring diagram, any of the code that's running on the Arduino, or anything details about the other ROS nodes you're running, so it's hard for me to tell you how to fix any other problems you might have.

ahendrix gravatar image ahendrix  ( 2016-08-08 00:49:55 -0500 )edit

Hey, I think there's some misunderstanding from my part. The IMU sensor is attached as a separate component. It's not attached to the arduino, so that's why both the nodes should work together properly. I just have 2 nodes for simplicity. The rosserial node and imu sensor node. Thanks in advance!

silverbullet gravatar image silverbullet  ( 2016-08-08 04:20:17 -0500 )edit

My Arduino code is pretty simple. I've just subscribed to 3 topics from the sensor, namely, imu/data, imu/heading..etc and printing the received values..where it's giving garbage values too, maybe because the sync getting lost is printed on my terminal.

silverbullet gravatar image silverbullet  ( 2016-08-08 04:23:32 -0500 )edit
1

Ok; the connections definitely weren't clear in the original post. Which ROS node is printing the "Lost Sync with device" message?

ahendrix gravatar image ahendrix  ( 2016-08-08 12:47:51 -0500 )edit

The imu sensor node, the one which I linked from github. Shouldn't it have rospy.spin and stuff? It has been killing me lately.

silverbullet gravatar image silverbullet  ( 2016-08-08 13:11:03 -0500 )edit
2

rospy.spin() is a convenience function; a node doesn't need to call it to work. https://github.com/udmamrl/SpartonCom... does not contain any error messages that resemble "lost sync" so I don't understand where that error is coming from.

ahendrix gravatar image ahendrix  ( 2016-08-08 14:06:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-08-04 04:24:34 -0500

Seen: 1,163 times

Last updated: Aug 08 '16