bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim examples

bitsim examples

The examples go through the library in order, from its basic types to robots that run on real hardware, and each section uses what the sections before it showed. They live in examples/<section>/<example>/ and are built with the library when ENABLE_EXAMPLES is ON; the executable has the name of the example. Some need optional dependencies, and the page of each example says which. See Installing bitsim for how to build bitsim.

With ENABLE_TESTS=ON, ctest -L examples runs every example that needs no hardware, no server and no window, and checks that it finishes without an error.

1. Basics

2. Frames and rotations

Where things are, and which way they face.

3. Kinematics

How the joints of an arm, or the wheels of a robot, move what they carry.

4. Trajectories

When to be where along a path.

5. Mapping and motion planning

Building a map of the obstacles from range scans, then finding a path that avoids them.

6. Sensors and actuators

What a robot measures with, and what it moves with.

7. Simulation

Simulating bodies and robots with Chrono. These need bitsim built with ENABLE_CHRONO=ON.

8. State estimation

What a robot can work out about itself from its sensors.

9. Hardware in the loop

Real boards and sensors, and the simulated robot with real parts: motors on a board, a camera on a Raspberry Pi.

10. Control

11. Parallel computing

Running independent work on all the cores, and passing data between threads.

12. Distributed simulation

Robots simulated by separate participants, threads or processes on several machines, that tell each other where their robots are; in lockstep, or keeping pace with the wall clock and with real robots.

13. Co-simulation

Coupled subsystems, each with its own solver, that meet every macro step to exchange forces and motions: loosely, or tightly, repeating a step until they agree. The subsystems can be threads, or processes on several machines.

The robotics course

The lessons of the robotics course are examples of the sections above. In the order of the course:

  1. Frames
  2. Rotation matrices
  3. Forward kinematics
  4. Inverse kinematics
  5. A brushless DC motor
  6. A differential drive robot with real motors
  7. A line following robot with a Raspberry Pi camera
  8. Following a line with infrared sensors and avoiding obstacles
  9. Turning by the gyroscope of an IMU
  10. Odometry from the wheel encoders