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

Classes

struct  Segment
struct  Pose
class  World
class  Kinematics
class  Display
struct  Options
class  DiffDriveDynamics
 DiffDriveDynamics class. Describes the motion of a differential drive robot in the plane: the centre of its axle at (x, y), facing theta. Three versions: More...
class  CHRONO_DiffDriveRobot
 A differential-drive robot in Chrono: a chassis, two driven wheels and a ball caster. Each driven wheel has an actuators::DCMotor. More...

Typedefs

using real_t
 real_t
using uint_t
 uint_t

Functions

real_t angle_diff (real_t a, real_t b)
int run (const Options &options)

Variables

const real_t PI = bitsim::consts::maths::PI
const std::string ROBOT_FILE = bitsim::consts::ROBOTS_DIR + "/bitsim_diff_drive_robot.json"
const real_t STEP_SIZE = 0.002
const real_t PRINT_PERIOD = 0.5
const real_t RECORD_RATE = 10.0
const real_t RENDER_RATE = 30.0
const std::vector< Segment > SCRIPT

Typedef Documentation

◆ real_t

◆ uint_t

Function Documentation

◆ angle_diff()

real_t chrono_diff_drive::angle_diff ( real_t a,
real_t b )

◆ run()

int chrono_diff_drive::run ( const Options & options)

Variable Documentation

◆ PI

const real_t chrono_diff_drive::PI = bitsim::consts::maths::PI

◆ PRINT_PERIOD

const real_t chrono_diff_drive::PRINT_PERIOD = 0.5

◆ RECORD_RATE

const real_t chrono_diff_drive::RECORD_RATE = 10.0

◆ RENDER_RATE

const real_t chrono_diff_drive::RENDER_RATE = 30.0

◆ ROBOT_FILE

const std::string chrono_diff_drive::ROBOT_FILE = bitsim::consts::ROBOTS_DIR + "/bitsim_diff_drive_robot.json"

◆ SCRIPT

const std::vector<Segment> chrono_diff_drive::SCRIPT
Initial value:
{
{"straight", 0.3, 0.0, 4.0},
{"turn on the spot", 0.0, PI / 4.0, 2.0},
{"arc", 0.3, 0.3, 2.0 * PI / 3.0 / 0.3},
{"stop", 0.0, 0.0, 1.5},
}
const real_t PI
Definition chrono_diff_drive.cpp:53

◆ STEP_SIZE

const real_t chrono_diff_drive::STEP_SIZE = 0.002