-
Notifications
You must be signed in to change notification settings - Fork 128
Micro ros listen topics #476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @OtaviodaCruz, What you want is a subscriber inside of your arduino code, you can find an example here: link. |
Hi, sorry for the delay. I haven't been able to test it yet, but when I quickly preview the provided code, I believe in I had gone through this example before, but as it deletes all the As soon as i take the test i send feedback. I'm going to use the context to ask another question. As I am using the micro ROS via serial the messages are exchanged via serial (obviously). I imagine in some package format set by the lib. Thanks. |
micro ROS takes over the serial port, so it's not a good idea to use it for debug. Maybe you can use other serial port or change the status of the board led. Also, take care using |
Hi, sorry for the delay. I'm in a short period of time. Well, I finally got to test it and it worked, here's a test implementation used, for future reference:
I would like to complete by asking one more thing, would my arduino be able to discover nodes or topics created by the PC, that is, is it possible for the agent to discover nodes (or topics) created by the client? |
Just to clarify your question, the client would be the Arduino board, and the agent is the PC. We have a graph implementation on our rmw layer that tries to cover this functionality. Its still a experimental approach, but you can try it out enabling But maybe there are alternatives, what do you want to do exactly? |
Exactly, I'm sorry, I spelled it wrong earlier. The customer would be the Arduino board and the PC agent. In this case, the reason is out of curiosity (haha), I believe that in my project I won't need it, but it's good to know about the existence or not of this functionality. Thanks for all the help, you guys have good support. |
Glad to help! |
Hi, I'm doing a project that consists of assembling a robotic platform (mainly at the software level) that aims to be used as a basis for future research.

My initial proposal for the project is expressed in the image below
Ok. I was doing an initial evaluation of the micro ros library to use in my project, for that I implemented some examples.
I'm currently trying to implement a logic where my arduino listens for a topic (/velocity, red arrows) to then perform the engine moves.
But I couldn't find any reference to implement in my arduino something like
ros2 topic echo (...)
. The questions are: is this possible from micro ros? Is micro rose a viable tool for my project? Do you have a guide for a similar project that I can use as a reference?Thanks in advance
The text was updated successfully, but these errors were encountered: