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

Rosserial help

asked 2016-06-26 03:33:38 -0600

silverbullet gravatar image

updated 2016-06-29 02:05:56 -0600

Hello everyone, I am a beginner in ROS and have been confused very lately on how to set this up. I have 3 nodes in my current ROS setup. I want Arduino to be the 4th node and fetch/send values from these 3 nodes. But the code we upload in Arduino is .ino format ? I know there's a rosserial package in existence, but I can't figure out how to actually make it a node(which requires a cpp or py format I think).

Rosserial site says : "It allows your Arduino to be a full fledged ROS node which can directly publish and subscribe to ROS messages, publish TF transforms, and get the ROS system time."

Does that mean I simply publish and subscribe in my ino file (which need not be in my catkin_ws folder) and just upload it to arduino and run roscore+other nodes ?

Please clear the confusion! Thanks :)

edit retag flag offensive close merge delete

Comments

Bump. Anyone ?

silverbullet gravatar image silverbullet  ( 2016-06-29 01:32:46 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-06-26 12:20:57 -0600

spmaniato gravatar image

Yes, I believe rosserial is the right answer. Check out the tutorials ( http://wiki.ros.org/rosserial/Tutorials ) and this introductory video / presentation from ROSCon 2014: https://vimeo.com/106992629

edit flag offensive delete link more

Comments

Hi! I've already seen the tutorials but they aren't so clear. Can you answer my questions bit more specifically? Thanks :)

silverbullet gravatar image silverbullet  ( 2016-06-26 13:43:49 -0600 )edit
0

answered 2016-07-07 06:45:34 -0600

vmatos gravatar image

updated 2016-07-07 06:46:18 -0600

Does that mean I simply publish and subscribe in my ino file (which need not be in my catkin_ws folder) and just upload it to arduino and run roscore+other nodes ?

Yes. You write your .ino file, with ros libraries included.

As spmaniato has stated, follow the tutorials first to understand how it works: http://wiki.ros.org/rosserial_arduino... From 1 up to 4 should be enough.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-06-26 03:33:38 -0600

Seen: 390 times

Last updated: Jul 07 '16