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, int numOfDec)
 
void onSetAccSliderOptionPI (int mode, double step, int numOfDec)
 
void onSetTrqSliderOptionPI (int mode, double step, int numOfDec)
 
void onSetCurSliderOptionPI (int mode, double step, int numOfDec)
 
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)
 
void onEnableControlVelocityDirect (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, std::string rcb_protocol, 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 ()
 
std::string 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,
std::string  rcb_protocol,
QWidget *  parent = 0 
)
explicit

Definition at line 25 of file partitem.cpp.

◆ ~PartItem()

PartItem::~PartItem ( )

Definition at line 318 of file partitem.cpp.

Member Function Documentation

◆ calibratePart()

void PartItem::calibratePart ( )

Definition at line 1160 of file partitem.cpp.

◆ changeEvent()

void PartItem::changeEvent ( QEvent event)
overrideprotected

Definition at line 1131 of file partitem.cpp.

◆ checkAndCycleAllSeq()

bool PartItem::checkAndCycleAllSeq ( )

Definition at line 1313 of file partitem.cpp.

◆ checkAndCycleTimeAllSeq()

bool PartItem::checkAndCycleTimeAllSeq ( )

Definition at line 1304 of file partitem.cpp.

◆ checkAndGo()

bool PartItem::checkAndGo ( )

Definition at line 1392 of file partitem.cpp.

◆ checkAndRunAllSeq()

bool PartItem::checkAndRunAllSeq ( )

Definition at line 1282 of file partitem.cpp.

◆ checkAndRunTimeAllSeq()

bool PartItem::checkAndRunTimeAllSeq ( )

Definition at line 1293 of file partitem.cpp.

◆ closeSequenceWindow()

void PartItem::closeSequenceWindow ( )

Definition at line 1345 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 511 of file partitem.cpp.

◆ getJointName()

QString PartItem::getJointName ( int  joint)

Definition at line 1105 of file partitem.cpp.

◆ getJointWidget()

JointItem * PartItem::getJointWidget ( int  jointIndex)

Definition at line 1117 of file partitem.cpp.

◆ getNumberOfJoints()

int PartItem::getNumberOfJoints ( )

Definition at line 1100 of file partitem.cpp.

◆ getPartModes()

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

Definition at line 2176 of file partitem.cpp.

◆ getPartName()

std::string PartItem::getPartName ( )

Definition at line 516 of file partitem.cpp.

◆ getTreeWidgetModeNode()

QTreeWidgetItem * PartItem::getTreeWidgetModeNode ( )

◆ homeJoint()

bool PartItem::homeJoint ( int  joint)

Definition at line 1181 of file partitem.cpp.

◆ homePart()

bool PartItem::homePart ( )

Definition at line 1208 of file partitem.cpp.

◆ homeToCustomPosition()

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

Definition at line 1235 of file partitem.cpp.

◆ idlePart()

void PartItem::idlePart ( )

Definition at line 1272 of file partitem.cpp.

◆ initInterfaces()

void PartItem::initInterfaces ( )

Definition at line 379 of file partitem.cpp.

◆ loadSequence()

void PartItem::loadSequence ( )

Definition at line 1333 of file partitem.cpp.

◆ onEnableControlCurrent

void PartItem::onEnableControlCurrent ( bool  control)
slot

Definition at line 1969 of file partitem.cpp.

◆ onEnableControlMixed

void PartItem::onEnableControlMixed ( bool  control)
slot

Definition at line 1942 of file partitem.cpp.

◆ onEnableControlPositionDirect

void PartItem::onEnableControlPositionDirect ( bool  control)
slot

Definition at line 1951 of file partitem.cpp.

◆ onEnableControlPWM

void PartItem::onEnableControlPWM ( bool  control)
slot

Definition at line 1960 of file partitem.cpp.

◆ onEnableControlTorque

void PartItem::onEnableControlTorque ( bool  control)
slot

Definition at line 1978 of file partitem.cpp.

◆ onEnableControlVelocity

void PartItem::onEnableControlVelocity ( bool  control)
slot

Definition at line 1933 of file partitem.cpp.

◆ onEnableControlVelocityDirect

void PartItem::onEnableControlVelocityDirect ( bool  control)
slot

Definition at line 1987 of file partitem.cpp.

◆ onSetAccSliderOptionPI

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

Definition at line 2102 of file partitem.cpp.

◆ onSetCurSliderOptionPI

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

Definition at line 2126 of file partitem.cpp.

◆ onSetPosSliderOptionPI

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

Definition at line 2054 of file partitem.cpp.

◆ onSetTrqSliderOptionPI

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

Definition at line 2151 of file partitem.cpp.

◆ onSetVelSliderOptionPI

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

Definition at line 2078 of file partitem.cpp.

◆ onViewCurrentValues

void PartItem::onViewCurrentValues ( bool  view)
slot

Definition at line 2026 of file partitem.cpp.

◆ onViewDutyCycles

void PartItem::onViewDutyCycles ( bool  view)
slot

Definition at line 2016 of file partitem.cpp.

◆ onViewMotorPositions

void PartItem::onViewMotorPositions ( bool  view)
slot

Definition at line 2006 of file partitem.cpp.

◆ onViewPositionTargetBox

void PartItem::onViewPositionTargetBox ( bool  ena)
slot

Definition at line 2036 of file partitem.cpp.

◆ onViewPositionTargetValue

void PartItem::onViewPositionTargetValue ( bool  ena)
slot

Definition at line 2045 of file partitem.cpp.

◆ onViewSpeedValues

void PartItem::onViewSpeedValues ( bool  view)
slot

Definition at line 1996 of file partitem.cpp.

◆ openInterfaces()

bool PartItem::openInterfaces ( )

Definition at line 403 of file partitem.cpp.

◆ openPolyDrivers()

bool PartItem::openPolyDrivers ( )

Definition at line 358 of file partitem.cpp.

◆ openSequenceWindow()

void PartItem::openSequenceWindow ( )

Definition at line 1353 of file partitem.cpp.

◆ resizeEvent()

void PartItem::resizeEvent ( QResizeEvent event)
overrideprotected

Definition at line 1122 of file partitem.cpp.

◆ resizeWidget()

void PartItem::resizeWidget ( int  w)

Definition at line 1073 of file partitem.cpp.

◆ runPart()

void PartItem::runPart ( )

Definition at line 1322 of file partitem.cpp.

◆ runSequence

void PartItem::runSequence ( )
signal

◆ runTimeSequence

void PartItem::runTimeSequence ( )
signal

◆ saveSequence()

void PartItem::saveSequence ( QString  global_filename)

Definition at line 1339 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 1400 of file partitem.cpp.

◆ updateControlMode

void PartItem::updateControlMode ( )
slot

Definition at line 2181 of file partitem.cpp.

◆ updatePart

bool PartItem::updatePart ( )
slot

Definition at line 2244 of file partitem.cpp.


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