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

Classes

struct  Turn

Typedefs

using real_t
 real_t

Functions

const ChVector3d X_AXIS (1.0, 0.0, 0.0)
const ChVector3d Y_AXIS (0.0, 1.0, 0.0)
const ChVector3d Z_AXIS (0.0, 0.0, 1.0)
const ChVector3d ROBOT_POSITION (2.0, 1.0, 0.0)
const ChVector3d SENSOR_POSITION (0.0, 0.2, 0.1)
void print_angles (const std::string &name, const YawPitchRoll &angles)
void elementary_rotations ()
void properties (const ChMatrix33d &R_WR)
void rotating_vectors (const ChMatrix33d &R_WR)
ChMatrix33d composing_rotations (const ChMatrix33d &R_WR)
void yaw_pitch_roll ()
void rotation_of_a_moving_body (const ChMatrix33d &R_WR, const ChMatrix33d &R_RS)
const ChVector3d MAST_TOP (0.0, 0.2, 0.6)
real_t progress (real_t time, real_t start)
std::shared_ptr< chrono::ChBody > build_robot_on_mast (const ChVector3d &position)
std::string matrix_text (const ChMatrix33d &R)
std::string draw_sensor (chrono::irrlicht::ChVisualSystemIrrlicht &vis, const ChVector3d &robot_position, const std::string &name, const Turn &first, const Turn &second, real_t time)
irr::gui::IGUIStaticText * add_readout (chrono::irrlicht::ChVisualSystemIrrlicht &vis, int left, int height)
void open_window (chrono::irrlicht::ChVisualSystemIrrlicht &vis, chrono::ChSystemNSC &system, const std::string &title, const ChVector3d &camera, const ChVector3d &target)
void draw_floor (chrono::irrlicht::ChVisualSystemIrrlicht &vis)
void render_order_of_rotations ()
void draw_ring (chrono::irrlicht::ChVisualSystemIrrlicht &vis, const ChFrame<> &frame, real_t radius, const chrono::ChColor &color)
std::string draw_gimbal (chrono::irrlicht::ChVisualSystemIrrlicht &vis, const ChVector3d &centre, real_t final_pitch, real_t time)
void render_gimbal_lock ()

Variables

const real_t DEG = chrono::CH_DEG_TO_RAD
const real_t MAX_BEAM_LENGTH = 2.0
const real_t ROTATION_TIME = 2.5
const real_t WAIT_TIME = 1.0
const real_t CYCLE_TIME = 2.0 * ROTATION_TIME + 3.0 * WAIT_TIME

Typedef Documentation

◆ real_t

Function Documentation

◆ add_readout()

irr::gui::IGUIStaticText * rotation_matrices::add_readout ( chrono::irrlicht::ChVisualSystemIrrlicht & vis,
int left,
int height )

◆ build_robot_on_mast()

std::shared_ptr< chrono::ChBody > rotation_matrices::build_robot_on_mast ( const ChVector3d & position)

◆ composing_rotations()

ChMatrix33d rotation_matrices::composing_rotations ( const ChMatrix33d & R_WR)

◆ draw_floor()

void rotation_matrices::draw_floor ( chrono::irrlicht::ChVisualSystemIrrlicht & vis)

◆ draw_gimbal()

std::string rotation_matrices::draw_gimbal ( chrono::irrlicht::ChVisualSystemIrrlicht & vis,
const ChVector3d & centre,
real_t final_pitch,
real_t time )

◆ draw_ring()

void rotation_matrices::draw_ring ( chrono::irrlicht::ChVisualSystemIrrlicht & vis,
const ChFrame<> & frame,
real_t radius,
const chrono::ChColor & color )

◆ draw_sensor()

std::string rotation_matrices::draw_sensor ( chrono::irrlicht::ChVisualSystemIrrlicht & vis,
const ChVector3d & robot_position,
const std::string & name,
const Turn & first,
const Turn & second,
real_t time )

◆ elementary_rotations()

void rotation_matrices::elementary_rotations ( )

◆ MAST_TOP()

const ChVector3d rotation_matrices::MAST_TOP ( 0. 0,
0. 2,
0. 6 )

◆ matrix_text()

std::string rotation_matrices::matrix_text ( const ChMatrix33d & R)

◆ open_window()

void rotation_matrices::open_window ( chrono::irrlicht::ChVisualSystemIrrlicht & vis,
chrono::ChSystemNSC & system,
const std::string & title,
const ChVector3d & camera,
const ChVector3d & target )

◆ print_angles()

void rotation_matrices::print_angles ( const std::string & name,
const YawPitchRoll & angles )

◆ progress()

real_t rotation_matrices::progress ( real_t time,
real_t start )

◆ properties()

void rotation_matrices::properties ( const ChMatrix33d & R_WR)

◆ render_gimbal_lock()

void rotation_matrices::render_gimbal_lock ( )

◆ render_order_of_rotations()

void rotation_matrices::render_order_of_rotations ( )

◆ ROBOT_POSITION()

const ChVector3d rotation_matrices::ROBOT_POSITION ( 2. 0,
1. 0,
0. 0 )

◆ rotating_vectors()

void rotation_matrices::rotating_vectors ( const ChMatrix33d & R_WR)

◆ rotation_of_a_moving_body()

void rotation_matrices::rotation_of_a_moving_body ( const ChMatrix33d & R_WR,
const ChMatrix33d & R_RS )

◆ SENSOR_POSITION()

const ChVector3d rotation_matrices::SENSOR_POSITION ( 0. 0,
0. 2,
0. 1 )

◆ X_AXIS()

const ChVector3d rotation_matrices::X_AXIS ( 1. 0,
0. 0,
0. 0 )

◆ Y_AXIS()

const ChVector3d rotation_matrices::Y_AXIS ( 0. 0,
1. 0,
0. 0 )

◆ yaw_pitch_roll()

void rotation_matrices::yaw_pitch_roll ( )

◆ Z_AXIS()

const ChVector3d rotation_matrices::Z_AXIS ( 0. 0,
0. 0,
1. 0 )

Variable Documentation

◆ CYCLE_TIME

const real_t rotation_matrices::CYCLE_TIME = 2.0 * ROTATION_TIME + 3.0 * WAIT_TIME

◆ DEG

const real_t rotation_matrices::DEG = chrono::CH_DEG_TO_RAD

◆ MAX_BEAM_LENGTH

const real_t rotation_matrices::MAX_BEAM_LENGTH = 2.0

◆ ROTATION_TIME

const real_t rotation_matrices::ROTATION_TIME = 2.5

◆ WAIT_TIME

const real_t rotation_matrices::WAIT_TIME = 1.0