panel.cpp
Go to the documentation of this file.
2 
3 Panel::Panel(std::string name, tf2::Transform tf, tf2::Vector3 size)
4 : AbstractRobotElement(tf, name, size)
5 {
6  bounds_.push_back(tf2::Transform(tf2::Quaternion(0,0,0,1), tf2::Vector3(size_.getX()/2.f, size_.getY()/2.f,0))); //++
7  bounds_.push_back(tf2::Transform(tf2::Quaternion(0,0,0,1), tf2::Vector3(size_.getX()/2.f, size_.getY()/-2.f,0))); //+-
8  bounds_.push_back(tf2::Transform(tf2::Quaternion(0,0,0,1), tf2::Vector3(size_.getX()/-2.f, size_.getY()/-2.f,0))); //--
9  bounds_.push_back(tf2::Transform(tf2::Quaternion(0,0,0,1), tf2::Vector3(size_.getX()/-2.f, size_.getY()/2.f,0))); //-+
10 }
AbstractRobotElement
Definition: abstract_robot_element.h:7
Panel::Panel
Panel(std::string name, tf2::Transform tf, tf2::Vector3 size)
Definition: panel.cpp:3
AbstractRobotElement::bounds_
std::vector< tf2::Transform > bounds_
Definition: abstract_robot_element.h:14
panel.h
AbstractRobotElement::size_
tf2::Vector3 size_
Definition: abstract_robot_element.h:12


multi_cell_builder
Author(s): Matteo Anedda
autogenerated on Sun Apr 9 2023 23:59:51