mc_tvm::PositionFunction Class Reference

#include <mc_tvm/PositionFunction.h>

Inheritance diagram for mc_tvm::PositionFunction:
Collaboration diagram for mc_tvm::PositionFunction:

Public Member Functions

 PositionFunction (const mc_rbdyn::RobotFrame &frame)
 
void reset ()
 
const Eigen::Vector3d & position () const noexcept
 
void position (const Eigen::Vector3d &pos) noexcept
 
const Eigen::Vector3d & refVel () const noexcept
 
void refVel (const Eigen::Vector3d &refVel) noexcept
 
const Eigen::Vector3d & refAccel () const noexcept
 
void refAccel (const Eigen::Vector3d &refAccel) noexcept
 
const mc_rbdyn::RobotFrameframe () const noexcept
 

Protected Member Functions

void updateValue ()
 
void updateVelocity ()
 
void updateJacobian ()
 
void updateNormalAcceleration ()
 

Protected Attributes

mc_rbdyn::ConstRobotFramePtr robot_frame_
 
mc_tvm::RobotFrameframe_
 
Eigen::Vector3d pos_
 
Eigen::Vector3d refVel_
 
Eigen::Vector3d refAccel_
 

Detailed Description

This class implements a position function for a given frame

Constructor & Destructor Documentation

◆ PositionFunction()

mc_tvm::PositionFunction::PositionFunction ( const mc_rbdyn::RobotFrame frame)

Constructor

Set the objective to the current frame position

Member Function Documentation

◆ frame()

const mc_rbdyn::RobotFrame& mc_tvm::PositionFunction::frame ( ) const
inlinenoexcept

Get the frame

◆ position() [1/2]

const Eigen::Vector3d& mc_tvm::PositionFunction::position ( ) const
inlinenoexcept

Get the current objective

◆ position() [2/2]

void mc_tvm::PositionFunction::position ( const Eigen::Vector3d &  pos)
inlinenoexcept

Set the objective

◆ refAccel() [1/2]

const Eigen::Vector3d& mc_tvm::PositionFunction::refAccel ( ) const
inlinenoexcept

Get the current objective

◆ refAccel() [2/2]

void mc_tvm::PositionFunction::refAccel ( const Eigen::Vector3d &  refAccel)
inlinenoexcept

Set the objective

◆ refVel() [1/2]

const Eigen::Vector3d& mc_tvm::PositionFunction::refVel ( ) const
inlinenoexcept

Get the current objective

◆ refVel() [2/2]

void mc_tvm::PositionFunction::refVel ( const Eigen::Vector3d &  refVel)
inlinenoexcept

Set the objective

◆ reset()

void mc_tvm::PositionFunction::reset ( )

Set the target position to the current frame position and reset reference velocity/acceleration to zero

◆ updateJacobian()

void mc_tvm::PositionFunction::updateJacobian ( )
protected

◆ updateNormalAcceleration()

void mc_tvm::PositionFunction::updateNormalAcceleration ( )
protected

◆ updateValue()

void mc_tvm::PositionFunction::updateValue ( )
protected

◆ updateVelocity()

void mc_tvm::PositionFunction::updateVelocity ( )
protected

Member Data Documentation

◆ frame_

mc_tvm::RobotFrame& mc_tvm::PositionFunction::frame_
protected

◆ pos_

Eigen::Vector3d mc_tvm::PositionFunction::pos_
protected

Target

◆ refAccel_

Eigen::Vector3d mc_tvm::PositionFunction::refAccel_
protected

◆ refVel_

Eigen::Vector3d mc_tvm::PositionFunction::refVel_
protected

◆ robot_frame_

mc_rbdyn::ConstRobotFramePtr mc_tvm::PositionFunction::robot_frame_
protected

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