bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
pi_camera_line_following::DownwardCamera::Config Struct Reference

The camera's mounting and image. More...

#include <downward_camera.h>

Public Member Functions

void read (const nlohmann::json &j)
 Read the values that the json gives.

Public Attributes

real_t offset {0.35}
 How far ahead of the reference point the centre of the view is [m].
real_t view_length {0.3}
 The length of the floor the camera sees along the robot's heading [m].
real_t view_width {0.4}
 The width of the floor the camera sees across the robot [m].
uint_t image_width {160}
 The size of the camera's image [pixels].
uint_t image_height {120}
real_t update_rate {20.0}
 How many images the camera takes per second [1/s].

Detailed Description

The camera's mounting and image.

Member Function Documentation

◆ read()

void bitsim::sensors::DownwardCamera::Config::read ( const nlohmann::json & j)

Read the values that the json gives.

Member Data Documentation

◆ image_height

◆ image_width

The size of the camera's image [pixels].

◆ offset

How far ahead of the reference point the centre of the view is [m].

◆ update_rate

How many images the camera takes per second [1/s].

◆ view_length

The length of the floor the camera sees along the robot's heading [m].

◆ view_width

The width of the floor the camera sees across the robot [m].


The documentation for this struct was generated from the following files: