Example 1.1 error

Hi, I started today the ROS2 BASICS for C++ in 5 days and nothing seems to work correctly:
for the example 1.1 I get the following messages:

user:~$ source ~/.bashrc_bridge
ROS_DISTRO was set to ‘melodic’ before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to ‘dashing’ before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to ‘melodic’ before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to ‘dashing’ before. Please make sure that the environment does not mix paths from different distributions.
user:~$ export ROS_MASTER_URI=http://localhost:11311
user:~$ ros2 run ros1_bridge dynamic_bridge
[ERROR] [1578479794.989658031]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying…

Please can you tell me what is the problem ?
Thanks in advance for your answer.

Hello @akrbdx,

The problem is in the export message. You should use this one instead:

export ROS_MASTER_URI=http://master:11311

I tested it with this command and it worked for me. I’m going to fix this on the notebook also.

Best,

1 Like

Ok , great It works, thank you

1 Like