Ask Your Question
0

rosserial arduino ackermann_msgs subscriber problem

asked 2018-09-22 00:55:17 -0500

jsjsjs0775 gravatar image

Hello, i'm studying rosserial and arduino!

I want to build nodes that one node in ros(ros node) publish ackermann_msgs, and the other node in arduino(arduino node) subscribes it.

But, it's not work!

I think the subscriber callback function isn't triggered.

But when i check the rqt_graph, it shows they communicate well.

So how would i solve this problem?

Check list

  1. rosserial_python work well with arduino
  2. publisher(the ros node) publish topic properly. ( I also double checked it by echoing topic and implementing subscriber (in ros node) )
  3. All executed nodes didn't show any error message.
  4. rqt_graph shows they
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-22 06:44:53 -0500

saurabh gravatar image

updated 2018-09-22 06:47:12 -0500

Can you share your Arduino code here. There are multiple examples given, how to make a ROS subscriber in Arduino.

If it is the problem with this specific message, then may be that message is not defined in Arduino libraries. If thatis the case, you have to take source code, and add that message library in rosserial.

edit flag offensive delete link more

Comments

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: 2018-09-22 00:55:17 -0500

Seen: 59 times

Last updated: Sep 22 '18