GCC Code Coverage Report


Directory: src/
File: src/robot.impl.hh
Date: 2024-12-13 15:43:02
Exec Total Coverage
Lines: 0 1 0.0%
Branches: 0 0 -%

Line Branch Exec Source
1 // Copyright (c) 2014 CNRS
2 // Author: Florent Lamiraux
3 //
4
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 //
9 // 1. Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 //
12 // 2. Redistributions in binary form must reproduce the above copyright
13 // notice, this list of conditions and the following disclaimer in the
14 // documentation and/or other materials provided with the distribution.
15 //
16 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 // HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
27 // DAMAGE.
28
29 #ifndef HPP_MANIPULATION_CORBA_ROBOT_IMPL_HH
30 #define HPP_MANIPULATION_CORBA_ROBOT_IMPL_HH
31
32 #include <hpp/corbaserver/manipulation/fwd.hh>
33 #include <hpp/manipulation/problem-solver.hh>
34
35 #include "hpp/corbaserver/manipulation/robot-idl.hh"
36
37 namespace hpp {
38 namespace manipulation {
39 namespace impl {
40 using CORBA::Short;
41
42 class Robot : public virtual POA_hpp::corbaserver::manipulation::Robot {
43 public:
44 Robot();
45
46 void setServer(Server* server) { server_ = server; }
47
48 virtual void insertRobotModel(const char* robotName,
49 const char* rootJointType, const char* urdfName,
50 const char* srdfName);
51
52 virtual void insertRobotModelOnFrame(const char* robotName,
53 const char* frameName,
54 const char* rootJointType,
55 const char* urdfName,
56 const char* srdfName);
57
58 virtual void insertRobotModelFromString(const char* robotName,
59 const char* rootJointType,
60 const char* urdfString,
61 const char* srdfString);
62
63 virtual void insertRobotModelOnFrameFromString(const char* robotName,
64 const char* frameName,
65 const char* rootJointType,
66 const char* urdfString,
67 const char* srdfString);
68
69 virtual void insertRobotSRDFModel(const char* robotName,
70 const char* srdfPath);
71
72 virtual void insertRobotSRDFModelFromString(const char* robotName,
73 const char* srdfString);
74
75 virtual void insertHumanoidModel(const char* robotName,
76 const char* rootJointType,
77 const char* urdfName, const char* srdfName);
78
79 virtual void insertHumanoidModelFromString(const char* robotName,
80 const char* rootJointType,
81 const char* urdfString,
82 const char* srdfString);
83
84 virtual void loadEnvironmentModel(const char* urdfName, const char* srdfName,
85 const char* prefix);
86
87 virtual void loadEnvironmentModelFromString(const char* urdfString,
88 const char* srdfString,
89 const char* prefix);
90
91 virtual Transform__slice* getRootJointPosition(const char* robotName);
92
93 virtual void setRootJointPosition(const char* robotName,
94 const ::hpp::Transform_ position);
95
96 virtual void addHandle(const char* linkName, const char* handleName,
97 const ::hpp::Transform_ localPosition,
98 double clearance, const ::hpp::boolSeq& mask);
99
100 virtual void addGripper(const char* linkName, const char* gripperName,
101 const ::hpp::Transform_ handlePositioninJoint,
102 double clearance);
103
104 virtual char* getGripperPositionInJoint(const char* gripperName,
105 ::hpp::Transform__out position);
106
107 virtual char* getHandlePositionInJoint(const char* handleName,
108 ::hpp::Transform__out position);
109
110 virtual void setHandlePositionInJoint(const char* handleName,
111 const ::hpp::Transform_ position);
112
113 private:
114 ProblemSolverPtr_t problemSolver();
115 Server* server_;
116 }; // class Robot
117 } // namespace impl
118 } // namespace manipulation
119 } // namespace hpp
120
121 #endif // HPP_MANIPULATION_CORBA_ROBOT_IMPL_HH
122