diff --git a/launch/naoqi_driver.launch b/launch/naoqi_driver.launch index fbb04f83..06560635 100644 --- a/launch/naoqi_driver.launch +++ b/launch/naoqi_driver.launch @@ -4,7 +4,7 @@ - - + + diff --git a/src/ros_env.hpp b/src/ros_env.hpp index c929b902..23acc502 100644 --- a/src/ros_env.hpp +++ b/src/ros_env.hpp @@ -89,8 +89,7 @@ static void setMasterURI( const std::string& uri, const std::string& network_int remap["__master"] = uri; remap["__ip"] = ::naoqi::ros_env::getROSIP(network_interface); // init ros without a sigint-handler in order to shutdown correctly by naoqi - const char* ns_env = std::getenv("ROS_NAMESPACE"); - ros::init( remap, (ns_env==NULL)?(std::string("naoqi_driver_node")):(::naoqi::ros_env::getPrefix()) , ros::init_options::NoSigintHandler ); + ros::init( remap, (::naoqi::ros_env::getPrefix()) , ros::init_options::NoSigintHandler ); // to prevent shutdown based on no existing nodehandle ros::start();