Go to the documentation of this file.
22 #ifndef COINROBOTVIEWERADAPTER_H
23 #define COINROBOTVIEWERADAPTER_H
31 #include "Inventor/draggers/SoDragger.h"
32 #include "Inventor/SoPath.h"
33 #include "Inventor/nodes/SoSelection.h"
34 #include "Inventor/SoPickedPoint.h"
56 void setCamera(
const Eigen::VectorXf position,
const Eigen::VectorXf pointAtA,
const Eigen::VectorXf pointAtB)
override;
97 std::shared_ptr<RobotViewer> viewer;
99 void refreshSelectedPoint();
100 SoNodeList transitions;
101 SoNodeList wayPoints;
102 int selectedWaypoint;
106 static void manipFinishCallback(
void*
data, SoDragger* dragger);
107 static void manipMovedCallback(
void*
data, SoDragger* dragger);
108 static void autoFollowSensorTimerCB(
void*
data, SoSensor* sensor);
110 SoTimerSensor* autoFollowSensor;
111 bool manipulatorMoved;
115 SoTimerSensor* robotUpdateSensor;
116 static void robotUpdateTimerCB(
void*
data, SoSensor* sensor);
117 bool startUpCameraPositioningFlag =
true;
121 SoSelection* selected;
122 static void made_selection(
void*
data, SoPath* path);
123 static void unmade_selection(
void*
data, SoPath* path);
124 static SoPath* pickFilterCB(
void*
data,
const SoPickedPoint* pick);
void setManipulator(VirtualRobot::RobotNodeSetPtr kc, std::vector< float >jointAngles) override
SETTING MANIPULATOR.
void enableVisualization() override
enableVisualization shows the viewer
The CoinRobotViewerAdapter class.
void removeWaypointVisualization(int index) override
removeWaypointVisualization removes the Waypoint with index so that it is no longer visualized
void disableVisualization() override
disableVisualization hides the viewer
void addWaypointVisualization(int index, PoseBasePtr waypoint, VirtualRobot::EndEffectorPtr tcp) override
METHODS FOR WAYPOINTS.
std::shared_ptr< Scene > ScenePtr
VirtualRobot::ScenePtr scene
void removeTransitionVisualization(int index) override
removeTransitionVisualization removes visualization of a certain transition
void removeAllWaypointVisualizations() override
removeAllWaypointVisualizations removes all waypoints that are currently visualized
void setSelectedWaypoint(int index) override
removeWaypointVisualization removes the Waypoint with index so that it is no longer visualized
void highlightTransitionVisualization(int index, std::vector< PoseBasePtr > transition) override
highlightTransitionVisualization highlights the transition with index i by changing the color of all ...
VirtualRobot::RobotPtr robot
std::shared_ptr< AdvancedVisualizationFactory > AdvancedVisualizationFactoryPtr
void addSceneVisualization(VirtualRobot::ScenePtr scene) override
addSceneVisualization visualizes the whole scene where the robot is placed in
AdvancedVisualizationFactoryPtr createAdvancedVisualizationFactory() override
void clearTrajectory() override
clearTrajectory removes all visualization of waypoints and transitions but keeps the robot and the ma...
const KinematicUnitDatafieldCreator jointAngles("jointAngles")
std::shared_ptr< RobotVisualization > RobotVisualizationPtr
MatrixXX< 4, 4, float > Matrix4f
void updateRobotVisualization() override
UPDATING OF VISUALIZATION.
CoinRobotViewerAdapter(QWidget *widget)
CoinRobotViewerAdapter.
Eigen::Matrix4f getManipulatorPose() override
INHERITED BY OBSERVER.
void setCamera(const Eigen::VectorXf position, const Eigen::VectorXf pointAtA, const Eigen::VectorXf pointAtB) override
setCamera sets the camera at a certain position
RobotVisualizationPtr reproduce(QWidget *parent) override
UPDATING OF VISUALIZATION.
void addTransitionVisualization(int index, std::vector< PoseBasePtr > transition) override
METHODS FOR TRANSITIONS.
~CoinRobotViewerAdapter()
void addRobotVisualization(VirtualRobot::RobotPtr robot, QString selectedChain) override
METHODS FOR VISUALIZATION SETUP.
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< AdvancedCoinVisualizationFactory > AdvancedCoinVisualizationFactoryPtr
std::shared_ptr< class Robot > RobotPtr
int getSelectedWaypoint() override
getSelectedWaypoint