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

[SOLVED] Arduino ethernet communication with ROS

asked 2018-12-06 09:03:23 -0500

Tim Nicolas gravatar image

updated 2018-12-14 03:55:14 -0500

Hi !

I'm looking from a package to communicate btw arduino and ROS kinetic (on jetson) with an arduino ethernet module.

I need to send msg / srv from arduino to the jetson.

Tim


Update:

I found a file ArduinoTcpHardware.h in the rosserial github. Anyone know how to use it ?

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2018-12-14 03:55:01 -0500

Tim Nicolas gravatar image

So finally I found a solution.

I use this example from the rosserial github.

To run the ros node use roslaunch rosserial_server socket.launch.

For IPAddress ip(192, 168, 0, 177); choose an IP for the arduino.

For IPAddress server(192,168,0,11); use your ip.

edit flag offensive delete link more
0

answered 2018-12-12 20:03:15 -0500

ahendrix gravatar image

It looks like there are two examples for using rosserial over TCP. If you have rosserial installed and the Arduino library generated and installed, you should be able to find these from the Examples menu in the Arduino IDE.

https://github.com/ros-drivers/rosser...

https://github.com/ros-drivers/rosser...

edit flag offensive delete link more

Comments

Yes I can use these example but when I try to compile with catkin build I have this error

CMakeFiles/ethernet.dir/tools/ethernet/main.cpp.obj: In function `loop':/home/.../main.cpp:74: undefined reference to `ros::normalizeSecNSec(...)

I can compile some others ros example with catkin build

Tim Nicolas gravatar image Tim Nicolas  ( 2018-12-13 02:40:42 -0500 )edit

It sounds like this answers your original question. If you're having compilation issues, I suggest you ask a new question so that it's easier to provide all of the details about your compilation issue.

ahendrix gravatar image ahendrix  ( 2018-12-13 13:32:14 -0500 )edit
0

answered 2018-12-07 04:44:21 -0500

updated 2018-12-07 05:17:24 -0500

Unfortunately I don't know of any ready made solution for you to get this working. The rosserial library works with arduino but only over a serial link. I don't think arduinos are capable of running a full networked ROS node.

You may have to look at building a ROS independent link using a protocol such as UDP. This would link via ethernet back to a full ROS node on the jetson which would provide the gateway to ROS.

Hope this helps.

edit flag offensive delete link more

Comments

ok thx I will try to implement UDP

Tim Nicolas gravatar image Tim Nicolas  ( 2018-12-07 06:25:03 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-12-06 09:03:23 -0500

Seen: 3,337 times

Last updated: Dec 14 '18