-
Notifications
You must be signed in to change notification settings - Fork 914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
roslaunch fails if ROS_LOG_DIR is set and ~/.ros was not yet created #1030
Comments
I don't think it is necessary to update ROS to create it on demand. The simple solution to this is to make sure the directory you are pointing to in the environment variable exists. Please feel free to create a PR to support this or contribute to the wiki clarifying that the directory needs to exist |
Hi Dirk, sorry if I didn't make that clear enough, but the problem is not that the directory in ROS_LOG_DIR can't be found. The problem is that the ROS home directory is only created if ROS_LOG_DIR is not set, but its existence is required by roslaunch in any case, because it is used as working directory for all ROS nodes and the ROS master. So what I am saying is that if you set ROS_LOG_DIR to a custom (existing) directory and ~/.ros does not exist, roslaunch will fail. I will clarify that in the problem description above. Best, |
Thanks for clarifying. The following two PR should address the problem: ros/ros#143 #1031 |
Thank you. |
I had the same issue, when ROS_LOG_DIR was set.
|
Hi,
if ROS_LOG_DIR is set to something other than "~/.ros", this directory is not created. This causes the subprocess.Popen call in nodeprocess.py:298 to fail if its cwd is set to "~/.ros". That is the case for example during the automatic creation of rosmaster.
Steps to reproduce:
I used this launchfile to produce the error:
Output:
Homan
The text was updated successfully, but these errors were encountered: