Public Member Functions | List of all members
exotica::LookAt Class Reference

Points end-effector to look at a given target by aligning end-effector z-axis with the target. Looks at a target point by penalizing the vector which defines the orthogonal projection onto a defined line in the end-effector frame. More...

#include <look_at.h>

Inheritance diagram for exotica::LookAt:
Inheritance graph
[legend]

Public Member Functions

int TaskSpaceDim () override
 
void Update (Eigen::VectorXdRefConst x, Eigen::VectorXdRef phi) override
 
void Update (Eigen::VectorXdRefConst x, Eigen::VectorXdRef phi, Eigen::MatrixXdRef jacobian) override
 
- Public Member Functions inherited from exotica::TaskMap
virtual void AssignScene (ScenePtr scene)
 
std::vector< KinematicFrameRequestGetFrames () const
 
virtual std::vector< TaskVectorEntryGetLieGroupIndices ()
 
virtual void InstantiateBase (const Initializer &init)
 
virtual void PreUpdate ()
 
virtual int TaskSpaceJacobianDim ()
 
virtual void Update (Eigen::VectorXdRefConst x, Eigen::VectorXdRefConst u, Eigen::VectorXdRef phi, Eigen::MatrixXdRef dphi_dx, Eigen::MatrixXdRef dphi_du)
 
virtual void Update (Eigen::VectorXdRefConst x, Eigen::VectorXdRefConst u, Eigen::VectorXdRef phi)
 
virtual void Update (Eigen::VectorXdRefConst x, Eigen::VectorXdRefConst u, Eigen::VectorXdRef phi, Eigen::MatrixXdRef dphi_dx, Eigen::MatrixXdRef dphi_du, HessianRef ddphi_ddx, HessianRef ddphi_ddu, HessianRef ddphi_dxdu)
 
virtual void Update (Eigen::VectorXdRefConst q, Eigen::VectorXdRef phi, Eigen::MatrixXdRef jacobian, HessianRef hessian)
 
- Public Member Functions inherited from exotica::Object
std::string GetObjectName ()
 
void InstantiateObject (const Initializer &init)
 
 Object ()
 
virtual std::string Print (const std::string &prepend) const
 
virtual std::string type () const
 
virtual ~Object ()
 
- Public Member Functions inherited from exotica::InstantiableBase
 InstantiableBase ()=default
 
virtual ~InstantiableBase ()=default
 
- Public Member Functions inherited from exotica::Instantiable< LookAtInitializer >
std::vector< InitializerGetAllTemplates () const override
 
Initializer GetInitializerTemplate () override
 
const LookAtInitializer & GetParameters () const
 
virtual void Instantiate (const LookAtInitializer &init)
 
void InstantiateInternal (const Initializer &init) override
 

Additional Inherited Members

- Public Attributes inherited from exotica::TaskMap
int id
 
bool is_used
 
std::vector< KinematicSolutionkinematics
 
int length
 
int length_jacobian
 
int start
 
int start_jacobian
 
- Public Attributes inherited from exotica::Object
bool debug_
 
std::string ns_
 
std::string object_name_
 
- Protected Attributes inherited from exotica::TaskMap
std::vector< KinematicFrameRequestframes_
 
ScenePtr scene_
 
- Protected Attributes inherited from exotica::Instantiable< LookAtInitializer >
LookAtInitializer parameters_
 

Detailed Description

Points end-effector to look at a given target by aligning end-effector z-axis with the target. Looks at a target point by penalizing the vector which defines the orthogonal projection onto a defined line in the end-effector frame.

taskmap_lookat.png
LookAt task map.

Given the point $p$ (the point to look at) defined in the end-effector space the task map is expressed by

\[ \Phi = \vec{d} \]

where $\vec{d}:=p - a$ where $a$ is the orthogonal projection onto the line $L$ given by

\[ L:=\{\alpha c : \alpha\in\mathbb{R}\} \]

and $c$ is some fixed point in the end-effector frame.

The LookAt task map can handle a goal for each end-effector. Three frames must be defined in the .xml for every goal.

Definition at line 59 of file look_at.h.

Member Function Documentation

int exotica::LookAt::TaskSpaceDim ( )
overridevirtual

Implements exotica::TaskMap.

Definition at line 57 of file look_at.cpp.

void exotica::LookAt::Update ( Eigen::VectorXdRefConst  x,
Eigen::VectorXdRef  phi 
)
overridevirtual

Implements exotica::TaskMap.

Definition at line 36 of file look_at.cpp.

void exotica::LookAt::Update ( Eigen::VectorXdRefConst  x,
Eigen::VectorXdRef  phi,
Eigen::MatrixXdRef  jacobian 
)
overridevirtual

Reimplemented from exotica::TaskMap.

Definition at line 44 of file look_at.cpp.


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


exotica_core_task_maps
Author(s): Yiming Yang, Michael Camilleri
autogenerated on Sat Apr 10 2021 02:36:09