bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
frames.cpp File Reference
#include "bitsim/bitsim_config.h"
#include "bitsim/bitsim_consts.h"
#include "bitsim/bitsim_types.h"
#include "bitsim/rigid_bodies/chrono_robots/chrono_robot_pose.h"
#include "bitsim/utils/io/print_utils.h"
#include <chrono/core/ChCoordsys.h>
#include <chrono/core/ChFrame.h>
#include <chrono/core/ChRealtimeStep.h>
#include <chrono/core/ChRotation.h>
#include <chrono/physics/ChBodyEasy.h>
#include <chrono/physics/ChSystemNSC.h>
#include "bitsim/utils/render/irrlicht_utils.h"
#include <chrono/assets/ChVisualShapeBox.h>
#include <chrono_irrlicht/ChIrrTools.h>
#include <chrono_irrlicht/ChVisualSystemIrrlicht.h>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
Include dependency graph for frames.cpp:

Namespaces

namespace  frames

Typedefs

using frames::real_t
 real_t

Functions

const ChVector3d frames::ROBOT_POSITION (2.0, 1.0, 0.0)
const ChVector3d frames::SENSOR_POSITION (0.0, 0.2, 0.1)
const ChVector3d frames::OBSTACLE_IN_WORLD (0.0, 1.0, 0.1)
void frames::create_frames ()
void frames::transform_points_and_directions (const ChFrame<> &X_WR)
void frames::compose_frames (const ChFrame<> &X_WR, const ChFrame<> &X_RS)
void frames::invert_frames (const ChFrame<> &X_WS)
std::shared_ptr< chrono::ChBody > frames::build_robot (const ChFrame<> &X_WR)
void frames::attach_frames_to_body (chrono::ChSystemNSC &system, std::shared_ptr< chrono::ChBody > robot, const ChFrame<> &X_RS)
void frames::render (chrono::ChSystemNSC &system, std::shared_ptr< chrono::ChBody > robot, const ChFrame<> &X_RS)
int main (int argc, char **argv)
void frames::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 frames::print_title (const std::string &title, std::ostream &out)
 An empty line and then the title.
template<typename T>
std::ostream & frames::print_vector (std::ostream &out, const std::vector< T > &obs)
std::string frames::to_string (const chrono::ChVector3d &v)
 "(x, y, z)" with 3 decimals

Variables

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

Function Documentation

◆ main()

int main ( int argc,
char ** argv )