boschresearch / pcg_gazebo

Procedural Generation for Gazebo
https://boschresearch.github.io/pcg_gazebo/
Apache License 2.0
69 stars 24 forks source link

Unable to run ROS node what import GazeboProxy when using framework such as robo-gym #134

Closed wwwshwww closed 2 years ago

wwwshwww commented 3 years ago

ROSException: rospy.init_node() has already been called with different arguments

rospy.init_node has being decided to running in another name by the framework. So at this time, I need to remove below line in gazebo_proxy.py to resolute above error. What kind of method does other solution have?

https://github.com/boschresearch/pcg_gazebo/blob/a2d698559495e7ec592ee8cd149a91556fc2dba0/pcg_gazebo/task_manager/gazebo_proxy.py#L147