Privacy
An open-source, flexible 3D physical simulation framework
core_objects_exchange.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011, 2012, DFKI GmbH Robotics Innovation Center
3  *
4  * This file is part of the MARS simulation framework.
5  *
6  * MARS is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License
8  * as published by the Free Software Foundation, either version 3
9  * of the License, or (at your option) any later version.
10  *
11  * MARS is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with MARS. If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef MARS_INTERFACES_CORE_OBJECTS_EXCHANGE_H
22 #define MARS_INTERFACES_CORE_OBJECTS_EXCHANGE_H
23 
24 #include "MARSDefs.h"
25 #include <mars/utils/Vector.h>
26 #include <mars/utils/Quaternion.h>
27 
28 #include <string>
29 
30 namespace mars {
31  namespace interfaces {
32 
41  setZero();
42  }
43 
44  void setZero(){
45  pos.setZero();
46  rot.setIdentity();
47  visOffsetPos.setZero();
48  visOffsetRot.setIdentity();
49  index = 0;
50  value = 0;
51  groupID = 0;
52  }
53 
57  std::string name;
58 
63 
68 
73 
78 
83  unsigned long index;
84 
88  unsigned int groupID;
89 
94  }; // end of struct core_objects_exchange
95 
96  } // end of namespace interfaces
97 } // end of namespace mars
98 
99 #endif /* MARS_INTERFACES_CORE_OBJECTS_EXCHANGE_H */
utils::Vector visOffsetPos
The offset position of the visual representation.
std::string name
The name of the object.
utils::Vector pos
The position of the object.
utils::Quaternion visOffsetRot
The offset orientation of the visual representation.
core_objects_exchange is a struct to exchange core objects information between the modules of the sim...
double sReal
Definition: MARSDefs.h:49
Copyright 2012, DFKI GmbH Robotics Innovation Center.
Eigen::Matrix< double, 3, 1, Eigen::DontAlign > Vector
Definition: Vector.h:43
Eigen::Quaternion< double, Eigen::DontAlign > Quaternion
Definition: Quaternion.h:56
unsigned int groupID
The groupID of the object if the object is a node.
utils::Quaternion rot
The orientation of the object.
sReal value
A value that is used in different ways depending on the type of object.
unsigned long index
The unique id of the object.