-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathimaging_sonar_simulation.orogen
80 lines (56 loc) · 2.29 KB
/
imaging_sonar_simulation.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
name "imaging_sonar_simulation"
# include rock drivers
using_library "gpu_sonar_simulation"
using_library "normal_depth_map"
using_library "vizkit3d_world"
using_library "frame_helper"
using_task_library "vizkit3d_world"
import_types_from "base"
import_types_from "imaging_sonar_simulationTypes.hpp"
task_context "Task" do
abstract
subclasses "vizkit3d_world::Task"
# set the sonar pose using a RigidBodyState structure
input_port("sonar_pose_cmd", "/base/samples/RigidBodyState");
# Range of the sonar in meters (1.0 - 150.0)
property("range", "double", 50.0).dynamic
# Gain of the sonar (0.0 - 1.0)
property("gain", "double", 0.5).dynamic
# Number of Bins
property("bin_count", "int", 750).dynamic
# Opening of the beam orthogonal to the device's Z direction
property("beam_width", "base/Angle")
# Opening of the beam along the device's Z direction
property("beam_height", "base/Angle")
# Enable underwater signal attenuation effect
property("enable_attenuation", "bool", true).dynamic
# Enable speckle noise in acoustic image
property("enable_speckle_noise", "bool", true).dynamic
# Enable reverberation effect in acoustic image
property("enable_reverberation", "bool", true).dynamic
# Write shader image
property("write_shader_image", "bool", false).dynamic
# Underwater acoustic attenuation properties (water temperature and sonar frequency)
property("attenuation_properties", "imaging_sonar_simulation/AcousticAttenuationProperties").dynamic
# Output sonar data (Sonar)
output_port("sonar_samples", "/base/samples/Sonar");
# Shader Image
output_port("shader_image", ro_ptr("/base/samples/frame/Frame"));
port_driven 'sonar_pose_cmd'
end
task_context "ScanningSonarTask" do
subclasses "imaging_sonar_simulation::Task"
# Left limit angle
property("left_limit", "base/Angle").dynamic
# Right limit angle
property("right_limit", "base/Angle").dynamic
# Step angle size
property("motor_step", "base/Angle").dynamic
# Enable/disable ping pong scanning mode
property("continuous", "bool", true).dynamic
end
task_context "MultibeamSonarTask" do
subclasses "imaging_sonar_simulation::Task"
# Number of Beams
property("beam_count", "int", 256).dynamic
end