ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

I have tried installing ROS1(melodic) and ROS2(Dashing diademata) on the same OS(Ubuntu 18.04). I am doubtful about the sourcing of the bash script.

asked 2020-05-09 11:55:58 -0500

Rupali gravatar image

updated 2022-05-23 10:02:43 -0500

lucasw gravatar image

When I am trying to run talker and listener nodes to cross-check if python and C++ APIs are working properly for the newly installed ros2, It's not detecting ROS2. What should I do? When I was trying to source the bash script for ros2 I got this result.

$ source /opt/ros/dashing/setup.bash
ROS_DISTRO was set to 'melodic' before. Please make sure that the environment does not mix paths from different distributions.

Is there any particular set of cautions that I should keep in mind?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-05-09 12:58:44 -0500

gvdhoorn gravatar image

Is there any particular set of cautions that I should keep in mind?

Yes: do not auto-source the Melodic setup.bash.

edit flag offensive delete link more

Comments

Thanks! I just edited the ~/.bashrc to remove the auto sourcing line. Now everytime I run a terminal I will have to manually source, showing the terminal where additionally look for while running ros1/ros2.

Rupali gravatar image Rupali  ( 2020-05-09 21:06:39 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-05-09 11:44:19 -0500

Seen: 290 times

Last updated: May 09 '20