Open stonier opened 7 years ago
Should always default to logs in ROS_HOME which is not always HOME.
ROS_HOME
HOME
e.g. in celeros.launch:
celeros.launch
<arg name="logfile" default="$(env HOME)/.ros/log/celeros.log" doc="location of the logfile"/>
Pythonic way:
ros_home_dir = rospkg.get_ros_home()
C++ way:
try { std::string ros_home(std::getenv("ROS_HOME")); } catch ( std::logic_error &e) { p /= std::string(std::getenv("HOME")); p /= ".ros"; }
Should always default to logs in
ROS_HOME
which is not alwaysHOME
.e.g. in
celeros.launch
:Pythonic way:
C++ way: