-
Notifications
You must be signed in to change notification settings - Fork 95
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
argparse issue with launchfiles #460
Comments
Hey @thomaspeyrucain, thank you for reporting this and the fix. I will test this out and get back to you. |
Hello again @thomaspeyrucain, i did some testing regarding this issue. I used the launch file you provided with some minor modifications to fit my system:
and i got the same error as the one you reported. Your fix looks perfectly fine to me as it doesn't interfere with non-launch running of the nodes. The issue originates from the fact that the launch process seems to use the rospy arguments One minor issue i noticed, which you should probably be already aware of, is that the working directory when using the launchfile is not the workspace directory but something similar to I will go ahead and fix this across all ROS1 nodes so they can be used with launch files. Thank you for your efforts! |
Perfect thanks @tsampazk , for the directory I most often put the whole path of the file or folder |
Hello,
If I want to integrate the nodes in a launchfile like this:
I get this error:
To fix it I replaced this line:
opendr/projects/opendr_ws/src/opendr_perception/scripts/face_recognition_node.py
Line 163 in b3d6ce6
By this line:
args = parser.parse_args(rospy.myargv()[1:])
In all the ROS scripts
The text was updated successfully, but these errors were encountered: