def expand_to_packages(names, env=None):
 if (env is None):
  env = os.environ
 ros_paths = rospkg.get_ros_paths(env)
 rospack = rospkg.RosPack(ros_paths)
 rosstack = rospkg.RosStack(ros_paths)
 return rospkg.expand_to_packages(names, rospack, rosstack)

def expand_to_packages ( names , env = None ) : if ( env is None ) : env = os . environ ros_paths = rospkg . get_ros_paths ( env ) rospack = rospkg . RosPack ( ros_paths ) rosstack = rospkg . RosStack ( ros_paths ) return rospkg . expand_to_packages ( names , rospack , rosstack )
expand names into a list of packages .