huawei-noah / SMARTS

Scalable Multi-Agent RL Training School for Autonomous Driving
MIT License
954 stars 190 forks source link

[Help Request] Problems encountered in SMARTS simulation using ROS #2103

Closed piqiuni closed 1 year ago

piqiuni commented 1 year ago

High Level Description

Hello, I want to use ROS for testing, but I get an error in "rosrun smarts_ros ros_driver.py":

smarts.core.smarts.SMARTSDestroyedError: ('ERROR: A SMARTS instance may have been deleted by gc before a call to destroy. Please explicitly call del obj or SMARTS.destroy() to make this error go away.', AttributeError("'SMARTS' object has no attribute '_agent_manager'"))

I didn't see any introduction to the ROS interface in the document. Does the new version of SMARTS still support the use of ROS? Thanks!

Version

1.4.0

Operating System

ubuntu 20.04

Problems

No response

Gamenot commented 1 year ago

Generally we have not kept up support for use of ROS for recent versions of SMARTS. It may be broken at this time.

I have made a small patch for the error you ran into.

piqiuni commented 1 year ago

Thanks!