forked from rock-gazebo/simulation-orogen-rock_gazebo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrock_gazeboTypes.hpp
38 lines (34 loc) · 1.18 KB
/
rock_gazeboTypes.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef rock_gazebo_TYPES_HPP
#define rock_gazebo_TYPES_HPP
#include <iostream>
#include <base/Time.hpp>
#include <base/Eigen.hpp>
#include <base/Float.hpp>
namespace rock_gazebo
{
struct LinkExport {
// The port name
std::string port_name;
// The RBS sourceFrame, leave empty to use source_link
std::string source_frame;
// The RBS targetFrame, leave empty to use target_link
std::string target_frame;
// The source gazebo link, leave empty for "world"
std::string source_link;
// The target gazebo link, leave empty for "world"
std::string target_link;
// The period of update the output port
base::Time port_period;
// The position covariance
base::Matrix3d cov_position;
// The orientation covariance
base::Matrix3d cov_orientation;
// The velocity covariance
base::Matrix3d cov_velocity;
LinkExport()
: cov_position(base::Matrix3d::Ones() * base::unset<double>())
, cov_orientation(base::Matrix3d::Ones() * base::unset<double>())
, cov_velocity(base::Matrix3d::Ones() * base::unset<double>()) {}
};
}
#endif