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

Typedefs

using real_t
 real_t

Functions

const ChVector3d ROBOT_POSITION (2.0, 1.0, 0.0)
const ChVector3d SENSOR_POSITION (0.0, 0.2, 0.1)
const ChVector3d OBSTACLE_IN_WORLD (0.0, 1.0, 0.1)
void create_frames ()
void transform_points_and_directions (const ChFrame<> &X_WR)
void compose_frames (const ChFrame<> &X_WR, const ChFrame<> &X_RS)
void invert_frames (const ChFrame<> &X_WS)
std::shared_ptr< chrono::ChBody > build_robot (const ChFrame<> &X_WR)
void attach_frames_to_body (chrono::ChSystemNSC &system, std::shared_ptr< chrono::ChBody > robot, const ChFrame<> &X_RS)
void render (chrono::ChSystemNSC &system, std::shared_ptr< chrono::ChBody > robot, const ChFrame<> &X_RS)
void print_frame (const std::string &label, const chrono::ChFrame<> &frame, int width=14)
 The label, the origin of the frame and its three axes, as seen from its parent: the columns of its rotation matrix.
void print_title (const std::string &title, std::ostream &out)
 An empty line and then the title.
template<typename T>
std::ostream & print_vector (std::ostream &out, const std::vector< T > &obs)
std::string to_string (const chrono::ChVector3d &v)
 "(x, y, z)" with 3 decimals

Variables

const real_t YAW_90 = bitsim::consts::maths::PI / 2.0
const int LABEL_WIDTH = 14

Typedef Documentation

◆ real_t

Function Documentation

◆ attach_frames_to_body()

void frames::attach_frames_to_body ( chrono::ChSystemNSC & system,
std::shared_ptr< chrono::ChBody > robot,
const ChFrame<> & X_RS )

◆ build_robot()

std::shared_ptr< chrono::ChBody > frames::build_robot ( const ChFrame<> & X_WR)

◆ compose_frames()

void frames::compose_frames ( const ChFrame<> & X_WR,
const ChFrame<> & X_RS )

◆ create_frames()

void frames::create_frames ( )

◆ invert_frames()

void frames::invert_frames ( const ChFrame<> & X_WS)

◆ OBSTACLE_IN_WORLD()

const ChVector3d frames::OBSTACLE_IN_WORLD ( 0. 0,
1. 0,
0. 1 )

◆ print_frame()

void bitsim::utils::io::print_frame ( const std::string & label,
const chrono::ChFrame<> & frame,
int width = 14 )

The label, the origin of the frame and its three axes, as seen from its parent: the columns of its rotation matrix.

◆ print_title()

void bitsim::utils::io::print_title ( const std::string & title,
std::ostream & out )

An empty line and then the title.

◆ print_vector()

template<typename T>
std::ostream & bitsim::utils::io::print_vector ( std::ostream & out,
const std::vector< T > & obs )

◆ render()

void frames::render ( chrono::ChSystemNSC & system,
std::shared_ptr< chrono::ChBody > robot,
const ChFrame<> & X_RS )

◆ ROBOT_POSITION()

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

◆ SENSOR_POSITION()

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

◆ to_string()

std::string bitsim::utils::io::to_string ( const chrono::ChVector3d & v)

"(x, y, z)" with 3 decimals

◆ transform_points_and_directions()

void frames::transform_points_and_directions ( const ChFrame<> & X_WR)

Variable Documentation

◆ LABEL_WIDTH

const int frames::LABEL_WIDTH = 14

◆ YAW_90

const real_t frames::YAW_90 = bitsim::consts::maths::PI / 2.0