-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrock_gazebo.orogen
164 lines (121 loc) · 4.86 KB
/
rock_gazebo.orogen
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
name "rock_gazebo"
import_types_from "base"
import_types_from "rock_gazeboTypes.hpp"
import_types_from "gps_base"
using_library "gazebo"
using_library "gazebo_thruster"
# Representation of a gazebo World object
task_context "WorldTask" do
needs_configuration
# The world full name
attribute "name", '/std/string'
# The simulation time
output_port 'time', 'base/Time'
end
task_context "BaseTask" do
needs_configuration
# Controls whether the components should use the simulation time (the
# default) or wall-clock time
property "use_sim_time", "/bool", true
end
# Representation of a gazebo Model object
task_context "ModelTask" do
needs_configuration
subclasses 'BaseTask'
# The model full name
attribute "name", '/std/string'
# The frame name for the model pose. It will, by default, be set to the
# model's name (e.g. flat_fish)
property 'model_frame', '/std/string'
# The frame name for the model pose. It will, by default, be set to the
# world's full name (e.g. underwater)
property 'world_frame', '/std/string'
# The pose of the model w.r.t. the world frame
output_port 'pose_samples', '/base/samples/RigidBodyState'
# The covariance matrix to be used as position covariance. Default is unset (NaN)
property 'cov_position', '/base/Matrix3d'
# The covariance matrix to be used as orientation covariance. Default is unset (NaN)
property 'cov_orientation', '/base/Matrix3d'
# The covariance matrix to be used as velocity covariance. Default is unset (NaN)
property 'cov_velocity', '/base/Matrix3d'
property "exported_links", "std/vector<rock_gazebo/LinkExport>"
# The model's pose if one wants to "warp"
input_port 'model_pose', "/base/samples/RigidBodyState"
# Joints input/output ports
input_port "joints_cmd", "/base/samples/Joints"
output_port "joints_samples", "/base/samples/Joints"
# Link export
dynamic_output_port /.*/, '/base/samples/RigidBodyState'
end
task_context "ThrusterTask" do
needs_configuration
subclasses 'BaseTask'
exception_states 'NO_TOPIC_CONNECTION'
# Thruster full name
attribute "name", "/std/string"
# Thruster input port
input_port "thrusters_cmd", "/base/samples/Joints"
# Thruster status port
output_port "joint_samples", "/base/samples/Joints"
end
task_context "SensorTask" do
subclasses "BaseTask"
abstract
# The sensor's full name
attribute "name", "/std/string"
end
task_context "LaserScanTask" do
subclasses 'SensorTask'
# Laser line output port
output_port "laser_scan_samples", "/base/samples/LaserScan"
end
task_context "CameraTask" do
subclasses 'SensorTask'
# Camera output port
output_port 'frame', ro_ptr('base::samples::frame::Frame')
end
task_context "ImuTask" do
subclasses 'SensorTask'
# The name of the frame attached to the IMU'
property('imu_frame', '/std/string', 'imu')
# The name of the world frame'
property('world_frame', '/std/string', 'imu_world')
# Provides orientation samples reported by the IMU sensor.'
output_port('orientation_samples', '/base/samples/RigidBodyState')
# IMU samples containing linear acceleration, orientation and angular velocity
output_port('imu_samples', '/base/samples/IMUSensors')
end
task_context "GPSTask" do
subclasses 'SensorTask'
# The name of the frame attached to the GPS'
property('gps_frame', '/std/string', 'gps')
# The name of the reference frame for the UTM samples
property('utm_frame', '/std/string', 'utm')
# The name of the reference frame for the position samples
property('nwu_frame', '/std/string', 'nwu')
# Use a proper transverse mercator projection or Gazebo's
# internal SphericalCoordinate conversion class
#
# If you intend to compare true positions provided by ModelTask to things
# that use the GPS, this must be false
property('use_proper_utm_conversion', "bool", false)
# The raw GPS position
output_port "gps_solution", "gps_base/Solution"
# Computed UTM position
output_port 'utm_samples', '/base/samples/RigidBodyState'
# Computed position in m, in the NWU coordinate frame
output_port 'position_samples', '/base/samples/RigidBodyState'
# UTM zone for conversion of WGS84 to UTM if use_proper_utm_conversion is
# true
property("utm_zone", "int", 32)
# UTM north for conversion of WGS84 to UTM if use_proper_utm_conversion is
# true
property("utm_north", "bool", true)
# Origin in UTM coordinates, that is used for position readings if
# use_proper_utm_conversion is true
property("nwu_origin", "/base/Position")
# Latitude of the origin if use_proper_utm_conversion is false
property('latitude_origin', "/base/Angle")
# Longitude of the origin if use_proper_utm_conversion is false
property('longitude_origin', "/base/Angle")
end