Skip to content

Connecting Robot Car to another PC in the same network #5

Description

@irsyadtc

Hi, I would like to communicate my laptop to the Robot Car. I tried by learning through the tutorial husarion.com

Step 1: Setting both Robot Car and laptop to Micro_ros wifi network.

IP Laptop: 10.42.0.251
IP Robot Car: 10.42.0.1

Note: the Robot Car's default launch nodes and topics run automatically from start up
Step 2: check on the available topics in Robot Car

ros2 topic list

The output from Robot Car:

/JoyState
/battery
/beep
/cmd_vel
/imu
/joy
/joy/set_feedback
/move_base/cancel
/odom_raw
/parameter_events
/rosout
/scan
/servo_s1
/servo_s2

I noticed that Robot Car has a pre-setup MY_DOMAIN_ID:20. However it is unknown for me about its ROS_DOMAIN_ID

Step 3: Therefore I tried following the instruction husarion.com. In Robot Car new terminal:

source ros2_humble.sh
export ROS_DOMAIN_ID=1

Step 4: in laptop new terminal:

source /opt/ros/foxy/setup.bash
export ROS_DOMAIN_ID=1
ros2 topic list

The output from

/parameter_events
/rosout

I believe when I set the new ROS_DOMAIN_ID=1 will not get the existing topics from Robot Car since I changed the domain.
Question: how do I subscribe the existing topics (e.g. /scan) to my laptop within the same network?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions