22 #include <gazebo/common/SystemPaths.hh> 23 #include <gazebo/common/Plugin.hh> 34 typedef std::map<std::string, std::string>
M_string;
52 void Load(
int argc,
char** argv)
63 gazebo::common::SystemPaths::Instance()->gazeboPathsFromEnv =
false;
64 std::vector<std::string> gazebo_media_paths;
66 for (std::vector<std::string>::iterator iter=gazebo_media_paths.begin(); iter != gazebo_media_paths.end(); iter++)
69 gazebo::common::SystemPaths::Instance()->AddGazeboPaths(iter->c_str());
73 gazebo::common::SystemPaths::Instance()->pluginPathsFromEnv =
false;
74 std::vector<std::string> plugin_paths;
76 for (std::vector<std::string>::iterator iter=plugin_paths.begin(); iter != plugin_paths.end(); iter++)
79 gazebo::common::SystemPaths::Instance()->AddPluginPaths(iter->c_str());
83 gazebo::common::SystemPaths::Instance()->modelPathsFromEnv =
false;
84 std::vector<std::string> model_paths;
86 for (std::vector<std::string>::iterator iter=model_paths.begin(); iter != model_paths.end(); iter++)
89 gazebo::common::SystemPaths::Instance()->AddModelPaths(iter->c_str());
94 setenv(
"GAZEBORC",gazeborc.c_str(),1);
std::vector< std::string > V_string
#define ROS_DEBUG_NAMED(name,...)
ROSLIB_DECL std::string getPath(const std::string &package_name)
ROSLIB_DECL void getPlugins(const std::string &package, const std::string &attribute, V_string &plugins, bool force_recrawl=false)
void LoadPaths()
Set Gazebo Path/Resources Configurations GAZEBO_MODEL_PATH, PLUGIN_PATH and GAZEBO_MEDIA_PATH by addi...
std::map< std::string, std::string > M_string
void Load(int argc, char **argv)