se2ez
se2ez::gui::JointPanel Class Reference

#include <jointpanel.h>

Inheritance diagram for se2ez::gui::JointPanel:
[legend]

Public Slots

void updateState ()
 
void reset ()
 
void random ()
 
void randomCollisionFree ()
 
void updateIK ()
 

Signals

void stateChanged ()
 

Public Member Functions

 JointPanel (RobotPtr robot, std::string name, QWidget *parent=0)
 
 ~JointPanel ()
 
void draw (QPainter &painter, RenderArea *canvas) override
 
bool click (QMouseEvent *event, double x, double y, int sx, int sy) override
 
void update (boost::posix_time::ptime last, boost::posix_time::ptime current) override
 
void setState (const StatePtr &state)
 
void getState (StatePtr state)
 
const RobotPtrgetRobot ()
 
const StatePtrgetState ()
 
const std::stringgetEE ()
 
std::string getSignature ()
 
- Public Member Functions inherited from se2ez::gui::Panel
 Panel (const Panel &)=delete
 
Paneloperator= (const Panel &)=delete
 
 Panel (std::string panel_name, QWidget *parent=0)
 Constructor. More...
 
virtual ~Panel ()=default
 Destructor. More...
 
virtual void initialize (MainWindow::PanelMapPtr p)
 

Private Attributes

Ui::JointPanel * ui_
 
RobotPtr robot_ {nullptr}
 
StatePtr jstate_ {nullptr}
 
std::string ee_
 
TreeIKPtr ik_ {nullptr}
 
CollisionManagerPtr cm_ {nullptr}
 
std::set< std::stringcolliding_
 
CollisionManager::SignedDistance minimum_
 
CollisionManager::SignedDistanceMap distances_
 
std::vector< JointWidget * > joints_
 

Friends

class JointWidget
 

Additional Inherited Members

- Public Attributes inherited from se2ez::gui::Panel
QString name
 
MainWindow::PanelMapPtr panels
 
std::recursive_mutex mutex_
 

Detailed Description

Definition at line 41 of file jointpanel.h.

Constructor & Destructor Documentation

◆ JointPanel()

gui::JointPanel::JointPanel ( RobotPtr  robot,
std::string  name,
QWidget *  parent = 0 
)

Definition at line 19 of file jointpanel.cpp.

◆ ~JointPanel()

gui::JointPanel::~JointPanel ( )

Definition at line 218 of file jointpanel.cpp.

Member Function Documentation

◆ click()

bool gui::JointPanel::click ( QMouseEvent *  event,
double  x,
double  y,
int  sx,
int  sy 
)
overridevirtual

Reimplemented from se2ez::gui::Panel.

Definition at line 202 of file jointpanel.cpp.

◆ draw()

void gui::JointPanel::draw ( QPainter &  painter,
gui::RenderArea canvas 
)
overridevirtual

Implements se2ez::gui::Panel.

Definition at line 164 of file jointpanel.cpp.

◆ getEE()

const std::string & gui::JointPanel::getEE ( )

Definition at line 118 of file jointpanel.cpp.

◆ getRobot()

const RobotPtr & gui::JointPanel::getRobot ( )

Definition at line 108 of file jointpanel.cpp.

◆ getSignature()

std::string gui::JointPanel::getSignature ( )

Definition at line 123 of file jointpanel.cpp.

◆ getState() [1/2]

void gui::JointPanel::getState ( StatePtr  state)

Definition at line 101 of file jointpanel.cpp.

◆ getState() [2/2]

const StatePtr & gui::JointPanel::getState ( )

Definition at line 113 of file jointpanel.cpp.

◆ random

void gui::JointPanel::random ( )
slot

Definition at line 136 of file jointpanel.cpp.

◆ randomCollisionFree

void gui::JointPanel::randomCollisionFree ( )
slot

Definition at line 146 of file jointpanel.cpp.

◆ reset

void gui::JointPanel::reset ( )
slot

Definition at line 128 of file jointpanel.cpp.

◆ setState()

void gui::JointPanel::setState ( const StatePtr state)

Definition at line 92 of file jointpanel.cpp.

◆ stateChanged

void se2ez::gui::JointPanel::stateChanged ( )
signal

◆ update()

void gui::JointPanel::update ( boost::posix_time::ptime  last,
boost::posix_time::ptime  current 
)
overridevirtual

Implements se2ez::gui::Panel.

Definition at line 214 of file jointpanel.cpp.

◆ updateIK

void gui::JointPanel::updateIK ( )
slot

Definition at line 65 of file jointpanel.cpp.

◆ updateState

void gui::JointPanel::updateState ( )
slot

Definition at line 76 of file jointpanel.cpp.

Friends And Related Function Documentation

◆ JointWidget

friend class JointWidget
friend

Definition at line 45 of file jointpanel.h.

Member Data Documentation

◆ cm_

CollisionManagerPtr se2ez::gui::JointPanel::cm_ {nullptr}
private

Definition at line 81 of file jointpanel.h.

◆ colliding_

std::set<std::string> se2ez::gui::JointPanel::colliding_
private

Definition at line 82 of file jointpanel.h.

◆ distances_

CollisionManager::SignedDistanceMap se2ez::gui::JointPanel::distances_
private

Definition at line 84 of file jointpanel.h.

◆ ee_

std::string se2ez::gui::JointPanel::ee_
private

Definition at line 79 of file jointpanel.h.

◆ ik_

TreeIKPtr se2ez::gui::JointPanel::ik_ {nullptr}
private

Definition at line 80 of file jointpanel.h.

◆ joints_

std::vector<JointWidget *> se2ez::gui::JointPanel::joints_
private

Definition at line 86 of file jointpanel.h.

◆ jstate_

StatePtr se2ez::gui::JointPanel::jstate_ {nullptr}
private

Definition at line 77 of file jointpanel.h.

◆ minimum_

CollisionManager::SignedDistance se2ez::gui::JointPanel::minimum_
private

Definition at line 83 of file jointpanel.h.

◆ robot_

RobotPtr se2ez::gui::JointPanel::robot_ {nullptr}
private

Definition at line 76 of file jointpanel.h.

◆ ui_

Ui::JointPanel* se2ez::gui::JointPanel::ui_
private

Definition at line 74 of file jointpanel.h.


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