quanser / quanser_interactive_labs_resources Goto Github PK
View Code? Open in Web Editor NEWLibraries, documentation and tutorials for coding using the Quanser Interactive Labs environment.
Libraries, documentation and tutorials for coding using the Quanser Interactive Labs environment.
I noticed in the QuanserInteractiveLabs class we have the following function to delete all actors:
But is there a way to delete actors by passing a specific actor number? I believe this is possible since the static variable defined here implies this functionality exists, but I am not sure what the format of the payload would need to be for the container if I want to call the send_container function directly. Could an example be provided?
Dear Quanser Tech Team,
I tried to run these tutorials with the up-to-date Quanser Python packages (2023.4.13), but there is an ImportError
:
Traceback (most recent call last):
File "e:\GitHub_Repos\QLabs\Quanser_Interactive_Labs_Resources\python\tutorials\qcar_tutorial1.py", line 14, in <module>
from qvl.qlabs import QuanserInteractiveLabs
File "C:\Users\lenovo\Documents\Quanser\libraries\python\qvl\qlabs.py", line 1, in <module>
from quanser.communications import Stream, StreamError, PollFlag, Timeout
ImportError: cannot import name 'Timeout' from 'quanser.communications' (E:\miniconda\envs\Quanser\Lib\site-packages\quanser\communications\__init__.py)
I have checked the docs.
It seems that you have changed the Timeout
type from Quanser Communications API
to Quanser Common API
in the most recent updates.
But the qlabs.py
from the QVL still import Timeout
from quanser.communications
.
I tried to manually change the qlabs.py
from this
from quanser.communications import Stream, StreamError, PollFlag, Timeout
to this
from quanser.communications import Stream, StreamError, PollFlag
from quanser.common import Timeout
Then the error is fixed.
I don't exactly know how is this QVL generated, so can you please fix this?
I'm trying to create a gymnasium environment to train RL models in the digital twin. However, it's becoming an issue where QLabs.QCar.destroy() is intermittently returning -1, making it impossible to reset the environment.
I define a class QCarVehicle which takes as its argument the actor number.
I instantiate two QCars and spawn them using a method defined in the QCarVehicle class which is essentially just the QLabsQCar.spawn method. After running their necessary actions, I need to reset the environment.
When I run: QLabsQCar.destroy(), it occasionally returns -1. No other actions can be performed at this point.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.