eager-dev / eager

[deprecated] Engine Agnostic Gym Environment for Robotics
https://eager-control.readthedocs.io/
Apache License 2.0
16 stars 0 forks source link

Launch physics bridge dynamically from python script (which is not launched with a launchfile) #20

Closed bheijden closed 3 years ago

bheijden commented 3 years ago

Perhaps useful for launching a launchfile within python.

http://wiki.ros.org/roslaunch/API%20Usage

WARNING! It might be that the roslaunch API is unstable...

bheijden commented 3 years ago

Currently, only roslaunch.parent.ROSLaunchParent(....) works, and roslaunch.core.Node(....) does not.

Also, a roscore needs to be launched separately. If the is_core=True argument in ROSLaunchParent(...) is used (which should start a roscore), the code hangs Unable to register with master node [http://localhost:11311]: master may not be running yet. Will keep trying..