
Editing Question To Make Clear
I have a server that needs to be able to send various messages to clients over Ethernet. This is done by using a ShapeShifter class to serialize the message and then the message is sent. Is there a way for an Arduino client to serialize the message that is sent?
Originally posted by inkspell4 on ROS Answers with karma: 32 on 2017-01-22
Post score: 0
Original comments
Comment by ahendrix on 2017-01-22:
You may want to dig into rosserial_arduino; I know it uses a serialiazation that is similar to the stock serialization, and I think it has a few modifications to make it more arduino-friendly.
Comment by ahendrix on 2017-01-22:
It would also improve your question to explain WHY you want to do this; there's a decent chance that someone in the community has already done something similar and can save you a great deal of effort (see also: XY problem )
Comment by inkspell4 on 2017-01-22:
So, I have a server that is taking ShapeShifter messages and serializing them and then needs to send them to the Arduino, is this feasible, or should I be looking more into a custom serialization? I hvae looked some into rosserial and am lost in it.
Comment by inkspell4 on 2017-01-22:
I Edited the question to make it clear on the outcome
Comment by ahendrix on 2017-01-22:
That sound almost exactly like what rosserial is doing (the C++ uses ShapeShifter too), and rosserial has some additional protocol over the serial line to delimit messages and identify which topics they belong to. you may want to read http://wiki.ros.org/rosserial/Overview/Protocol
Comment by ahendrix on 2017-01-22:
Overall it sounds like you're reinventing rosserial, and unless you've gotten rosserial to work and found it unsuitable, I'd advise that you give it another go.
Comment by ahendrix on 2017-01-22:
There's been some progress in this question getting rosserial_arduino to work over the arduino wifi shield; you may be able to use that or adapt it for an ethernet shield.
Comment by inkspell4 on 2017-01-22:
The particular reason that I do not want to go with ROS serial is that future add-ons that I plan for the project would make it complex to handle within rosserial.
Comment by inkspell4 on 2017-01-22:
Further, this project is a learning experience for me in deigning my own application with ROS and I didn't necessarily want to start off where I was already heavily relying on another persons work.