micro_ros_arduino: Node doesn't display

Topic doesn’t visible after added this line; rcl_node_options_t node_ops = rcl_node_get_default_options(); node_ops.domain_id = 30; RCCHECK(rclc_node_init_with_options(&node, "micro_ros_arduino_node", "", &support, &node_ops)); in the ardiuno code

I ran this line ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/serial/by-id/usb-Arduino_LLC_Arduino_Due-if00 -v6 ROS_DOMAIN_ID=30 then re-upload to ardiuno and I get no luck. Restart the laptop doesn’t help either 😛 image

The top sourced in microros_ws along with the bottom left side. The bottom right side sourced in /opt/ros/foxy just to make sure if it can view the node.

Followed this and I did the same thing, not sure where to take a look now even clear the ros domain in .bashrc.

Is it a new bug or is it something that I missed?

  • Hardware description: Ardiuno DUE
  • RTOS: from the tutorial list
  • Version or commit hash: Foxy

Expected behavior

Display “micro_ros_arduino_node”" node

Actual behavior

Doesn’t display the node

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 25 (8 by maintainers)

Most upvoted comments

I don’t own an official or community supported Arduino board. Sorry!

I was thinking about this some more, and I starting to wonder if maybe the problem is ros2 specific and not micro-ros specific?

the ROS_DOMAIN_ID environment variable is set.

This made me REALIZED…Since I re-install arduino due to multiple paths. I forgot to add this part since my old file was modified with this part. The new didn’t have this!

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));

from #21

then I inserted the code above and bam! It’s working!!! image

Thank you so much for your time! You are a beautiful soul! @KohlhardtC @pablogs9

Since this issue is now resolved.

To anyone who is trying to get this working, feel free to @ me in a new issue!

The officially supported boards (tested by the micro-ROS team) are:

image