The RobotVisualizationController A Controller to control the visualization of the robot.
More...
#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Controller/RobotVisualizationController.h>
|
| void | manipulatorChanged (Eigen::Matrix4f globalPose) |
| | manipulatorChanged informs all relevant controllers that the pose of the manipulator has changed and therefore the currently selected Waypoint is also changed
|
| |
| void | poseReachable (bool reachable) |
| | poseReachable informs all relevant controllers whether the pose of the manipulator is reachable
|
| |
| void | tcpPoseChanged (Eigen::Matrix4f globalPose) |
| | tcpPoseChanged informs all releveant controllers about the new global pose of the manipulator
|
| |
| void | trajectoryPlayerNotPlaying (bool playing) |
| | trajectoryPlayerNotPlaying
|
| |
| void | trajectoryPlayerPlaying (bool playing) |
| |
| void | wayPointSelected (int index) |
| | wayPointSelected informs all relevant controllers that the currently selected Waypoit has been changed via click on the waypoint in the RobotViewer
|
| |
The RobotVisualizationController A Controller to control the visualization of the robot.
Hides the concrete visualization Method(Coin,OSG) from the rest of the application. Provides Methods for adding Visualization of one Robot at a time, waypoints and transitions between waypoints. Supports up to four parallel views. Informs other Controllers about the Position of the Manipulator, the TCP and the selected waypoint.
◆ RobotVisualizationController()
◆ ~RobotVisualizationController()
◆ addConnection()
◆ addView
◆ cartesianSelectionChanged
| void cartesianSelectionChanged |
( |
VirtualRobot::IKSolver::CartesianSelection | cs | ) |
|
|
slot |
IK CALLBACK METHODS.
cartesianSelectionChanged recalculates the configuration of the robot joints to fit the new selection
- Parameters
-
| cs | the new CartesianSelection |
◆ clearView
◆ displayAllWayPoints
| void displayAllWayPoints |
( |
bool | display | ) |
|
|
slot |
displayAllWayPoints Enables Visualization and threfore selection of all waypoints of the current Trajectory and not only userWaypoints
- Parameters
-
◆ environmentChanged
environmentChanged updates the environment that is currently visualized
UPDATING OF VISUALIZATION.
- Parameters
-
| environment | the new environment |
◆ kinematicChainChanged
| void kinematicChainChanged |
( |
VirtualRobot::RobotNodeSetPtr | rns | ) |
|
|
slot |
kinematicChainChanged removes all visualization from the previously selected Trajectory and changes the Visualization of the Manipulator to look like the endeffector of the kinematic chain
- Parameters
-
◆ manipulatorChanged
| void manipulatorChanged |
( |
Eigen::Matrix4f | globalPose | ) |
|
|
signal |
manipulatorChanged informs all relevant controllers that the pose of the manipulator has changed and therefore the currently selected Waypoint is also changed
◆ onConnectComponent()
| void onConnectComponent |
( |
| ) |
|
|
overridevirtual |
◆ onDisconnectComponent()
| void onDisconnectComponent |
( |
| ) |
|
|
overridevirtual |
◆ onExitComponent()
◆ onInitComponent()
◆ playTrajectories
playTrajectories plays all trajectories at the same time
- Parameters
-
| trajectories | the trajectories to play - no duplicates of selected robot node sets allowed! |
◆ playTrajectory
PLAY TRAJECTORY.
playTrajectories plays the currently selected trajectory and disables all other visualization features
◆ poseReachable
| void poseReachable |
( |
bool | reachable | ) |
|
|
signal |
poseReachable informs all relevant controllers whether the pose of the manipulator is reachable
- Parameters
-
| reachable | true when there is an IK-solution for the manipulator could be found |
◆ refresh()
refresh gets all relevant data from subject an updates itself accoringly should be called by subject but can also be called from elsewhere
Implements VisualizationObserver.
◆ removeView
removeView removes RobotViewer with index
- Parameters
-
| index | the index of the view to remove |
◆ robotChanged
robotChanged updates the robot model that is currently visualized Removes the robot that is visualized prior to this one
- Parameters
-
| robot | the new Robot to visualize |
◆ selectedTransitionChanged
| void selectedTransitionChanged |
( |
int | index | ) |
|
|
slot |
selectedTransitionChanged highlights the Transition with index
- Parameters
-
| index | the index of the transition that should be highlighted |
◆ selectedWayPointChanged
| void selectedWayPointChanged |
( |
int | index | ) |
|
|
slot |
selectedWayPointChanged highlights the waypoint with index and moves the manipulator to its Pose
- Parameters
-
| index | the index of the waypoint to select next |
◆ setCamera [1/2]
CAMERA UPDATING METHODS.
setCamera Sets the camera of all views to standard Position sets camera to standard perspective
◆ setCamera [2/2]
| void setCamera |
( |
int | perspective | ) |
|
|
slot |
setCamera sets camera to the Perspective with index perspective in the corresponding enum
- Parameters
-
| perspective | the selected perspective 0 - High Angle 1 - Top 2 - Front 3 - Back 4 - Left 5 - Right |
◆ setIKCallbackEnabled
| void setIKCallbackEnabled |
( |
bool | enabled | ) |
|
|
slot |
setIKCallbackEnabled sets whther the robot Model tries to reach the Pose determined by the Manipulator
- Parameters
-
| enabled | if true the robot follows the manipulator |
◆ tcpPoseChanged
| void tcpPoseChanged |
( |
Eigen::Matrix4f | globalPose | ) |
|
|
signal |
tcpPoseChanged informs all releveant controllers about the new global pose of the manipulator
- Parameters
-
| globalPose | the pose of the manipulator relative to the global frame |
◆ trajectoryPlayerNotPlaying
| void trajectoryPlayerNotPlaying |
( |
bool | playing | ) |
|
|
signal |
trajectoryPlayerNotPlaying
- Parameters
-
◆ trajectoryPlayerPlaying
| void trajectoryPlayerPlaying |
( |
bool | playing | ) |
|
|
signal |
◆ trajectoryPlayerStopped
| void trajectoryPlayerStopped |
( |
| ) |
|
|
slot |
trajectoryPlayerStopped restarts the visualization of the whole scene after the debug drawer does not longer visualize the trajectory
◆ updateViews
UPDATING OF VISUALIZATION.
updateViews Removes the current visualization of all Waypoints and Transitions and replaces them with the visualization of the new Trajectory
- Parameters
-
| trajectory | the trajectory to display next |
◆ wayPointSelected
| void wayPointSelected |
( |
int | index | ) |
|
|
signal |
wayPointSelected informs all relevant controllers that the currently selected Waypoit has been changed via click on the waypoint in the RobotViewer
- Parameters
-
◆ RobotVisualization
The documentation for this class was generated from the following files: