Replies: 4 comments
-
Hi @jpreiss! I am currently using sim_cf and Crazyswarm for my research: the first for sitl testing and the second for hitl testing. However, the problem I often have is that the crazyflie_firmware used in sim_cf is a fork and it is not up to date with the bitcraze firmware. Same for It would be really good to somehow unify these projects, not only for testing, but also for developing and training new algorithms in simulation! |
Beta Was this translation helpful? Give feedback.
-
Hello, to echo this. I explored sim_cf 10 days ago, I am currently using Crazyswarm in my work. |
Beta Was this translation helpful? Give feedback.
-
@EnricaSo ah, I see. From our past experience at USC, maintaining a forked firmware is not desirable. So I guess bitcraze would need to accept the SITL support into the main firmware for this to be a viable long term plan. It seems like SITL testing would be quite useful for any CF developer. If the code changes are not intrusive I think it would have a good chance at acceptance. But there might be a lot of design discussions. |
Beta Was this translation helpful? Give feedback.
-
@ThomasCarstens please start a new issue. By "lib busy" do you mean |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just learned about this project, but it's over a year old: https://github.com/wuwushrek/sim_cf
More discussion: https://forum.bitcraze.io/viewtopic.php?f=2&t=2929
Apparently the author(s) already implemented a fairly complete SITL (sofware in the loop) simulation with FreeRTOS running on x86, sensor emulation, and physics from Gazebo.
It would be very cool to use this for Crazyswarm testing. In theory, we could run all of our current unit tests with ROS,
crazyflie_cpp
, the firmware radio parsing, and firmware control in the loop. It seems like they have already achievedcrazyflie_ros
compatibility and possibly copied some code fromcrazyflie_ros
and/orcrazyswarm
(seecrazyflie.py
,uav_trajectory.py
andtest_high_level.py
for usage in https://github.com/wuwushrek/sim_cf/tree/master/crazyflie_gazebo/scripts).It may not be that much work to use it in our tests. For example, we may be able to add
crazyflieSITL.py
alongsidecrazyflieSim.py
andcrazyflie.py
.Not proposing anything concrete yet, but interested in others' thoughts.
Beta Was this translation helpful? Give feedback.
All reactions