Roomba App  1.0
GLWidget::Dimensions Struct Reference

Dimensions used in drawing. More...

Public Attributes

const float scale = 1.0 / 4000.0
 The general scale. More...
 
const float robotHeight = 200.0 * scale
 The obot body height. More...
 
const float robotRadius = 300.0 * scale
 The robot body radius. More...
 
const float robotWheelRadius = 100.0 * scale
 The wheel radius. More...
 
const float robotWheelThickness = 50.0 * scale
 The wheel thickness. More...
 
const float lidarHeight = 210.0 * scale
 The laser sensor height. More...
 
const float obstacleSize = 30.0 * scale
 A size of the cube drawn as obstacle. More...
 

Detailed Description

All dimensions are in millimeters.

A scale is important because max distance from the lidar is 4m, so we have to the scale down other dimensions to fit all data in 1x1x1 cube.

Definition at line 132 of file glWidget.hh.

Member Data Documentation

◆ lidarHeight

const float GLWidget::Dimensions::lidarHeight = 210.0 * scale

Definition at line 139 of file glWidget.hh.

◆ obstacleSize

const float GLWidget::Dimensions::obstacleSize = 30.0 * scale

Definition at line 140 of file glWidget.hh.

◆ robotHeight

const float GLWidget::Dimensions::robotHeight = 200.0 * scale

Definition at line 135 of file glWidget.hh.

◆ robotRadius

const float GLWidget::Dimensions::robotRadius = 300.0 * scale

Definition at line 136 of file glWidget.hh.

◆ robotWheelRadius

const float GLWidget::Dimensions::robotWheelRadius = 100.0 * scale

Definition at line 137 of file glWidget.hh.

◆ robotWheelThickness

const float GLWidget::Dimensions::robotWheelThickness = 50.0 * scale

Definition at line 138 of file glWidget.hh.

◆ scale

const float GLWidget::Dimensions::scale = 1.0 / 4000.0

Definition at line 134 of file glWidget.hh.


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