Git Product home page Git Product logo

quanser_interactive_labs_resources's People

Contributors

alorenagzz avatar derekwight avatar drwidgit avatar hlacheray avatar jarod900 avatar jsp20 avatar kjfullert avatar mmrq avatar mrdatameetsq avatar petemartin avatar sjwhitmell avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

xinyioffice

quanser_interactive_labs_resources's Issues

How to remove an actor by specific actor number?

I noticed in the QuanserInteractiveLabs class we have the following function to delete all actors:

def destroy_all_spawned_actors(self):

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?

package link might need fixing

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?

QLabsQCar.destroy() not able to destroy spawned vehicles

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.