bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::rb::bitsim_chrono::CHRONO_RobotPose Class Reference

Wrapper for representing the state of a CHRONO_Robot. More...

#include <chrono_robot_pose.h>

Public Member Functions

 CHRONO_RobotPose (std::shared_ptr< chrono::ChBody > robot_ptr=nullptr)
 Constructor. Initialize by passing a pointer to the chrono::ChBody to monitor.
void set_body (std::shared_ptr< chrono::ChBody > robot_ptr)
const chrono::ChVector3d & position () const
 Return the position vector. This is the position of the CoM of the body.
const chrono::ChVector3d & velocity () const
const chrono::ChVector3d & acceleration () const
const chrono::ChMatrix33d & rotation_matrix () const
 Return the rotation matrix.
chrono::ChVector3d to_world_coords (chrono::ChVector3d point)
 Return the transformation of the local to the world coordinats.
chrono::ChVector3d to_local_coords (chrono::ChVector3d point)
 Transform the world point to local coordinates.

Detailed Description

Wrapper for representing the state of a CHRONO_Robot.

Constructor & Destructor Documentation

◆ CHRONO_RobotPose()

bitsim::rb::bitsim_chrono::CHRONO_RobotPose::CHRONO_RobotPose ( std::shared_ptr< chrono::ChBody > robot_ptr = nullptr)
inlineexplicit

Constructor. Initialize by passing a pointer to the chrono::ChBody to monitor.

Member Function Documentation

◆ acceleration()

const chrono::ChVector3d & bitsim::rb::bitsim_chrono::CHRONO_RobotPose::acceleration ( ) const
inline
Returns
The linear velocity of the monitored body

◆ position()

const chrono::ChVector3d & bitsim::rb::bitsim_chrono::CHRONO_RobotPose::position ( ) const
inline

Return the position vector. This is the position of the CoM of the body.

◆ rotation_matrix()

const chrono::ChMatrix33d & bitsim::rb::bitsim_chrono::CHRONO_RobotPose::rotation_matrix ( ) const
inline

Return the rotation matrix.

◆ set_body()

void bitsim::rb::bitsim_chrono::CHRONO_RobotPose::set_body ( std::shared_ptr< chrono::ChBody > robot_ptr)
inline

Set/Reset the chrono::ChBody to monitor

Parameters
robot_ptr

◆ to_local_coords()

chrono::ChVector3d bitsim::rb::bitsim_chrono::CHRONO_RobotPose::to_local_coords ( chrono::ChVector3d point)
inline

Transform the world point to local coordinates.

◆ to_world_coords()

chrono::ChVector3d bitsim::rb::bitsim_chrono::CHRONO_RobotPose::to_world_coords ( chrono::ChVector3d point)
inline

Return the transformation of the local to the world coordinats.

◆ velocity()

const chrono::ChVector3d & bitsim::rb::bitsim_chrono::CHRONO_RobotPose::velocity ( ) const
inline
Returns
The linear velocity of the monitored body

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