hpp-gui  4.15.1
Graphical interface for HPP
hpp.gui::HppWidgetsPlugin Class Reference

Plugin that add a lot of features to work with hpp. More...

#include </local/robotpkg/var/tmp/robotpkg/graphics/py-qt-hpp-gui/work/hpp-gui-4.15.1/plugins/hppwidgetsplugin/hppwidgetsplugin.hh>

Inheritance diagram for hpp.gui::HppWidgetsPlugin:
Collaboration diagram for hpp.gui::HppWidgetsPlugin:

Public Slots

void applyCurrentConfiguration ()
 Apply the current configuration of the robot. More...
 
void setCurrentConfig (const hpp::floatSeq &q)
 
hpp::floatSeq const * getCurrentConfig () const
 
void setCurrentQtConfig (const QVector< double > &q)
 
QVector< double > getCurrentQtConfig () const
 
void fetchConfiguration ()
 Set internal configuration from HPP current config. More...
 
void sendConfiguration ()
 Set HPP configuration to internal current configuration. More...
 
void configurationValidation ()
 Build a list of bodies in collision. More...
 
void selectJointFromBodyName (const QString bodyName)
 
void update ()
 
QString requestCreateJointGroup (const QString jn)
 See createJointGroup. More...
 
QString requestCreateComGroup (const QString com)
 See createComGroup. More...
 
QString getHppIIOPurl () const
 
QString getHppContext () const
 

Signals

void configurationValidationStatus (bool valid)
 
void configurationValidationStatus (QStringList collision)
 
void logJobFailed (int id, const QString &text) const
 Log the failure of a job in the MainWindow. More...
 
void logSuccess (const QString &text)
 
void logFailure (const QString &text)
 

Public Member Functions

void init ()
 Initialize the plugin. More...
 
QString name () const
 Returns the plugin's name. More...
 
void loadRobotModel (gepetto::gui::DialogLoadRobot::RobotDefinition rd)
 
void loadEnvironmentModel (gepetto::gui::DialogLoadEnvironment::EnvironmentDefinition ed)
 
std::string getBodyFromJoint (const std::string &jointName) const
 
const hpp::floatSeq & currentConfig () const
 
hpp::floatSeq & currentConfig ()
 
const hpp::floatSeq & currentVelocity () const
 
hpp::floatSeq & currentVelocity ()
 
virtual void openConnection ()
 Open a connection to a corba server. More...
 
virtual void closeConnection ()
 Close connection to corbaserver. More...
 
HppClient * client () const
 Get the corbaserver client. More...
 
JointMap & jointMap ()
 Get the jointMap. More...
 
PathPlayerpathPlayer () const
 Get the pathPlayer widget. More...
 
JointTreeWidgetjointTreeWidget () const
 Get the pathPlayer widget. More...
 
virtual void updateRobotJoints (const QString robotName)
 
std::string getSelectedJoint () const
 Get the currently selected joint name. More...
 
virtual RoadmapcreateRoadmap (const std::string &jointName)
 

Protected Slots

virtual void displayRoadmap (const std::string &jointName)
 
void addJointFrame (const std::string &jointName)
 

Protected Member Functions

std::string createJointGroup (const std::string jn)
 
std::string createComGroup (const std::string com)
 
void computeObjectPosition ()
 Replace all the bodies according to their position in hpp. More...
 
virtual void loadConstraintWidget ()
 

Static Protected Member Functions

static std::string escapeJointName (const std::string jn)
 

Protected Attributes

QList< QDockWidget * > dockWidgets_
 
JointTreeWidgetjointTreeWidget_
 
ConstraintWidgetconstraintWidget_
 
JointMap jointMap_
 
hpp::Names_t jointFrames_
 
std::list< std::string > comFrames_
 
hpp::floatSeq config_
 
hpp::floatSeq velocity_
 
hpp::Names_t linkNames_
 
std::vector< std::string > bodyNames_
 
std::vector< gepetto::viewer::Configuration > bodyConfs_
 
std::vector< std::string > jointGroupNames_
 

Detailed Description

Plugin that add a lot of features to work with hpp.

Member Function Documentation

◆ addJointFrame

void hpp.gui::HppWidgetsPlugin::addJointFrame ( const std::string &  jointName)
protectedslot

Add XYZ axis at the joint's position

Parameters
jointNamename of the joint

◆ applyCurrentConfiguration

void hpp.gui::HppWidgetsPlugin::applyCurrentConfiguration ( )
slot

Apply the current configuration of the robot.

◆ client()

HppClient* hpp.gui::HppWidgetsPlugin::client ( ) const

Get the corbaserver client.

◆ closeConnection()

virtual void hpp.gui::HppWidgetsPlugin::closeConnection ( )
virtual

Close connection to corbaserver.

Reimplemented in hpp.gui::HppManipulationWidgetsPlugin.

◆ computeObjectPosition()

void hpp.gui::HppWidgetsPlugin::computeObjectPosition ( )
protected

Replace all the bodies according to their position in hpp.

◆ configurationValidation

void hpp.gui::HppWidgetsPlugin::configurationValidation ( )
slot

Build a list of bodies in collision.

◆ configurationValidationStatus [1/2]

void hpp.gui::HppWidgetsPlugin::configurationValidationStatus ( bool  valid)
signal

◆ configurationValidationStatus [2/2]

void hpp.gui::HppWidgetsPlugin::configurationValidationStatus ( QStringList  collision)
signal

◆ createComGroup()

std::string hpp.gui::HppWidgetsPlugin::createComGroup ( const std::string  com)
protected

Create a group from the given COM.

Parameters
comCOM name

◆ createJointGroup()

std::string hpp.gui::HppWidgetsPlugin::createJointGroup ( const std::string  jn)
protected

Create a group from the given joint.

Parameters
jnjoint name

◆ createRoadmap()

virtual Roadmap* hpp.gui::HppWidgetsPlugin::createRoadmap ( const std::string &  jointName)
virtual

Create the roadmap of a given joint.

Parameters
jointNamename of the joint

Reimplemented in hpp.gui::HppManipulationWidgetsPlugin.

◆ currentConfig() [1/2]

const hpp::floatSeq& hpp.gui::HppWidgetsPlugin::currentConfig ( ) const
inline

◆ currentConfig() [2/2]

hpp::floatSeq& hpp.gui::HppWidgetsPlugin::currentConfig ( )
inline

◆ currentVelocity() [1/2]

const hpp::floatSeq& hpp.gui::HppWidgetsPlugin::currentVelocity ( ) const
inline

◆ currentVelocity() [2/2]

hpp::floatSeq& hpp.gui::HppWidgetsPlugin::currentVelocity ( )
inline

◆ displayRoadmap

virtual void hpp.gui::HppWidgetsPlugin::displayRoadmap ( const std::string &  jointName)
protectedvirtualslot

Display the roadMap of a given joint.

Parameters
jointNamename of the joint

◆ escapeJointName()

static std::string hpp.gui::HppWidgetsPlugin::escapeJointName ( const std::string  jn)
staticprotected

Change all "/" in jn to "__"

Parameters
jnstring to escape

◆ fetchConfiguration

void hpp.gui::HppWidgetsPlugin::fetchConfiguration ( )
slot

Set internal configuration from HPP current config.

◆ getBodyFromJoint()

std::string hpp.gui::HppWidgetsPlugin::getBodyFromJoint ( const std::string &  jointName) const

Get the name of a joint's body.

Parameters
jointNamejoint name
Todo:
this should be changed because there can be several body per joints now.

◆ getCurrentConfig

hpp::floatSeq const* hpp.gui::HppWidgetsPlugin::getCurrentConfig ( ) const
slot

◆ getCurrentQtConfig

QVector<double> hpp.gui::HppWidgetsPlugin::getCurrentQtConfig ( ) const
slot

◆ getHppContext

QString hpp.gui::HppWidgetsPlugin::getHppContext ( ) const
slot

◆ getHppIIOPurl

QString hpp.gui::HppWidgetsPlugin::getHppIIOPurl ( ) const
slot

◆ getSelectedJoint()

std::string hpp.gui::HppWidgetsPlugin::getSelectedJoint ( ) const

Get the currently selected joint name.

◆ init()

void hpp.gui::HppWidgetsPlugin::init ( )

Initialize the plugin.

◆ jointMap()

JointMap& hpp.gui::HppWidgetsPlugin::jointMap ( )

Get the jointMap.

◆ jointTreeWidget()

JointTreeWidget* hpp.gui::HppWidgetsPlugin::jointTreeWidget ( ) const

Get the pathPlayer widget.

◆ loadConstraintWidget()

virtual void hpp.gui::HppWidgetsPlugin::loadConstraintWidget ( )
protectedvirtual

◆ loadEnvironmentModel()

void hpp.gui::HppWidgetsPlugin::loadEnvironmentModel ( gepetto::gui::DialogLoadEnvironment::EnvironmentDefinition  ed)

Load an environment in the corba server.

Parameters
edenvironment definition

◆ loadRobotModel()

void hpp.gui::HppWidgetsPlugin::loadRobotModel ( gepetto::gui::DialogLoadRobot::RobotDefinition  rd)

Load a robot in the corba server.

Parameters
rdrobot definition

◆ logFailure

void hpp.gui::HppWidgetsPlugin::logFailure ( const QString &  text)
signal

◆ logJobFailed

void hpp.gui::HppWidgetsPlugin::logJobFailed ( int  id,
const QString &  text 
) const
signal

Log the failure of a job in the MainWindow.

◆ logSuccess

void hpp.gui::HppWidgetsPlugin::logSuccess ( const QString &  text)
signal

◆ name()

QString hpp.gui::HppWidgetsPlugin::name ( ) const

Returns the plugin's name.

◆ openConnection()

virtual void hpp.gui::HppWidgetsPlugin::openConnection ( )
virtual

Open a connection to a corba server.

Reimplemented in hpp.gui::HppManipulationWidgetsPlugin.

◆ pathPlayer()

PathPlayer* hpp.gui::HppWidgetsPlugin::pathPlayer ( ) const

Get the pathPlayer widget.

◆ requestCreateComGroup

QString hpp.gui::HppWidgetsPlugin::requestCreateComGroup ( const QString  com)
slot

See createComGroup.

◆ requestCreateJointGroup

QString hpp.gui::HppWidgetsPlugin::requestCreateJointGroup ( const QString  jn)
slot

See createJointGroup.

◆ selectJointFromBodyName

void hpp.gui::HppWidgetsPlugin::selectJointFromBodyName ( const QString  bodyName)
slot

Select a joint in the joint tree from a body's name.

Parameters
bodyNamename of the body

◆ sendConfiguration

void hpp.gui::HppWidgetsPlugin::sendConfiguration ( )
slot

Set HPP configuration to internal current configuration.

◆ setCurrentConfig

void hpp.gui::HppWidgetsPlugin::setCurrentConfig ( const hpp::floatSeq &  q)
slot

◆ setCurrentQtConfig

void hpp.gui::HppWidgetsPlugin::setCurrentQtConfig ( const QVector< double > &  q)
slot

◆ update

void hpp.gui::HppWidgetsPlugin::update ( )
slot

◆ updateRobotJoints()

virtual void hpp.gui::HppWidgetsPlugin::updateRobotJoints ( const QString  robotName)
virtual

Get the list of joints from corbaserver and update internal joint map.

Parameters
robotNamename of the robot

Member Data Documentation

◆ bodyConfs_

std::vector<gepetto::viewer::Configuration> hpp.gui::HppWidgetsPlugin::bodyConfs_
protected

◆ bodyNames_

std::vector<std::string> hpp.gui::HppWidgetsPlugin::bodyNames_
protected

◆ comFrames_

std::list<std::string> hpp.gui::HppWidgetsPlugin::comFrames_
protected

◆ config_

hpp::floatSeq hpp.gui::HppWidgetsPlugin::config_
protected

◆ constraintWidget_

ConstraintWidget* hpp.gui::HppWidgetsPlugin::constraintWidget_
protected

◆ dockWidgets_

QList<QDockWidget*> hpp.gui::HppWidgetsPlugin::dockWidgets_
protected

◆ jointFrames_

hpp::Names_t hpp.gui::HppWidgetsPlugin::jointFrames_
protected

◆ jointGroupNames_

std::vector<std::string> hpp.gui::HppWidgetsPlugin::jointGroupNames_
protected

◆ jointMap_

JointMap hpp.gui::HppWidgetsPlugin::jointMap_
protected

◆ jointTreeWidget_

JointTreeWidget* hpp.gui::HppWidgetsPlugin::jointTreeWidget_
protected

◆ linkNames_

hpp::Names_t hpp.gui::HppWidgetsPlugin::linkNames_
protected

◆ velocity_

hpp::floatSeq hpp.gui::HppWidgetsPlugin::velocity_
protected

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