set ROS_MASTER_URI directly in code
is it Possible to set ROS_MASTER_URI directly in c++ code without use of environment variables????
I use a big program with needs a lot time of initialisation, and I builded roslibs wichthe program uses but I like to change sometimes the masteruri,the hostname without to setting new env-vars and reload the whole programm. It would be nice if I colud set them as argument in ros::init or so. Thus the programm could change dynamically the server without restart.
(want to change ROS_IP,ROS_HOSTNAME too)