How to source setup.bash before running a launch file with RosLaunchParent in python?

asked 2020-09-14 03:32:58 -0500

byteofprash gravatar image

updated 2020-09-15 10:31:45 -0500

I'm trying to launch my launch file with the python API, something like this

mylaunch = roslaunch.parent.ROSLaunchParent(uuid, roslaunch_file, force_log=True)

But the issue is, I have to source the setup.bash file before I start my launch file. Is there an API to do it? If not how do I achieve it? Because without sourcing I dont see the updated parameters that my launch file reads from.

Thanks in advance!

edit retag flag offensive close merge delete