ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
First of all you should not source both setup files if you don't have to (e.g. for building something like the ros1_bridge
). Commonly you should only source one of the two. Otherwise you will likely run into problems where some packages (e.g. std_msgs
) exist in both ROS versions.
Regarding the questions about ROS_PACKAGE_PATH
and ROS_ROOT
(and several others): ROS 2 doesn't use either of these variables.
2 | No.2 Revision |
First of all you should not source both setup files if you don't have to (e.g. for building something like the ros1_bridge
). Commonly you should only source one of the two. Otherwise you will likely run into problems where some packages (e.g. std_msgs
) exist in both ROS versions.
Regarding the questions about ROS_PACKAGE_PATH
and ROS_ROOT
(and several others): others like ROS_MASTER_URI
, ROS_HOSTNAME
, ROS_IP
): ROS 2 doesn't use either of these variables.