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)
 

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 1108 of file partitem.cpp.

◆ changeEvent()

void PartItem::changeEvent ( QEvent event)
overrideprotected

Definition at line 1079 of file partitem.cpp.

◆ checkAndCycleAllSeq()

bool PartItem::checkAndCycleAllSeq ( )

Definition at line 1261 of file partitem.cpp.

◆ checkAndCycleTimeAllSeq()

bool PartItem::checkAndCycleTimeAllSeq ( )

Definition at line 1252 of file partitem.cpp.

◆ checkAndGo()

bool PartItem::checkAndGo ( )

Definition at line 1340 of file partitem.cpp.

◆ checkAndRunAllSeq()

bool PartItem::checkAndRunAllSeq ( )

Definition at line 1230 of file partitem.cpp.

◆ checkAndRunTimeAllSeq()

bool PartItem::checkAndRunTimeAllSeq ( )

Definition at line 1241 of file partitem.cpp.

◆ closeSequenceWindow()

void PartItem::closeSequenceWindow ( )

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

◆ getJointWidget()

JointItem * PartItem::getJointWidget ( int  jointIndex)

Definition at line 1065 of file partitem.cpp.

◆ getNumberOfJoints()

int PartItem::getNumberOfJoints ( )

Definition at line 1048 of file partitem.cpp.

◆ getPartModes()

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

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

◆ homePart()

bool PartItem::homePart ( )

Definition at line 1156 of file partitem.cpp.

◆ homeToCustomPosition()

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

Definition at line 1183 of file partitem.cpp.

◆ idlePart()

void PartItem::idlePart ( )

Definition at line 1220 of file partitem.cpp.

◆ initInterfaces()

void PartItem::initInterfaces ( )

Definition at line 353 of file partitem.cpp.

◆ loadSequence()

void PartItem::loadSequence ( )

Definition at line 1281 of file partitem.cpp.

◆ onEnableControlCurrent

void PartItem::onEnableControlCurrent ( bool  control)
slot

Definition at line 1917 of file partitem.cpp.

◆ onEnableControlMixed

void PartItem::onEnableControlMixed ( bool  control)
slot

Definition at line 1890 of file partitem.cpp.

◆ onEnableControlPositionDirect

void PartItem::onEnableControlPositionDirect ( bool  control)
slot

Definition at line 1899 of file partitem.cpp.

◆ onEnableControlPWM

void PartItem::onEnableControlPWM ( bool  control)
slot

Definition at line 1908 of file partitem.cpp.

◆ onEnableControlVelocity

void PartItem::onEnableControlVelocity ( bool  control)
slot

Definition at line 1881 of file partitem.cpp.

◆ onSetCurSliderOptionPI

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

Definition at line 2036 of file partitem.cpp.

◆ onSetPosSliderOptionPI

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

Definition at line 1984 of file partitem.cpp.

◆ onSetTrqSliderOptionPI

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

Definition at line 2060 of file partitem.cpp.

◆ onSetVelSliderOptionPI

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

Definition at line 2008 of file partitem.cpp.

◆ onViewCurrentValues

void PartItem::onViewCurrentValues ( bool  view)
slot

Definition at line 1956 of file partitem.cpp.

◆ onViewDutyCycles

void PartItem::onViewDutyCycles ( bool  view)
slot

Definition at line 1946 of file partitem.cpp.

◆ onViewMotorPositions

void PartItem::onViewMotorPositions ( bool  view)
slot

Definition at line 1936 of file partitem.cpp.

◆ onViewPositionTargetBox

void PartItem::onViewPositionTargetBox ( bool  ena)
slot

Definition at line 1966 of file partitem.cpp.

◆ onViewPositionTargetValue

void PartItem::onViewPositionTargetValue ( bool  ena)
slot

Definition at line 1975 of file partitem.cpp.

◆ onViewSpeedValues

void PartItem::onViewSpeedValues ( bool  view)
slot

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

◆ resizeEvent()

void PartItem::resizeEvent ( QResizeEvent event)
overrideprotected

Definition at line 1070 of file partitem.cpp.

◆ resizeWidget()

void PartItem::resizeWidget ( int  w)

Definition at line 1021 of file partitem.cpp.

◆ runPart()

void PartItem::runPart ( )

Definition at line 1270 of file partitem.cpp.

◆ runSequence

void PartItem::runSequence ( )
signal

◆ runTimeSequence

void PartItem::runTimeSequence ( )
signal

◆ saveSequence()

void PartItem::saveSequence ( QString  global_filename)

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

◆ updateControlMode

void PartItem::updateControlMode ( )
slot

Definition at line 2089 of file partitem.cpp.

◆ updatePart

bool PartItem::updatePart ( )
slot

Definition at line 2149 of file partitem.cpp.


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