Skip to content

Commit

Permalink
Merge pull request #126 from Bckempa/survey_optic_planner
Browse files Browse the repository at this point in the history
Add OPTIC and trey planners and bug fix plansys2
  • Loading branch information
Bckempa authored Jan 29, 2024
2 parents 7d7852b + ce626a8 commit e624cd4
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@
path = astrobee/survey_manager/survey_dependencies/popf
url = https://github.com/Bckempa/popf.git
branch = noetic-devel

[submodule "optic_planner"]
path = astrobee/survey_manager/survey_dependencies/optic_planner
url = https://github.com/Bckempa/optic_planner.git
branch = noetic-devel
1 change: 1 addition & 0 deletions astrobee/survey_manager/survey_dependencies/optic_planner
Submodule optic_planner added at 3175c4
2 changes: 1 addition & 1 deletion astrobee/survey_manager/survey_planner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ install(TARGETS
stereo_action_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

foreach( dir pddl launch data)
foreach( dir params pddl launch data)
install( DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir} )
endforeach(dir)
55 changes: 55 additions & 0 deletions astrobee/survey_manager/survey_planner/launch/optic_survey.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0"?>
<launch>

<!-- arguments -->
<arg name="model_file" default="$(find survey_planner)/pddl/domain_survey.pddl"/>
<arg name="namespace" default="" />
<arg name="params_file" default="$(find survey_planner)/params/plansys2_optic_params.yaml" />

<!-- true: There is a lifecycle management node for the Lifecycles nodes. If false, the nodes start on their own -->
<param name="lifecycle_enabled" value="true"/>

<!-- Domain Expert -->
<include file="$(find plansys2_domain_expert)/launch/domain_expert.launch">
<arg name="model_file" value="$(arg model_file)"/>
<arg name="namespace" value="$(arg namespace)"/>
<arg name="params_file" value="$(arg params_file)"/>
</include>

<!-- Problem Expert -->
<include file="$(find plansys2_problem_expert)/launch/problem_expert.launch">
<arg name="model_file" value="$(arg model_file)"/>
<arg name="namespace" value="$(arg namespace)"/>
<arg name="params_file" value="$(arg params_file)"/>
</include>

<!-- Planner -->
<include file="$(find plansys2_planner)/launch/planner.launch">
<arg name="namespace" value="$(arg namespace)"/>
<arg name="params_file" value="$(arg params_file)"/>
</include>

<!-- Executor -->
<include file="$(find plansys2_executor)/launch/executor.launch">
<arg name="namespace" value="$(arg namespace)"/>
<arg name="params_file" value="$(arg params_file)"/>
</include>

<!-- Manager -->
<node name="lifecycle_manager_node" pkg="plansys2_lifecycle_manager" type="lifecycle_manager_node" output="screen">
</node>

<!-- Actions -->
<node name="move_action_node" pkg="survey_planner" type="move_action_node" output="screen">
</node>
<node name="dock_action_node" pkg="survey_planner" type="dock_action_node" output="screen">
</node>
<node name="undock_action_node" pkg="survey_planner" type="undock_action_node" output="screen">
</node>
<node name="panorama_action_node" pkg="survey_planner" type="panorama_action_node" output="screen">
</node>
<node name="stereo_action_node" pkg="survey_planner" type="stereo_action_node" output="screen">
</node>

</launch>

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- arguments -->
<arg name="model_file" default="$(find survey_planner)/pddl/domain_survey.pddl"/>
<arg name="namespace" default="" />
<arg name="params_file" default="$(find plansys2_bringup)/params/plansys2_params.yaml" />
<arg name="params_file" default="$(find survey_planner)/params/plansys2_trey_params.yaml" />

<!-- true: There is a lifecycle management node for the Lifecycles nodes. If false, the nodes start on their own -->
<param name="lifecycle_enabled" value="true"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
planner:

plan_solver_plugins: ["OPTIC"]
OPTIC:
plugin: "plansys2/OPTICPlanSolver"
arguments: "-N"
TREY:
plugin: "plansys2/OPTICPlanSolver"
command: "rosrun survey_planner plan_survey"
POPF:
plugin: "plansys2/POPFPlanSolver"
TFD:
plugin: "plansys2/TFDPlanSolver"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
planner:

plan_solver_plugins: ["TREY"]
OPTIC:
plugin: "plansys2/OPTICPlanSolver"
arguments: "-N"
TREY:
plugin: "plansys2/OPTICPlanSolver"
command: "rosrun survey_planner plan_survey"
POPF:
plugin: "plansys2/POPFPlanSolver"
TFD:
plugin: "plansys2/TFDPlanSolver"

0 comments on commit e624cd4

Please sign in to comment.