Send GPS data from a computer
Can I send GPS data (computed somehow) to a UART port from a computer i.e. physically connecting the UART to USB?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Can I send GPS data (computed somehow) to a UART port from a computer i.e. physically connecting the UART to USB?
Hi
you can publish GPS data in two way by micro or you connect GPS too pc via ftdi(or somthing else)
in firs way you can use rosserial and send GPS data too pc in ros topic
in second way you need write node c++ or python that communication to GPS sensor via ftdi(or something else) and get sensor data and publish too ros
Hey... Thanks for the reply. The methods that you have mentioned are when we want to get data from the GPS module. I want to send data (of GPS type) to a particular port (hardware UART port).
with rosserial you can send data to uart and simply you can send data in your node too usb with sreial lib
Ohkay.. Can you send an example/tutorial where this has been implemented?
I found a different approach (not ROS): http://www.catb.org/gpsd/gpsfake.html But this is a long approach since I would first have to publish the data in a text file and then use it. Not preferable.
i don't realize your problem correctly , your question about how to use serial port in ros and send data via serial port?
I am getting GPS-type data on a ROS topic. I want to send this data to a UART port in some controller from my computer. So there should be a connection (hardware) between my computer's USB port to the UART port in the controller and then send data. Did you understand the question?
According to you, this can be done using rosserial, right? If possible can you send an example/tutorial where this has been done?
in this link you can see an example of rosseria with arduino a simple way write an python node that subscribe gps data and send data to your port
rosserial_arduino would require an Arduino as well, right? Is there a way to communicate with only the computer and the UART port on a controller?
Asked: 2018-10-10 15:39:38 -0600
Seen: 474 times
Last updated: Oct 11 '18
I'm tempted to close this question as off-topic. What does this have to do with ROS? If you are asking about specific hardware devices with ROS support, are dealing with specific ROS packages, or something specific to ROS, please edit your question to include that vital information.
It sounds like you are asking about generic communication between a microcontroller's UART and a PC. If that is the case, this may not be the right place to ask.
It might be that you are looking for a particular piece of hardware that allows USB-to-UART communication. Perhaps you are interested in something like an FTDI cable
I want to send GPS data that I am getting in ROS. I want to know if anyone has done this i.e. send GPS data. I understand that ROS isn't an essential part of the problem. But there may be people in this community who can solve this problem.
Is this forum totally for ROS-centric doubts? If yes, I will close/delete the topic and my apologies!
Certainly this Q&A site is specifically for ROS topics. In me eyes, this is a borderline case. You are using ROS, but the answer to your question may have nothing to do with ROS, and the original question gave no ROS context. Since you received an answer concerning a ROS package, I suppose it's ok.