|
The CoinRobotViewerAdapter class. More...
#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Visualization/CoinRobotViewerAdapter.h>
Public Member Functions | |
void | addRobotVisualization (VirtualRobot::RobotPtr robot, QString selectedChain) override |
METHODS FOR VISUALIZATION SETUP. More... | |
void | addSceneVisualization (VirtualRobot::ScenePtr scene) override |
addSceneVisualization visualizes the whole scene where the robot is placed in More... | |
void | addTransitionVisualization (int index, std::vector< PoseBasePtr > transition) override |
METHODS FOR TRANSITIONS. More... | |
void | addWaypointVisualization (int index, PoseBasePtr waypoint, VirtualRobot::EndEffectorPtr tcp) override |
METHODS FOR WAYPOINTS. More... | |
void | clearTrajectory () override |
clearTrajectory removes all visualization of waypoints and transitions but keeps the robot and the maipulator visualized More... | |
CoinRobotViewerAdapter (QWidget *widget) | |
CoinRobotViewerAdapter. More... | |
void | disableVisualization () override |
disableVisualization hides the viewer More... | |
void | enableVisualization () override |
enableVisualization shows the viewer More... | |
Eigen::Matrix4f | getManipulatorPose () override |
INHERITED BY OBSERVER. More... | |
int | getSelectedWaypoint () override |
getSelectedWaypoint More... | |
void | highlightTransitionVisualization (int index, std::vector< PoseBasePtr > transition) override |
highlightTransitionVisualization highlights the transition with index i by changing the color of all points belonging to that transition More... | |
void | removeAllWaypointVisualizations () override |
removeAllWaypointVisualizations removes all waypoints that are currently visualized More... | |
void | removeTransitionVisualization (int index) override |
removeTransitionVisualization removes visualization of a certain transition More... | |
void | removeWaypointVisualization (int index) override |
removeWaypointVisualization removes the Waypoint with index so that it is no longer visualized More... | |
RobotVisualizationPtr | reproduce (QWidget *parent) override |
UPDATING OF VISUALIZATION. More... | |
void | setCamera (const Eigen::VectorXf position, const Eigen::VectorXf pointAtA, const Eigen::VectorXf pointAtB) override |
setCamera sets the camera at a certain position More... | |
void | setManipulator (VirtualRobot::RobotNodeSetPtr kc, std::vector< float >jointAngles) override |
SETTING MANIPULATOR. More... | |
void | setSelectedWaypoint (int index) override |
removeWaypointVisualization removes the Waypoint with index so that it is no longer visualized More... | |
void | updateRobotVisualization () override |
UPDATING OF VISUALIZATION. More... | |
~CoinRobotViewerAdapter () | |
Public Member Functions inherited from VisualizationSubject | |
void | removeObservers () |
void | setObserver (VisualizationObserverPtr observer) |
setObserver adds a new observer to this subject, everytime the subjet changes the observer should be notified by calling its refresh method More... | |
Protected Member Functions | |
AdvancedVisualizationFactoryPtr | createAdvancedVisualizationFactory () override |
Additional Inherited Members | |
Protected Attributes inherited from RobotVisualization | |
VirtualRobot::RobotPtr | robot |
VirtualRobot::ScenePtr | scene |
Protected Attributes inherited from VisualizationSubject | |
std::weak_ptr< VisualizationObserver > | observer |
The CoinRobotViewerAdapter class.
Definition at line 41 of file CoinRobotViewerAdapter.h.
CoinRobotViewerAdapter | ( | QWidget * | widget | ) |
widget | the parent widget on the gui |
Definition at line 68 of file CoinRobotViewerAdapter.cpp.
Definition at line 106 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
METHODS FOR VISUALIZATION SETUP.
Implements RobotVisualization.
Definition at line 140 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
addSceneVisualization visualizes the whole scene where the robot is placed in
scene |
Implements RobotVisualization.
Definition at line 178 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
METHODS FOR TRANSITIONS.
Implements RobotVisualization.
Definition at line 194 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
METHODS FOR WAYPOINTS.
Implements RobotVisualization.
Definition at line 247 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
clearTrajectory removes all visualization of waypoints and transitions but keeps the robot and the maipulator visualized
Implements RobotVisualization.
Definition at line 342 of file CoinRobotViewerAdapter.cpp.
|
overrideprotectedvirtual |
Implements RobotVisualization.
Definition at line 242 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
disableVisualization hides the viewer
Implements RobotVisualization.
Definition at line 337 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
enableVisualization shows the viewer
Implements RobotVisualization.
Definition at line 332 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
INHERITED BY OBSERVER.
Implements VisualizationSubject.
Definition at line 231 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
getSelectedWaypoint
Implements VisualizationSubject.
Definition at line 236 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
highlightTransitionVisualization highlights the transition with index i by changing the color of all points belonging to that transition
index | the index of the transition to be highlighted starting with 0 |
transition | the transition to be highlighted |
Implements RobotVisualization.
Definition at line 210 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
removeAllWaypointVisualizations removes all waypoints that are currently visualized
Implements RobotVisualization.
Definition at line 293 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
removeTransitionVisualization removes visualization of a certain transition
index | the index of the transition to be removed starting with 0 |
Implements RobotVisualization.
Definition at line 203 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
removeWaypointVisualization removes the Waypoint with index so that it is no longer visualized
index | the index of the waypoint to be removed starting with 0 |
Implements RobotVisualization.
Definition at line 285 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
UPDATING OF VISUALIZATION.
Implements RobotVisualization.
Definition at line 355 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
setCamera sets the camera at a certain position
position | the 3D Position of the camera |
pointAtA | the highest point the camera points at |
pointAtB | the lowest point the camera looks at |
Implements RobotVisualization.
Definition at line 184 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
SETTING MANIPULATOR.
Implements RobotVisualization.
Definition at line 311 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
removeWaypointVisualization removes the Waypoint with index so that it is no longer visualized
index | the index of the waypoint to be removed starting with 0 |
Implements RobotVisualization.
Definition at line 302 of file CoinRobotViewerAdapter.cpp.
|
overridevirtual |
UPDATING OF VISUALIZATION.
Implements RobotVisualization.
Definition at line 327 of file CoinRobotViewerAdapter.cpp.