Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ros2-webots environment #49

Closed
ntukenmez3 opened this issue Oct 3, 2023 · 9 comments
Closed

ros2-webots environment #49

ntukenmez3 opened this issue Oct 3, 2023 · 9 comments

Comments

@ntukenmez3
Copy link

Do you have any useful guide to use this file via ros2? We would like to use webots environment and real cf2 together.

@knmcguire
Copy link
Contributor

There is currently no standard webots support for ros2 and the crazyflie, but we hope to fix that in the future.

In the mean time, please take a look at the webots ros2 tutorial: https://docs.ros.org/en/humble/Tutorials/Advanced/Simulators/Webots/Simulation-Webots.html. that should have all the info you need to set something up.

Another option is to look at my crazyflie ros2 experimental project files: This will no longer maintained but perhaps you can take a look at how this was done for an older version of webots (is might already be outdated though). https://github.com/knmcguire/crazyflie_ros2_experimental

I would usually transfer questions like these to discussions, but since we would like to implement a standard package to ROS2 for webots crazyflie connection, I'll keep this open for now. The question is just if we would like include that in this repo or make a new one.

@ntukenmez3
Copy link
Author

Got it!

@ntukenmez3
Copy link
Author

That process would also be same for a real cf2? Because the only difference will be the environment.

@knmcguire
Copy link
Contributor

knmcguire commented Oct 5, 2023

kind off. You'll need to ofcourse also use different motor names and everything but that you can get from the crazyflie proto file (the webots description file of the crazyflie). You could also take some inspiration from the dji mavic ROS2 implementation of webots: https://github.com/cyberbotics/webots_ros2/tree/master/webots_ros2_mavic

@ntukenmez3
Copy link
Author

That link would be great for us since a different uav is used for simulation on Webots. I think most of the requirements would be same hopefully.

@knmcguire
Copy link
Contributor

Yes I think so! let me know how it works out. That will help a future implementation of the ROS simulation.

@mwlock
Copy link

mwlock commented Oct 10, 2023

I have made a minimal example for launching a SIL driver in webots_ros2_crazyflie to replicate crazyflie_controller_py_firmware_pid.

Running the launch file will get the Webots simulator going as well :)

@knmcguire
Copy link
Contributor

Thanks! @matthew-william-lock.

For the future webots ros2 implementation we can't really use the SIL controllers though since that requires the crazyflie firmware and don't think that the fox of cyberbotics likes such an external dependency. So probably for the first PR it will be the easy PID velocity controller that was written for this simulation

@knmcguire knmcguire linked a pull request Dec 6, 2023 that will close this issue
@knmcguire
Copy link
Contributor

The ROS2 package for webots is now part of the development branch of webots_ros2. We just need to wait for the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants