bitcraze / crazyflie-simulation

MIT License
64 stars 27 forks source link

python drivers not working in webots-ros #41

Closed cyborgdennett closed 1 year ago

cyborgdennett commented 1 year ago

Hello, the python drivers are currently not working

image

left is the C driver, right the Python driver

As you can see Python driver does not fly, it is stuck to the ground

rens-van-vendeloo commented 1 year ago

I'm interested in this as well!

cyborgdennett commented 1 year ago

I tested this in windows and there the python drivers work perfectly

Strangely in webots-ros the yaw-rate goes to -4000,

knmcguire commented 1 year ago

So I see you are using the webots simulator, but which version is this? Are you using the simulation repository directly or are you using the model of the crazyflie of webots directly

cyborgdennett commented 1 year ago

Hi, @knmcguire I use version webots R2023A

I would like to control my webots-crazyflie using a webots-ros2 controller

I followed the webots-ros2 tutorial for my_robot.

After that, I changed the files so it would control the crazyflie.

Then I copied the PID-controller from this repo to control the bot

I can link you to my repo: https://github.com/cyborgdennett/TINLAS/blob/main/my_package/my_crazy_driver.py

knmcguire commented 1 year ago

Oke, it seems that you have done the right steps, but the version of webots is quite important here. Could you try this again with the latest of the webots version (2023B). The latest of this repository was updated for a pull request for that particular one.

If it still doesn't work, please post error messages here as well if you have any. I should have a bit of time to look at this this week.

knmcguire commented 1 year ago

closing issue due to inactivity