ApplyWrenchVisualPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef _GAZEBO_APPLYWRENCHVISUAL_PRIVATE_HH_
19 #define _GAZEBO_APPLYWRENCHVISUAL_PRIVATE_HH_
20 
21 #include <string>
22 #include <mutex>
23 
25 
26 namespace gazebo
27 {
28  namespace rendering
29  {
32  {
34  public: std::string selectedMaterial;
35 
37  public: std::string unselectedMaterial;
38 
41 
44 
47 
49  public: ignition::math::Vector3d comVector;
50 
52  public: ignition::math::Vector3d forcePosVector;
53 
55  public: ignition::math::Vector3d forceVector;
56 
58  public: ignition::math::Vector3d torqueVector;
59 
61  public: std::mutex mutex;
62 
65 
68  public: bool rotatedByMouse;
69 
72 
75  };
76  }
77 }
78 #endif
Class for drawing lines that can change.
Definition: DynamicLines.hh:43
bool rotatedByMouse
If true, the rotation tool was rotated by the mouse and shouldn't be oriented again according to the ...
Definition: ApplyWrenchVisualPrivate.hh:68
std::string unselectedMaterial
Material for the unselected mode.
Definition: ApplyWrenchVisualPrivate.hh:37
Movable text.
Definition: MovableText.hh:49
Private data for the Visual class.
Definition: VisualPrivate.hh:58
ignition::math::Vector3d forcePosVector
Force application point in link coordinates.
Definition: ApplyWrenchVisualPrivate.hh:52
VisualPtr torqueVisual
Tube and line representing torque.
Definition: ApplyWrenchVisualPrivate.hh:43
MovableText forceText
Text displaying the force magnitude.
Definition: ApplyWrenchVisualPrivate.hh:71
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:112
ignition::math::Vector3d torqueVector
Torque vector expressed in the link frame.
Definition: ApplyWrenchVisualPrivate.hh:58
rendering::SelectionObjPtr rotTool
Rotation tool composed of two circles.
Definition: ApplyWrenchVisualPrivate.hh:64
ignition::math::Vector3d comVector
CoM position in link coordinates.
Definition: ApplyWrenchVisualPrivate.hh:49
Private data for the Apply Wrench Visual class.
Definition: ApplyWrenchVisualPrivate.hh:31
ignition::math::Vector3d forceVector
Force vector expressed in the link frame.
Definition: ApplyWrenchVisualPrivate.hh:55
std::shared_ptr< SelectionObj > SelectionObjPtr
Definition: RenderTypes.hh:188
MovableText torqueText
Text displaying the torque magnitude.
Definition: ApplyWrenchVisualPrivate.hh:74
std::mutex mutex
Mutex to protect variables.
Definition: ApplyWrenchVisualPrivate.hh:61
rendering::DynamicLines * torqueLine
Line connecting the torque visual to the CoM.
Definition: ApplyWrenchVisualPrivate.hh:46
std::string selectedMaterial
Material for the current mode.
Definition: ApplyWrenchVisualPrivate.hh:34
VisualPtr forceVisual
Arrow representing force.
Definition: ApplyWrenchVisualPrivate.hh:40