Arduino publishing to Ubuntu through WIFI
I was able to make a connection through TCP between Ubuntu and Arduino, both connected to the same router via WIFI. I know there's rosserialarduino, but it utilizes USB connection, where I want to use WIFI. On Arduino, there's WIFI library that has basic client/server functionailties, such as read(), write(). And also there's socket library adapted for Arduino, I am wondering if I can modify rosserialembeddedlinux or rosserial_arduino to get Arduino talking to ROS on ubuntu, can anyone give me some directions to it?
I am a beginner to both ROS and TCP/IP, please forgive me for misusing terminologies.
Asked by mugenzebra on 2014-08-25 13:51:32 UTC
Comments
I haven't done this myself but you could try to modify rosserial_arduino such that it communicates via the WiFi library instead of the UART. rosserial_arduino and rosserial_embeddedlinux are both customized versions of rosserial_client: http://wiki.ros.org/rosserial
Asked by dpiet on 2014-08-26 22:31:27 UTC
I tried modifying rosserial_arduino's ArduinoHardware.h: https://gist.github.com/anonymous/c2c54905f4ae2b866f40 , but it went unsuccessfully, my Arduino Uno just stalls.
Asked by mugenzebra on 2014-08-27 12:49:25 UTC
Anyone ever find a solution to this? I think it's pretty important (arduino wifi + ROS = HOLYOMFGWTFBBQ)
Asked by basheersubei on 2015-04-02 03:24:39 UTC
I implemented my own server/client structure through TCP/IP back in September, and the node on PC side acted as a client for the Arduino server and broadcast the messages to ROS. It should be the other way around to ensure stability, but I haven't had time to implement that.
Asked by mugenzebra on 2015-04-02 11:58:33 UTC
And couldn't change ArduinoHardware.h successfully to make a native Arduino node using WIFI, but it works. In theory it can be done like what rosserial does.
Asked by mugenzebra on 2015-04-02 11:59:34 UTC
any progress in doing this? i also need to publish data via wifi to ros from an arduino
Asked by naqi.nick on 2016-11-09 16:20:59 UTC
There's been some progress in this question getting rosserial_arduino to work over the arduino wifi shield.
Asked by ahendrix on 2017-01-22 20:47:53 UTC