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
no ros2 topics visible #21
Comments
Sorry this is a duplicate of a closed issue which I missed #7 This does raise a related question, if I want to use this as part of a robot, e.g a Pi connects to a teensy, using micro-ros, on a mobile base, and the pi connects to a laptop via wifi, am I unable to set my |
Hello @nfry321, thanks for using micro-ROS. Nice to hear that you are able to see your topics being published. Regarding the Regarding the This comment is related to this. I know that this is a quite tricky procedure for changing such a basic thing as the node domain ID, so I'm going to keep this open in order to remember to implement somehow this domain id configuration in the default XML entities generation in micro-ROS. If you are curious this is the XML used by the client to create the micro-ROS participant-node. But modifying this for the Arduino port can be tricky... so I will come back here with a better solution. |
Thanks for the comprehensive reply, and for this release in general. Mirco-ros on a teensy really makes it accessible. |
Hello @nfry321, I have updated this library to v0.0.2 and now you can change the Domain ID of your nodes using something like: ...
rcl_node_options_t node_ops = rcl_node_get_default_options();
node_ops.domain_id = 10;
RCCHECK(rclc_node_init_with_options(&node, "my_node_name", "", &support, &node_ops));
... I'm closing since resolved. Let me know if this works for you and do not hesitate to reopen if you have some other question. CC: @anaelle-sw this solves also some of your old issues |
That works great, thanks for the quick update! |
Hello everybody. By chance, is it already possible to visualize the nodes? I'm developing a ros2 foxy application where my nodes don't appear, but the topics work correctly, I was kind of lost. I just want to know to understand if the error is on my side. |
@OtaviodaCruz can you open a new issue explaining your use case and problems? |
Hi @pablogs9 , sorry for the delay. Yes I can, I will create |
exit status 1 i am getting this error in arduino |
Describe the bug
The micro-ros agent is able to communicate with a Teensy 3.2, but the rest of ROS2 is not able to connect to the agent.
I.e.
ros2 topic list
&ros2 node list
show nothing when using micro-ros_publisher example.To Reproduce
Following instructions in readme:
(The pub and sub example sketches are listed under incompatible in my examples menu and I get
WARNING: library micro_ros_arduino-0.0.1 claims to run on OpenCR, Teensyduino architecture(s) and may be incompatible with your current board which runs on avr architecture(s).
but they upload fine)ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyACM0 -v6
ros2 topic list
ros2 node list
Screenshot shows that messages are sent and received.
Expected behaviour
For
micro_ros_arduino_node_publisher
to be visible when runningros2 topic list
(Although it is entirely possible I have misunderstood what the example is meant to do!)
System information
Additional context
(micro-ROS/micro_ros_setup#179) could be relevant, but I am not opening the serial port twice and the teensy only has one available.
The text was updated successfully, but these errors were encountered: