YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
PartItem Class Reference

#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/src/guis/yarpmotorgui/partitem.h>

+ Inheritance diagram for PartItem:

Public Slots

void updateControlMode ()
 
bool updatePart ()
 
void onViewSpeedValues (bool)
 
void onViewMotorPositions (bool)
 
void onViewDutyCycles (bool)
 
void onViewCurrentValues (bool)
 
void onSetPosSliderOptionPI (int mode, double step, int numOfDec)
 
void onSetVelSliderOptionPI (int mode, double step)
 
void onSetTrqSliderOptionPI (int mode, double step)
 
void onSetCurSliderOptionPI (int mode, double step)
 
void onViewPositionTargetBox (bool)
 
void onViewPositionTargetValue (bool)
 
void onEnableControlVelocity (bool control)
 
void onEnableControlMixed (bool control)
 
void onEnableControlPositionDirect (bool control)
 
void onEnableControlPWM (bool control)
 
void onEnableControlCurrent (bool control)
 
void onEnableControlTorque (bool control)
 

Signals

void sendPartJointsValues (int, QList< double >, QList< double >)
 
void stoppedSequence ()
 
void cycleSequence ()
 
void cycleTimeSequence ()
 
void runTimeSequence ()
 
void runSequence ()
 
void setCurrentIndex (int)
 
void sequenceActivated ()
 
void sequenceStopped ()
 

Public Member Functions

 PartItem (std::string robotName, int partId, std::string partName, ResourceFinder &_finder, bool debug_param_enabled, bool speedview_param_enabled, bool enable_calib_all, QWidget *parent=0)
 
 ~PartItem ()
 
bool openPolyDrivers ()
 
void initInterfaces ()
 
bool openInterfaces ()
 
bool getInterfaceError ()
 
void openSequenceWindow ()
 
void closeSequenceWindow ()
 
bool cycleAllSeq ()
 
bool checkAndRunAllSeq ()
 
bool checkAndRunTimeAllSeq ()
 
bool checkAndCycleAllSeq ()
 
bool checkAndCycleTimeAllSeq ()
 
void runPart ()
 
void idlePart ()
 
bool homeJoint (int joint)
 
bool homePart ()
 
bool homeToCustomPosition (const yarp::os::Bottle &positionElement)
 
void calibratePart ()
 
bool checkAndGo ()
 
void stopSequence ()
 
void setTreeWidgetModeNode (QTreeWidgetItem *node)
 
void loadSequence ()
 
void saveSequence (QString global_filename)
 
QTreeWidgetItem * getTreeWidgetModeNode ()
 
QString getPartName ()
 
const QVector< JointItem::JointState > & getPartModes ()
 
void resizeWidget (int w)
 
int getNumberOfJoints ()
 
QString getJointName (int joint)
 
JointItemgetJointWidget (int jointIndex)
 

Protected Member Functions

void resizeEvent (QResizeEvent *event) override
 
void changeEvent (QEvent *event) override
 

Detailed Description

Definition at line 39 of file partitem.h.

Constructor & Destructor Documentation

◆ PartItem()

PartItem::PartItem ( std::string  robotName,
int  partId,
std::string  partName,
ResourceFinder _finder,
bool  debug_param_enabled,
bool  speedview_param_enabled,
bool  enable_calib_all,
QWidget *  parent = 0 
)
explicit

Definition at line 25 of file partitem.cpp.

◆ ~PartItem()

PartItem::~PartItem ( )

Definition at line 292 of file partitem.cpp.

Member Function Documentation

◆ calibratePart()

void PartItem::calibratePart ( )

Definition at line 1121 of file partitem.cpp.

◆ changeEvent()

void PartItem::changeEvent ( QEvent event)
overrideprotected

Definition at line 1092 of file partitem.cpp.

◆ checkAndCycleAllSeq()

bool PartItem::checkAndCycleAllSeq ( )

Definition at line 1274 of file partitem.cpp.

◆ checkAndCycleTimeAllSeq()

bool PartItem::checkAndCycleTimeAllSeq ( )

Definition at line 1265 of file partitem.cpp.

◆ checkAndGo()

bool PartItem::checkAndGo ( )

Definition at line 1353 of file partitem.cpp.

◆ checkAndRunAllSeq()

bool PartItem::checkAndRunAllSeq ( )

Definition at line 1243 of file partitem.cpp.

◆ checkAndRunTimeAllSeq()

bool PartItem::checkAndRunTimeAllSeq ( )

Definition at line 1254 of file partitem.cpp.

◆ closeSequenceWindow()

void PartItem::closeSequenceWindow ( )

Definition at line 1306 of file partitem.cpp.

◆ cycleAllSeq()

bool PartItem::cycleAllSeq ( )

◆ cycleSequence

void PartItem::cycleSequence ( )
signal

◆ cycleTimeSequence

void PartItem::cycleTimeSequence ( )
signal

◆ getInterfaceError()

bool PartItem::getInterfaceError ( )

Definition at line 481 of file partitem.cpp.

◆ getJointName()

QString PartItem::getJointName ( int  joint)

Definition at line 1066 of file partitem.cpp.

◆ getJointWidget()

JointItem * PartItem::getJointWidget ( int  jointIndex)

Definition at line 1078 of file partitem.cpp.

◆ getNumberOfJoints()

int PartItem::getNumberOfJoints ( )

Definition at line 1061 of file partitem.cpp.

◆ getPartModes()

const QVector< JointItem::JointState > & PartItem::getPartModes ( )

Definition at line 2106 of file partitem.cpp.

