-
Notifications
You must be signed in to change notification settings - Fork 84
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
Virtual Reality Integration #78
Comments
Hi! If I get it correctly, you would like to use ROS, and therefore CrazyS, in the loop with the real device. Isn't it? Well, firstly, why do you want to use CrazyS to control the Crazyflie? Crazyflie ROS is the most suitable package in this case. I would use MATLAB first, or any other numerical environment to test the path planning/control algorithm, then CrazyS (if you want to run a more advanced simulation that takes into account second-order effects as well as the onboard firmware), and then the real device. Please note that CrazyS does not integrate the latest version of the firmware (it is still at the I hope this helps. |
Hi! Yes, we are using Crazyswarm and we using drones for making variable formations. We want to give PWM variables and use them on CrazyS for virtual-reality environment. In other words, We want to simulate simultaneous on Crazys the commands that on impements real Crazyflies. We already have tested algorithms on numerical and real environments. But we don't able to control our drones on CrazyS. We just want to operate virtual(CrazyS) and real devices simultaneously. Additionally, we want to remind you that we are using Crazyswarm these all our stuides. Thanks in advance. |
I see! Please, note that Gazebo only accepts SI measurements (i.e., meters per second, radians per second, etc.). Therefore, you need to convert PWM signals from propeller angular speeds expressed in radians per second. If you see the reference publications (see the book chapter in the Wiki), you will easily understand how to convert these values. So, you need to write some glue code to interface Gazebo with your code. Here, there is a simple launch file that runs the Crazyflie without any controller. |
Thanks for your quick respond! How can we apply this converted data to Crazyflie with Gazebo? How can we create our own controller? Is there any source that you can advice about this controller situation? Thanks in advance. |
Well, as I said, it simply implements the equation referenced in the book chapter. As for the controller, you can use the book chapter as a guideline to implement the position controller (see the |
Another question is how can we update version 2018.01 to version 2020.02? Is there any reference about it? Thanks in advance. |
You need to explore the firmware of the Crazyflie available in this repository. Next, compare the onboard controllers in CrazyS (i.e., |
position_controller_node.cpp ==> 512 ==> actuator_msg->header.stamp = odometry_msg->header.stamp; Here, we changed values that sent to rotor. Below this line (512) we tried these values which taken by real drone but drone is not flying with these values only the propellers are running. actuator_msg->angular_velocities[0] = 2000; How can I solve this problem? |
As you mentioned, we should convert these values. But I couldn't find in book chapter. Can you please help me to convert these values? |
See page 9 in the book chapter |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closed for inactivity. |
Can we provide virtual-reality integration with using PWM datas which coming from Crazyflies? If it is not possible, is there any way to do this?
The text was updated successfully, but these errors were encountered: