profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/yannbouteiller/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Yann Bouteiller yannbouteiller Polytechnique Montreal Montreal

yannbouteiller/rtgym 14

Easily implement custom OpenAI Gym environments for real-time applications

yannbouteiller/vgamepad 11

Virtual XBox360 and DualShock4 gamepads in python

trackmania-rl/tmrl 2

Trackmania RL

nicolasvalenchon/Portiloop 1

Spindle detector

coumbsek/ISMIN-AREM 0

Dépôt contenant les différents projets réalisés pour l'Association de Robotique de l'Ecole des Mines

thecognifly/cognifly-python 0

Control the CogniFly open-source drone from your python script.

push eventthecognifly/cognifly-python

Yann Bouteiller

commit sha b426b17dc76142992d50b91bd66abb366c806043

removed obsolete docstrings

view details

push time in 13 days

issue commentyannbouteiller/vgamepad

Feature Request: FFB

Hi, thanks for your interest! I have never needed the feedback functions in my projects but I believe they are implemented in vigem, so there is probably a way of implementing the bindings in vgamepad, I will look into this when I get some spare time :)

jrsmile

comment created time in 14 days

push eventthecognifly/cognifly-python

Yann Bouteiller

commit sha d2c3df85271d43364837bed23d9d5398b046d329

Update README.md

view details

push time in 19 days

created tagthecognifly/cognifly-python

tagv0.0.3

Control the CogniFly open-source drone from your python script.

created time in 20 days

release thecognifly/cognifly-python

v0.0.3

released time in 20 days

push eventthecognifly/cognifly-python

yannbouteiller

commit sha a561edd594d3e2f2c08961c8cf12dd91c9b6c9b9

readme

view details

push time in 20 days

push eventthecognifly/cognifly-python

Yann Bouteiller

commit sha fc8c1d9f9aca2d064555290a8579389b1292f5e0

Update README.md

view details

push time in 20 days

push eventthecognifly/cognifly-python

yannbouteiller

commit sha 34acd2a076134613688c42808d2ee866f79a73ed

update

view details

push time in 20 days

push eventthecognifly/cognifly-python

yannbouteiller

commit sha dcbd8380431a79897f30b2577c665596dac8d250

added GUI

view details

push time in 20 days

push eventthecognifly/cognifly-python

yannbouteiller

commit sha 8e0bc8d76b112f65ed156bc267b041c405992886

cleaning

view details

push time in 21 days

push eventthecognifly/cognifly-python

yannbouteiller

commit sha e5296347ba1c7b6eb0b55c2f96a3c5239f88ba69

camera/network optimization

view details

push time in 21 days

push eventthecognifly/cognifly-python

yannbouteiller

commit sha 99f1999a45942d9ec3b40cdf3064ee8aa5faaade

debug

view details

push time in 22 days

push eventthecognifly/cognifly-python

Yann Bouteiller

commit sha 7c1a960768c023f6ead4b03ee0f84b8bb1f7b040

added PIL requirement

view details

push time in 22 days

issue commenttrackmania-rl/tmrl

Round number/ correct round time

If you try please tell me if it works, so I add this in the vgamepad repo

NumseBacon

comment created time in 22 days

issue commenttrackmania-rl/tmrl

Round number/ correct round time

This seems related to https://github.com/ViGEm/ViGEmBus/issues/85

NumseBacon

comment created time in 23 days

push eventthecognifly/cognifly-python

Yann Bouteiller

commit sha 79d553a65a4c10a863d942b4236e51afec722d1a

Update README.md

view details

push time in 24 days

issue commenttrackmania-rl/tmrl

Round number/ correct round time

Hi @NumseBacon, there was no option to compile for Windows Driver specifically in Visual Studio (only x64 and x86 architectures), but I still have updated the vigem-client DLL files in the vgamepad repo.

I don't expect this to change much but who knows... If you care to try, you can clone the vgamepad repo and inspall it with pip install . or pip install -e ., if that miraculously works on Windows Server I will update the the PyPI package.

NumseBacon

comment created time in 24 days

push eventyannbouteiller/vgamepad

Yann Bouteiller

commit sha 6ba1cb666f49679c117879694a332864bac09b5f

updated client dll

view details

push time in 24 days

issue commenttrackmania-rl/tmrl

Round number/ correct round time

This is because you did not install tmrl correctly and did not record a reward.

To install tmrl correctly you should clone the repo, go where the setup.py is and execute:

pip install -e .

(the -e option is important)

To record a reward you should follow these instructions

NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

By the way another solution for restarting training from scratch at the moment is to manually change the value of this constant

NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

I can try to recompile the shared library for Windows Server if this option exists in VisualStudio yes, but I am not able to do this in the next few days. In the meantime what you can do is manually set this line to False, this should deactivate the gamepad and use the keyboard instead, but the pretrained neural network won't work because it has been trained with the gamepad, so you should delete the weights and checkpoints in the data folder so training restarts from scratch.

NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

I was saying this in the unlikely-but-not-impossible case that the issue would come from how C-Python bindings are done in vgamepad: the exception you get doesn't come from vigembus directly, it comes from vgamepad complaining that it failed to retrieve a valid pointer from vigembus. I don't think anyone has tried vgamepad with Windows Server before, possibly the way I compiled vigembus is compatible with Windows 10 only, idk...

NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

Can you tell what difference is likely to cause the issue ? e.g. difference of Windows versions, or python versions, or python 32 bits vs python 64 bits...

NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

What I don't understand is that, in your first video, vgamepad seemed to work fine, what changed since then?

NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

According to this thread this might be a Windows Update issue, but I don't have more info. I can try to update vgamepad with a more recent version of vigembus when I find some time for this, but I cannot reproduce the issue on my laptop so it is hard to see where that comes from.

NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

Oh wow, something is very wrong! You don't show the CPU stats but if the GPU is a 3090 I expect your overall PC config to be much faster that what I use here, you should definitely not get those timestep timeouts even when running TM2020 at full speed.

So, I see two issues here.

First, vgamepad doesn't work correctly on your PC for some reason (I think even when it seems to work actually it does nothing). Can you try the following in this order:

  1. pip install -U pip
  2. pip uninstall vgamepad
  3. Manually uninstall all versions of vigembud (Nefarius Virtual Gamepad Emulation Driver)
  4. pip install vgamepad --no-cache-dir
  5. you should get this pop-up: https://paste.pics/0a1687ffdc31cee1420f68f4b5cbd4f6
  6. accept the terms, install, allow the msi file to do the install, finish installation
  7. go to gamepad tester: https://gamepad-tester.com
  8. execute the following python script and check that the right buttons and joystick values are set accordingly in gamepad tester:
import vgamepad as vg
import time

gamepad = vg.VX360Gamepad()

# press a button to wake the device up
gamepad.press_button(button=vg.XUSB_BUTTON.XUSB_GAMEPAD_A)
gamepad.update()
time.sleep(0.5)
gamepad.release_button(button=vg.XUSB_BUTTON.XUSB_GAMEPAD_A)
gamepad.update()
time.sleep(0.5)

# press buttons and things
gamepad.press_button(button=vg.XUSB_BUTTON.XUSB_GAMEPAD_A)
gamepad.press_button(button=vg.XUSB_BUTTON.XUSB_GAMEPAD_LEFT_SHOULDER)
gamepad.press_button(button=vg.XUSB_BUTTON.XUSB_GAMEPAD_DPAD_DOWN)
gamepad.press_button(button=vg.XUSB_BUTTON.XUSB_GAMEPAD_DPAD_LEFT)
gamepad.left_trigger_float(value_float=0.5)
gamepad.right_trigger_float(value_float=0.5)
gamepad.left_joystick_float(x_value_float=0.0, y_value_float=0.2)
gamepad.right_joystick_float(x_value_float=-1.0, y_value_float=1.0)

gamepad.update()

time.sleep(1.0)

# release buttons and things
gamepad.release_button(button=vg.XUSB_BUTTON.XUSB_GAMEPAD_A)
gamepad.release_button(button=vg.XUSB_BUTTON.XUSB_GAMEPAD_DPAD_LEFT)
gamepad.right_trigger_float(value_float=0.0)
gamepad.right_joystick_float(x_value_float=0.0, y_value_float=0.0)

gamepad.update()

time.sleep(1.0)

# reset gamepad to default state
gamepad.reset()

gamepad.update()

time.sleep(1.0)

Second, there appears to be something on you PC that keeps tmrl from running fast: if your CPU is reasonable for a RTX3090 PC you should not get any of these timestep timeouts.

Can you

  1. check whether your CPU (not GPU) is indeed saturated (and why)
  2. keep the TM2020 window open and run the benchmarking script: python tools\benchmark_environment.py , this should take 1-2 minutes before printing the results (you can move around with your keyboard arrows in the meantime to check whether your reward is working)
NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

Really? That is unheard of, what version of vigembus were you using in this video you showed earlier? vgamepad seemed to work correctly at this point. If you have more info regarding why it doesn't work please share.

NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

You should not install vigembus from the official website, the right version is packaged in vgamepad and is installed automatically when installing vgamepad.

NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

I think the new version of trackmania is very CPU-hungry. I have tested tmrl yesterday and I had to cap trackmania to 30fps and put graphics to low to make it work, while I use to run this at max quality with no issue. I'm very busy these days but I'll do some further testing when I have a moment.

NumseBacon

comment created time in a month

issue commenttrackmania-rl/tmrl

Round number/ correct round time

If so, just uninstall vigembus and vgamepad, and then reinstall vgamepad, it will automatically install the right version og vigembus.

NumseBacon

comment created time in a month