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 More...
|
|
void | poseReachable (bool reachable) |
| poseReachable informs all relevant controllers whether the pose of the manipulator is reachable More...
|
|
void | tcpPoseChanged (Eigen::Matrix4f globalPose) |
| tcpPoseChanged informs all releveant controllers about the new global pose of the manipulator More...
|
|
void | trajectoryPlayerNotPlaying (bool playing) |
| trajectoryPlayerNotPlaying More...
|
|
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 More...
|
|
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.
Definition at line 48 of file RobotVisualizationController.h.
◆ 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 |
Definition at line 316 of file RobotVisualizationController.cpp.
◆ clearView
◆ displayAllWayPoints
void displayAllWayPoints |
( |
bool |
display | ) |
|
|
slot |
◆ environmentChanged
environmentChanged updates the environment that is currently visualized
UPDATING OF VISUALIZATION.
- Parameters
-
environment | the new environment |
Definition at line 158 of file RobotVisualizationController.cpp.
◆ 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
-
Definition at line 322 of file RobotVisualizationController.cpp.
◆ 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! |
Definition at line 427 of file RobotVisualizationController.cpp.
◆ playTrajectory
PLAY TRAJECTORY.
playTrajectories plays the currently selected trajectory and disables all other visualization features
Definition at line 420 of file RobotVisualizationController.cpp.
◆ 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()
◆ removeView
◆ 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 |
Definition at line 164 of file RobotVisualizationController.cpp.
◆ selectedTransitionChanged
void selectedTransitionChanged |
( |
int |
index | ) |
|
|
slot |
◆ 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 |
Definition at line 403 of file RobotVisualizationController.cpp.
◆ setCamera [1/2]
CAMERA UPDATING METHODS.
setCamera Sets the camera of all views to standard Position sets camera to standard perspective
Definition at line 346 of file RobotVisualizationController.cpp.
◆ 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 |
Definition at line 351 of file RobotVisualizationController.cpp.
◆ 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 |
Definition at line 338 of file RobotVisualizationController.cpp.
◆ 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
Definition at line 437 of file RobotVisualizationController.cpp.
◆ 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 |
Definition at line 179 of file RobotVisualizationController.cpp.
◆ 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: