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

Revision history [back]

click to hide/show revision 1
initial version

Environment hooks are shell scripts provided by a ROS package. Whenever you source the setup file in a workspace those environment hooks are also being sourced. They are being used to set / extend environment variables. E.g. the ros package has an environment hook which set the environment variable ROSDISTRO_NAME (see https://github.com/ros/ros/blob/bf3e45955e5c8aac2ab276d6b956b21bc13ddccc/core/roslib/env-hooks/10.ros.sh.em#L16) and ROS_PACKAGE_PATH (see https://github.com/ros/ros/blob/bf3e45955e5c8aac2ab276d6b956b21bc13ddccc/core/roslib/env-hooks/10.ros.sh.em#L41).