Public Member Functions | Protected Attributes | List of all members
Abstract_robot Class Referenceabstract

#include <abstract_robot.h>

Inheritance diagram for Abstract_robot:
Inheritance graph
[legend]

Public Member Functions

 Abstract_robot (std::string &name, tf2::Transform tf, tf2::Vector3 size)
 
 Abstract_robot (std::string name, tf2::Transform tf, tf2::Vector3 size)
 
float area_calculation (tf2::Transform &A, tf2::Transform &B, tf2::Transform &C)
 Triangle area calculator. More...
 
std::vector< tf2::Transform > & bounds ()
 
virtual std::vector< tf2::Transform > & bounds ()=0
 
virtual bool check_single_object_collision (tf2::Transform &obj, std::string &b)=0
 
virtual bool check_single_object_collision (tf2::Transform &obj, std::string &b)=0
 
std::string & name ()
 
virtual std::string & name ()=0
 
virtual void notify ()=0
 
virtual void notify ()=0
 
std::bitset< 3 > observer_mask ()
 
std::vector< tf2::Transform > & robot_root_bounds ()
 
virtual std::vector< tf2::Transform > & robot_root_bounds ()=0
 
tf2::Transform & root_tf ()
 
virtual tf2::Transform & root_tf ()=0
 
void rotate (float deg)
 
void rotate (float deg)
 
void set_observer_mask (int i)
 
void set_tf (tf2::Transform &t)
 
void set_tf (tf2::Transform &t)
 
tf2::Vector3 & size ()
 
virtual tf2::Vector3 & size ()=0
 
void size (tf2::Vector3 &s)
 
void size (tf2::Vector3 &s)
 
tf2::Transform & tf ()
 
virtual tf2::Transform & tf ()=0
 
void translate (tf2::Vector3 t)
 
void translate (tf2::Vector3 t)
 
virtual void workload_checker (std::vector< int > &count_vector, tf2::Transform &obj)=0
 
virtual void workload_checker (std::vector< int > &count_vector, tf2::Transform &obj)=0
 

Protected Attributes

std::vector< tf2::Transform > bounds_
 Bounds of table top surface. More...
 
std::string name_
 Name of robot. More...
 
std::bitset< 3 > observer_mask_
 
std::vector< tf2::Transform > robot_root_bounds_
 Bounds of robot arm as sub-region of table top. More...
 
tf2::Transform root_tf_
 Robot root on table top. More...
 
tf2::Vector3 size_
 Size of table. More...
 
tf2::Transform tf_
 Pose of table. More...
 

Detailed Description

Definition at line 25 of file impl/abstract_robot.h.

Constructor & Destructor Documentation

◆ Abstract_robot() [1/2]

Abstract_robot::Abstract_robot ( std::string &  name,
tf2::Transform  tf,
tf2::Vector3  size 
)
inline

Definition at line 38 of file impl/abstract_robot.h.

◆ Abstract_robot() [2/2]

Abstract_robot::Abstract_robot ( std::string  name,
tf2::Transform  tf,
tf2::Vector3  size 
)

Definition at line 4 of file abstract_robot.cpp.

Member Function Documentation

◆ area_calculation()

float Abstract_robot::area_calculation ( tf2::Transform &  A,
tf2::Transform &  B,
tf2::Transform &  C 
)

Triangle area calculator.

Calculates triangle with 3 vertices

Parameters
Apose of triagnel vertice
Bpose of triagnel vertice
Cpose of triagnel vertice
Returns
float triangle area

Definition at line 22 of file abstract_robot.cpp.

◆ bounds() [1/2]

std::vector<tf2::Transform>& Abstract_robot::bounds ( )
inline

Definition at line 61 of file impl/abstract_robot.h.

◆ bounds() [2/2]

virtual std::vector<tf2::Transform>& Abstract_robot::bounds ( )
pure virtual

Implemented in Ceti_robot, and Abstract_robot_decorator.

◆ check_single_object_collision() [1/2]

virtual bool Abstract_robot::check_single_object_collision ( tf2::Transform &  obj,
std::string &  b 
)
pure virtual

Implemented in Ceti_robot, Robot, and Abstract_robot_decorator.

◆ check_single_object_collision() [2/2]

virtual bool Abstract_robot::check_single_object_collision ( tf2::Transform &  obj,
std::string &  b 
)
pure virtual

Implemented in Ceti_robot, Robot, and Abstract_robot_decorator.

◆ name() [1/2]

std::string& Abstract_robot::name ( )
inline

Definition at line 57 of file impl/abstract_robot.h.

◆ name() [2/2]

virtual std::string& Abstract_robot::name ( )
pure virtual

Implemented in Ceti_robot, and Abstract_robot_decorator.

◆ notify() [1/2]

virtual void Abstract_robot::notify ( )
pure virtual

Implemented in Ceti_robot, Robot, and Abstract_robot_decorator.

◆ notify() [2/2]

