Public Member Functions | Protected Attributes | List of all members
Robot Class Reference

#include <robot.h>

Inheritance diagram for Robot:
Inheritance graph
[legend]

Public Member Functions

std::vector< Abstract_robot_element * > & access_fields ()
 
void add_coll_markers (moveit_msgs::CollisionObject *marker)
 
float area_calculation (tf2::Transform &A, tf2::Transform &B, tf2::Transform &C)
 
bool check_robot_collision (Robot *R)
 
bool check_single_object_collision (tf2::Transform &obj, std::string &str) override
 
std::vector< moveit_msgs::CollisionObject * > coll_markers ()
 
void generate_access_fields ()
 
void notify () override
 
std::vector< Abstract_robot_element * > & observers ()
 
void register_observers (Abstract_robot_element *wd)
 
void reset ()
 
 Robot (std::string &name, tf2::Transform tf, tf2::Vector3 size)
 
void workload_checker (std::vector< int > &count_vector, tf2::Transform &obj) override
 
- Public Member Functions inherited from Abstract_robot
 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
 
std::string & name ()
 
virtual std::string & name ()=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)
 

Protected Attributes

std::vector< Abstract_robot_element * > access_fields_
 
std::vector< moveit_msgs::CollisionObject * > coll_markers_
 
std::vector< Abstract_robot_element * > observers_
 
- Protected Attributes inherited from Abstract_robot
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 19 of file robot.h.

Constructor & Destructor Documentation

◆ Robot()

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

Definition at line 27 of file robot.h.

Member Function Documentation

◆ access_fields()

std::vector<Abstract_robot_element*>& Robot::access_fields ( )
inline

Definition at line 30 of file robot.h.

◆ add_coll_markers()

void Robot::add_coll_markers ( moveit_msgs::CollisionObject *  marker)
inline

Definition at line 32 of file robot.h.

◆ area_calculation()

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

Definition at line 31 of file robot.cpp.

◆ check_robot_collision()

bool Robot::check_robot_collision ( Robot R)

Definition at line 130 of file robot.cpp.

◆ check_single_object_collision()

bool Robot::check_single_object_collision ( tf2::Transform &  obj,
std::string &  str 
)
overridevirtual

Implements Abstract_robot.

Definition at line 70 of file robot.cpp.

◆ coll_markers()

std::vector<moveit_msgs::CollisionObject*> Robot::coll_markers ( )
inline

Definition at line 33 of file robot.h.

◆ generate_access_fields()

void Robot::generate_access_fields ( )

Definition at line 3 of file robot.cpp.

◆ notify()

void Robot::notify ( )
overridevirtual

Implements Abstract_robot.

Definition at line 125 of file robot.cpp.

◆ observers()

std::vector<Abstract_robot_element*>& Robot::observers ( )
inline

Definition at line 29 of file robot.h.

◆ register_observers()

void Robot::register_observers ( Abstract_robot_element wd)

Definition at line 182 of file robot.cpp.

◆ reset()

void Robot::reset ( )

Definition at line 118 of file robot.cpp.

◆ workload_checker()

void Robot::workload_checker ( std::vector< int > &  count_vector,
tf2::Transform &  obj 
)
overridevirtual

Implements Abstract_robot.

Definition at line 38 of file robot.cpp.

Member Data Documentation

◆ access_fields_

std::vector<Abstract_robot_element*> Robot::access_fields_
protected

Definition at line 22 of file robot.h.

◆ coll_markers_

std::vector<moveit_msgs::CollisionObject*> Robot::coll_markers_
protected

Definition at line 23 of file robot.h.

◆ observers_

std::vector<Abstract_robot_element*> Robot::observers_
protected

Definition at line 21 of file 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