parameters: (env=None)
docstring: Get directory location of '.ros' directory (aka ROS home).
      possible locations for this. The :envvar:`ROS_HOME` environment
      variable has priority. If :envvar:`ROS_HOME` is not set,
      ``$HOME/.ros/log`` is used.
  
      :param env: override ``os.environ`` dictionary, ``dict``
      :returns: path to use use for log file directory, ``str``
docstring_summary: Get directory location of '.ros' directory (aka ROS home).
      possible locations for this. The :envvar:`ROS_HOME` environment
      variable has priority. If :envvar:`ROS_HOME` is not set,
      ``$HOME/.ros/log`` is used.
docstring_tokens: Get directory location of . ros directory ( aka ROS home ) . possible locations for this . The : envvar : ROS_HOME environment variable has priority . If : envvar : ROS_HOME is not set $HOME / . ros / log is used .
function: def get_ros_home(env=None):
      """
      Get directory location of '.ros' directory (aka ROS home).
      possible locations for this. The :envvar:`ROS_HOME` environment
      variable has priority. If :envvar:`ROS_HOME` is not set,
      ``$HOME/.ros/log`` is used.
  
      :param env: override ``os.environ`` dictionary, ``dict``
      :returns: path to use use for log file directory, ``str``
      """
      if env is None:
          env = os.environ
      if ROS_HOME in env:
          return env[ROS_HOME]
      else:
          #slightly more robust than $HOME
          return os.path.join(os.path.expanduser('~'), '.ros')
function_tokens: def get_ros_home ( env = None ) : if env is None : env = os . environ if ROS_HOME in env : return env [ ROS_HOME ] else : #slightly more robust than $HOME return os . path . join ( os . path . expanduser ( '~' ) , '.ros' )