Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rosplan_planner_interfaces with ffha_planning_interface example launch file #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions rosplan_planner_interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cmake_minimum_required(VERSION 2.8.3)
project(rosplan_planner_interfaces)
find_package(catkin REQUIRED)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no new line at end of file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please additionally rename the name of the ROS pkg from rosplan_planner_interfaces -> rosplan_planner_interfaces_demo

39 changes: 39 additions & 0 deletions rosplan_planner_interfaces/launch/ffha_planner_interface.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0"?>
<launch>

<!-- arguments -->
<arg name="node_name" default="rosplan_planner_interface" />
<arg name="use_problem_topic" default="true" />
<arg name="problem_topic" default="/rosplan_problem_interface/problem_instance" />
<arg name="planner_topic" default="planner_output" />
<arg name="domain_path" default="$(find rosplan_planning_system)/test/pddl/turtlebot/domain.pddl" />
Copy link
Contributor

@oscar-lima oscar-lima Mar 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this domain has durative actions, which are not supported neither by ff nor ffha. I suggest to change it e.g. for ROSPlan/rosplan_planning_system/test/pddl/amazon

<arg name="problem_path" default="$(find rosplan_planning_system)/test/pddl/turtlebot/problem.pddl" />
<arg name="data_path" default="$(find rosplan_planning_system)/test/pddl/turtlebot/" />
<arg name="planner_command" default="timeout 10 $(find rosplan_planning_system)/common/bin/popf DOMAIN PROBLEM" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

popf? planner command should be something like rosrun ffha ffha foo bar ... etc

<arg name="planner_interface" default="ff_planner_interface" />
<arg name="use_ffha" default="true" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please indent to match previous args


<!-- planner interface -->
<node name="$(arg node_name)" pkg="rosplan_planning_system" type="$(arg planner_interface)" respawn="false" output="screen">

<!-- general options -->
<param name="use_problem_topic" value="$(arg use_problem_topic)" />

<!-- ros topics -->
<param name="problem_topic" value="$(arg problem_topic)" />
<param name="planner_topic" value="$(arg planner_topic)" />

<!-- directory for files -->
<param name="domain_path" value="$(arg domain_path)" />
<param name="problem_path" value="$(arg problem_path)" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change from problem_path -> autom_gen_problem_path (consistency w/ ROSPlan launch files reasons...)

<param name="data_path" value="$(arg data_path)" />

<!-- to run the planner -->
<param name="planner_command" value="$(arg planner_command)" />

<!-- use this param to use either ff_planner_interface with ff planner ("use_ffha" = "false" or ffha planner ("use_ffha" = "true" -->
<param name="use_ffha" value="$(arg use_ffha)" />
Comment on lines +34 to +35
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please indent to match previous params


</node>

</launch>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no new line at end of file

17 changes: 17 additions & 0 deletions rosplan_planner_interfaces/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<package format="2">
<name>rosplan_planner_interfaces</name>
<version>1.0.0</version>
<description>rosplan_planner_interfaces repository with example launch files to use planner_interfaces</description>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rosplan_planner_interfaces is not a repository, the repo is rosplan_demos, it is a ROS pkg ; )


<maintainer email="[email protected]">Tom Creutz</maintainer>

<license>BSD</license>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extra line


<buildtool_depend>catkin</buildtool_depend>

<export>

</export>
Comment on lines +14 to +16
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if export is empty, then remove

</package>