-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterrain_estimator.orogen
84 lines (55 loc) · 2.57 KB
/
terrain_estimator.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
name 'terrain_estimator'
version '0.1'
using_library "terrain_estimator"
import_types_from 'base'
import_types_from 'torque_estimator'
import_types_from "TerrainTypes.hpp"
import_types_from "terrain_estimator/TerrainConfiguration.hpp"
task_context 'Task' do
needs_configuration
##########################
# parameters
##########################
property('track_width', 'double').
doc 'the width between two wheels on the same axis'
property('angle_between_legs', 'double').
doc 'the angle between two legs on a single wheel'
property('wheel_radius', 'double').
doc 'the angle between two legs on a single wheel'
property('slip_threashold', 'double',0.005).
doc 'the threashold of the relative movement between the axis that indicates a slip'
property('terrain_type', '/terrain_estimator/TerrainType').
doc 'the type of terrain used in the learning process'
property('histogram_traction_conf', 'terrain_estimator/HistogramConfiguration')
property('histogram_angular_vel_conf', 'terrain_estimator/HistogramConfiguration')
property('histogram_linear_vel_conf', 'terrain_estimator/HistogramConfiguration')
property('svm_classifier', 'terrain_estimator/SVMClassifiers')
property('test', 'terrain_estimator/PhysicalFilter')
##########################
# aggregator parameters
##########################
stream_aligner() do
align_port("motor_status", 0.001)
align_port("ground_forces_estimated", 0.001)
align_port("orientation_samples", 0.01)
max_latency(0.05)
end
##########################
# i/o ports
##########################
input_port('motor_status', '/base/actuators/Status').
needs_reliable_connection.
doc 'timestamped asguard bodystate information'
input_port("ground_forces_estimated", "torque_estimator/GroundForces").
doc("Estimated ground force values")
input_port('orientation_samples', '/base/samples/RigidBodyState').
doc("timestamped orientation readings").
needs_buffered_connection
output_port('terrain_classification', '/terrain_estimator/TerrainClassification')
output_port('histogram_terrain_classification', '/terrain_estimator/TerrainClassificationHistogram')
output_port('debug_slip_detection', '/terrain_estimator/DebugSlipDetection')
output_port('slip_detected', '/terrain_estimator/SlipDetected')
output_port('debug_physical_filter', '/terrain_estimator/PhysicalFilter ')
output_port('debug_body_dynamics', '/terrain_estimator/DebugBodyDynamics')
port_driven
end