-
Notifications
You must be signed in to change notification settings - Fork 0
/
ugv_nav4d.orogen
83 lines (66 loc) · 3.14 KB
/
ugv_nav4d.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 "ugv_nav4d"
using_library "ugv_nav4d"
using_library "trajectory_follower"
using_library "base-lib"
using_library "orocos_cpp"
using_library "vizkit3d_debug_drawings-commands"
import_types_from "base"
import_types_from "maps"
import_types_from "traversability_generator3d/TraversabilityConfig.hpp"
import_types_from "ugv_nav4d/PlannerConfig.hpp"
import_types_from "ugv_nav4d/Mobility.hpp"
import_types_from "ugv_nav4d/PreComputedMotions.hpp"
import_types_from "sbpl_spline_primitives/SplinePrimitivesConfig.hpp"
import_types_from "vizkit3d_debug_drawings"
import_types_from "trajectory_follower/SubTrajectory.hpp"
task_context "PathPlanner" do
needs_configuration
# --- Properties ---
property "maxTime", "base::Time"
property "primConfig", "sbpl_spline_primitives::SplinePrimitivesConfig"
property "travConfig", "traversability_generator3d::TraversabilityConfig"
property "mobilityConfig", "ugv_nav4d::Mobility"
property "plannerConfig", "ugv_nav4d::PlannerConfig"
property("initialPatchRadius","double", 0.0)
property("dumpOnError","int", 0)
property("dumpOnSuccess","int", 0)
# --- Input ports ---
input_port "map", '/maps/grid/MLSMapSloped'
input_port "start_pose_samples", "base/samples/RigidBodyState" # should be travConfig.distToGround above the floor
# Writing one of those ports triggers the path planning, if map and start_pose_samples are given.
input_port "goal_pose_relative", "base/samples/RigidBodyState" # should be travConfig.distToGround above the floor
input_port "goal_pose_absolute", "base/samples/RigidBodyState" # should be travConfig.distToGround above the floor
# --- Output ports ---
output_port "trajectory2D", "std::vector<base/Trajectory>"
output_port "trajectory3D", "std::vector<base/Trajectory>"
output_port "detailedTrajectory2D", "std::vector<trajectory_follower/SubTrajectory>"
output_port "detailedTrajectory3D", "std::vector<trajectory_follower/SubTrajectory>"
output_port "tr_map", '/maps/grid/TraversabilityBaseMap3d'
output_port "ob_map", '/maps/grid/TraversabilityBaseMap3d'
output_port "planning_start", "base/samples/RigidBodyState"
output_port "planning_goal", "base/samples/RigidBodyState"
dynamic_output_port /^debug_ugv_nav4d/, "/boost/shared_ptr</vizkit3dDebugDrawings/CommandBuffer>"
# --- Operations ---
operation("triggerPathPlanning").
arg("start_position", "base/samples/RigidBodyState"). # should be travConfig.distToGround above the floor
arg("goal_position", "base/samples/RigidBodyState"). # should be travConfig.distToGround above the floor
returns("int").
doc("Triggers planning of a new path")
operation("findTrajectoryOutOfObstacle").
returns("bool").
doc("Triggers generation of a recovery trajectory from a START_INVALID start pose")
runtime_states :NO_MAP,
:UPDATE_MAP,
:GOT_MAP,
:GOAL_INVALID,
:START_INVALID,
:INTERNAL_ERROR,
:PLANNING,
:TRAVERSABILITY_MAP_GENERATED,
:NO_SOLUTION,
:FOUND_SOLUTION,
:RECOVERING,
:RECOVERED,
:FAILED_TO_RECOVER
periodic 0.1
end