CoinManipulatorVisualizationAdapter.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package ArmarXGuiPlugins::RobotTrajectoryDesigner::Visualization
17  * @author Timo Birr
18  * @date 2018
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 
25 
26 #include "../KinematicSolver.h"
27 
28 
29 
30 using namespace armarx;
31 using namespace VirtualRobot;
32 
33 
35 {
36  adaptedManipulation = new ManipulatorVisualization();
37 }
38 
40 {
41 
42 }
43 
45 {
46  adaptedManipulation->setVisualization(robot, nodeSet);
47 }
48 
50 {
51  return adaptedManipulation->getUserDesiredPose();
52 }
53 
55 {
56  return (SoSeparator*) adaptedManipulation;
57 }
58 
59 void CoinManipulatorVisualizationAdapter::attachCallback(SoDraggerCB* finish, SoDraggerCB* moved, void* data)
60 {
61  adaptedManipulation->addManipFinishCallback(finish, data);
62  adaptedManipulation->addManipMovedCallback(moved, data);
63 }
64 
armarx::CoinManipulatorVisualizationAdapter::getVisualization
SoSeparator * getVisualization()
Definition: CoinManipulatorVisualizationAdapter.cpp:54
VirtualRobot
Definition: FramedPose.h:43
armarx::CoinManipulatorVisualizationAdapter::getUserDesiredPose
Eigen::MatrixXf getUserDesiredPose()
Definition: CoinManipulatorVisualizationAdapter.cpp:49
armarx::CoinManipulatorVisualizationAdapter::~CoinManipulatorVisualizationAdapter
~CoinManipulatorVisualizationAdapter()
Definition: CoinManipulatorVisualizationAdapter.cpp:39
armarx::CoinManipulatorVisualizationAdapter::setVisualization
void setVisualization(VirtualRobot::RobotPtr robot, VirtualRobot::RobotNodeSetPtr nodeSet)
Definition: CoinManipulatorVisualizationAdapter.cpp:44
data
uint8_t data[1]
Definition: EtherCATFrame.h:68
armarx::CoinManipulatorVisualizationAdapter::CoinManipulatorVisualizationAdapter
CoinManipulatorVisualizationAdapter()
Definition: CoinManipulatorVisualizationAdapter.cpp:34
armarx::ManipulatorVisualization
Definition: ManipulatorVisualization.h:51
CoinManipulatorVisualizationAdapter.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::CoinManipulatorVisualizationAdapter::attachCallback
void attachCallback(SoDraggerCB *finish, SoDraggerCB *moved, void *data)
Definition: CoinManipulatorVisualizationAdapter.cpp:59
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition: Bus.h:18