◆ getPartName()

QString PartItem::getPartName ( )

Definition at line 486 of file partitem.cpp.

◆ getTreeWidgetModeNode()

QTreeWidgetItem * PartItem::getTreeWidgetModeNode ( )

◆ homeJoint()

bool PartItem::homeJoint ( int  joint)

Definition at line 1142 of file partitem.cpp.

◆ homePart()

bool PartItem::homePart ( )

Definition at line 1169 of file partitem.cpp.

◆ homeToCustomPosition()

bool PartItem::homeToCustomPosition ( const yarp::os::Bottle positionElement)

Definition at line 1196 of file partitem.cpp.

◆ idlePart()

void PartItem::idlePart ( )

Definition at line 1233 of file partitem.cpp.

◆ initInterfaces()

void PartItem::initInterfaces ( )

Definition at line 353 of file partitem.cpp.

◆ loadSequence()

void PartItem::loadSequence ( )

Definition at line 1294 of file partitem.cpp.

◆ onEnableControlCurrent

void PartItem::onEnableControlCurrent ( bool  control)
slot

Definition at line 1930 of file partitem.cpp.

◆ onEnableControlMixed

void PartItem::onEnableControlMixed ( bool  control)
slot

Definition at line 1903 of file partitem.cpp.

◆ onEnableControlPositionDirect

void PartItem::onEnableControlPositionDirect ( bool  control)
slot

Definition at line 1912 of file partitem.cpp.

◆ onEnableControlPWM

void PartItem::onEnableControlPWM ( bool  control)
slot

Definition at line 1921 of file partitem.cpp.

◆ onEnableControlTorque

void PartItem::onEnableControlTorque ( bool  control)
slot

Definition at line 1939 of file partitem.cpp.

◆ onEnableControlVelocity

void PartItem::onEnableControlVelocity ( bool  control)
slot

Definition at line 1894 of file partitem.cpp.

◆ onSetCurSliderOptionPI

void PartItem::onSetCurSliderOptionPI ( int  mode,
double  step 
)
slot

Definition at line 2058 of file partitem.cpp.

◆ onSetPosSliderOptionPI

void PartItem::onSetPosSliderOptionPI ( int  mode,
double  step,
int  numOfDec 
)
slot

Definition at line 2006 of file partitem.cpp.

◆ onSetTrqSliderOptionPI

void PartItem::onSetTrqSliderOptionPI ( int  mode,
double  step 
)
slot

Definition at line 2082 of file partitem.cpp.

◆ onSetVelSliderOptionPI

void PartItem::onSetVelSliderOptionPI ( int  mode,
double  step 
)
slot

Definition at line 2030 of file partitem.cpp.

◆ onViewCurrentValues

void PartItem::onViewCurrentValues ( bool  view)
slot

Definition at line 1978 of file partitem.cpp.

◆ onViewDutyCycles

void PartItem::onViewDutyCycles ( bool  view)
slot

Definition at line 1968 of file partitem.cpp.

◆ onViewMotorPositions

void PartItem::onViewMotorPositions ( bool  view)
slot

Definition at line 1958 of file partitem.cpp.

◆ onViewPositionTargetBox

void PartItem::onViewPositionTargetBox ( bool  ena)
slot

Definition at line 1988 of file partitem.cpp.

◆ onViewPositionTargetValue

void PartItem::onViewPositionTargetValue ( bool  ena)
slot

Definition at line 1997 of file partitem.cpp.

◆ onViewSpeedValues

void PartItem::onViewSpeedValues ( bool  view)
slot

Definition at line 1948 of file partitem.cpp.

◆ openInterfaces()

bool PartItem::openInterfaces ( )

Definition at line 376 of file partitem.cpp.

◆ openPolyDrivers()

bool PartItem::openPolyDrivers ( )

Definition at line 332 of file partitem.cpp.

◆ openSequenceWindow()

void PartItem::openSequenceWindow ( )

Definition at line 1314 of file partitem.cpp.

◆ resizeEvent()

void PartItem::resizeEvent ( QResizeEvent event)
overrideprotected

Definition at line 1083 of file partitem.cpp.

◆ resizeWidget()

void PartItem::resizeWidget ( int  w)

Definition at line 1034 of file partitem.cpp.

◆ runPart()

void PartItem::runPart ( )

Definition at line 1283 of file partitem.cpp.

◆ runSequence

void PartItem::runSequence ( )
signal

◆ runTimeSequence

void PartItem::runTimeSequence ( )
signal

◆ saveSequence()

void PartItem::saveSequence ( QString  global_filename)

Definition at line 1300 of file partitem.cpp.

◆ sendPartJointsValues

void PartItem::sendPartJointsValues ( int  ,
QList< double ,
QList< double  
)
signal

◆ sequenceActivated

void PartItem::sequenceActivated ( )
signal

◆ sequenceStopped

void PartItem::sequenceStopped ( )
signal

◆ setCurrentIndex

void PartItem::setCurrentIndex ( int  )
signal

◆ setTreeWidgetModeNode()

void PartItem::setTreeWidgetModeNode ( QTreeWidgetItem *  node)

◆ stoppedSequence

void PartItem::stoppedSequence ( )
signal

◆ stopSequence()

void PartItem::stopSequence ( )

Definition at line 1361 of file partitem.cpp.

◆ updateControlMode

void PartItem::updateControlMode ( )
slot

Definition at line 2111 of file partitem.cpp.

◆ updatePart

bool PartItem::updatePart ( )
slot

Definition at line 2171 of file partitem.cpp.


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