Swarm In Blocks
  • ▶️introduction
    • Swarm in Blocks
    • What's new?
    • The Atena Team
  • ⚙️Installation
    • How to install Swarm in Blocks?
      • Virtual Machine
      • Native Installation
      • Network configuration
  • 💻Usability
    • Python API
      • Starting modes
      • Basic swarm operations
      • LED operations
      • Formations operations
      • Transformations operations
    • Web API
      • Homepage
      • Swarm Clover Blocks
      • Swarm Station
    • Launch modes
  • 📚Background theory
    • Overview
      • Swarm manipulation
      • ROS architecture
      • Clover adaptation
    • Systems
      • Formations
        • Alphabet
        • Formation 3D
      • Transformations
      • Collision Avoidance
      • LED Effects
      • Swarm Preview
      • First Person View (new)
  • 📖Cases
    • Examples
    • Show-off
  • 🚀Applications
    • Education
    • Commercial
  • 🔒CLOSURE
    • Conclusion
    • References
Powered by GitBook
On this page
  • How to use it
  • Example
  • Remarks
  1. Background theory
  2. Systems
  3. Formations

Formation 3D

3D Formations subsystem for formations

PreviousAlphabetNextTransformations

Last updated 3 years ago

We also take care to make other 3D formations more complex, for this we use a library called Open3D which is an open-source library that supports rapid development of software that deals with 3D data. For more information and how to use it for personal projects you can visit the website link.

The function is very simple, using only the tools in the library. When you select it from the menu, the program will prompt you for the file in one of the below. In addition, you will also be prompted for the number of points desired for the composition of the formation. The Open3D functions return the coordinates of the points formed. The process described is to visualize the images below of how the points would be.

How to use it

To get a preview of how the simulation would look you can use the file formation3D.py. The command should be used inside the folder in which it resides.

#Use the Python version on your machine
python3 formation3D.py

Example

Remarks

It is worth pointing out that this tool to perfectly form the desired formation would require many points, more than the Wi-fi network can support. In this way, this tool becomes more visual. The limit is 255 Clovers.

To simulate it, just do the same as in the previous session and run swarm.py. Choose the desired function and follow the same paths as for .

📚
Formation
Open3D
formats
Source: Open3D Library