virtual void Abstract_robot::notify ( )
pure virtual

Implemented in Ceti_robot, Robot, and Abstract_robot_decorator.

◆ observer_mask()

std::bitset<3> Abstract_robot::observer_mask ( )
inline

Definition at line 67 of file impl/abstract_robot.h.

◆ robot_root_bounds() [1/2]

std::vector<tf2::Transform>& Abstract_robot::robot_root_bounds ( )
inline

Definition at line 64 of file impl/abstract_robot.h.

◆ robot_root_bounds() [2/2]

virtual std::vector<tf2::Transform>& Abstract_robot::robot_root_bounds ( )
pure virtual

Implemented in Ceti_robot, and Abstract_robot_decorator.

◆ root_tf() [1/2]

tf2::Transform& Abstract_robot::root_tf ( )
inline

Definition at line 60 of file impl/abstract_robot.h.

◆ root_tf() [2/2]

virtual tf2::Transform& Abstract_robot::root_tf ( )
pure virtual

Implemented in Ceti_robot, and Abstract_robot_decorator.

◆ rotate() [1/2]

void Abstract_robot::rotate ( float  deg)
inline

Definition at line 41 of file robot/abstract_robot.h.

◆ rotate() [2/2]

void Abstract_robot::rotate ( float  deg)
inline

Definition at line 65 of file impl/abstract_robot.h.

◆ set_observer_mask()

void Abstract_robot::set_observer_mask ( int  i)
inline

Definition at line 68 of file impl/abstract_robot.h.

◆ set_tf() [1/2]

void Abstract_robot::set_tf ( tf2::Transform &  t)
inline

Definition at line 40 of file robot/abstract_robot.h.

◆ set_tf() [2/2]

void Abstract_robot::set_tf ( tf2::Transform &  t)
inline

Definition at line 63 of file impl/abstract_robot.h.

◆ size() [1/4]

tf2::Vector3& Abstract_robot::size ( )
inline

Definition at line 59 of file impl/abstract_robot.h.

◆ size() [2/4]

virtual tf2::Vector3& Abstract_robot::size ( )
pure virtual

Implemented in Ceti_robot, and Abstract_robot_decorator.

◆ size() [3/4]

void Abstract_robot::size ( tf2::Vector3 &  s)
inline

Definition at line 39 of file robot/abstract_robot.h.

◆ size() [4/4]

void Abstract_robot::size ( tf2::Vector3 &  s)
inline

Definition at line 62 of file impl/abstract_robot.h.

◆ tf() [1/2]

tf2::Transform& Abstract_robot::tf ( )
inline

Definition at line 58 of file impl/abstract_robot.h.

◆ tf() [2/2]

virtual tf2::Transform& Abstract_robot::tf ( )
pure virtual

Implemented in Ceti_robot, and Abstract_robot_decorator.

◆ translate() [1/2]

void Abstract_robot::translate ( tf2::Vector3  t)
inline

Definition at line 42 of file robot/abstract_robot.h.

◆ translate() [2/2]

void Abstract_robot::translate ( tf2::Vector3  t)
inline

Definition at line 66 of file impl/abstract_robot.h.

◆ workload_checker() [1/2]

virtual void Abstract_robot::workload_checker ( std::vector< int > &  count_vector,
tf2::Transform &  obj 
)
pure virtual

Implemented in Ceti_robot, Abstract_robot_decorator, and Robot.

◆ workload_checker() [2/2]

virtual void Abstract_robot::workload_checker ( std::vector< int > &  count_vector,
tf2::Transform &  obj 
)
pure virtual

Implemented in Ceti_robot, Abstract_robot_decorator, and Robot.

Member Data Documentation

◆ bounds_

std::vector< tf2::Transform > Abstract_robot::bounds_
protected

Bounds of table top surface.

Definition at line 31 of file impl/abstract_robot.h.

◆ name_

std::string Abstract_robot::name_
protected

Name of robot.

Definition at line 27 of file impl/abstract_robot.h.

◆ observer_mask_

std::bitset<3> Abstract_robot::observer_mask_
protected

Definition at line 33 of file impl/abstract_robot.h.

◆ robot_root_bounds_

std::vector< tf2::Transform > Abstract_robot::robot_root_bounds_
protected

Bounds of robot arm as sub-region of table top.

Definition at line 32 of file impl/abstract_robot.h.

◆ root_tf_

tf2::Transform Abstract_robot::root_tf_
protected

Robot root on table top.

Definition at line 30 of file impl/abstract_robot.h.

◆ size_

tf2::Vector3 Abstract_robot::size_
protected

Size of table.

Definition at line 28 of file impl/abstract_robot.h.

◆ tf_

tf2::Transform Abstract_robot::tf_
protected

Pose of table.

Definition at line 29 of file impl/abstract_robot.h.


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


multi_cell_builder
Author(s): MA
autogenerated on Thu Jan 12 2023 23:45:43