Skip to content
Snippets Groups Projects
Unverified Commit 4c2d2d8c authored by Robert Haschke's avatar Robert Haschke Committed by GitHub
Browse files

demo_chomp.launch: reuse demo.launch (#57)

* demo_chomp.launch: reuse demo.launch
* new planning pipeline ompl-chomp
parent 41b5fe73
No related branches found
No related tags found
No related merge requests found
<launch> <launch>
<include file="$(find panda_moveit_config)/launch/demo.launch">
<!-- By default, we do not start a database (it can be large) --> <arg name="pipeline" value="chomp"/>
<arg name="db" default="false" />
<!-- Allow user to specify database location -->
<arg name="db_path" default="$(find panda_moveit_config)/default_warehouse_mongo_db" />
<!-- By default, we are not in debug mode -->
<arg name="debug" default="false" />
<arg name="rviz_tutorial" default="false" />
<!--
By default, hide joint_state_publisher's GUI
MoveIt!'s "demo" mode replaces the real robot driver with the joint_state_publisher.
The latter one maintains and publishes the current joint configuration of the simulated robot.
It also provides a GUI to move the simulated robot around "manually".
This corresponds to moving around the real robot without the use of MoveIt.
-->
<arg name="use_gui" default="false" />
<!-- Load the URDF, SRDF and other .yaml configuration files on the param server -->
<include file="$(find panda_moveit_config)/launch/planning_context.launch">
<arg name="load_robot_description" value="true"/>
</include> </include>
<!-- If needed, broadcast static tf for robot root -->
<!-- We do not have a robot connected, so publish fake joint states -->
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
<param name="/use_gui" value="$(arg use_gui)"/>
<rosparam param="/source_list">[/move_group/fake_controller_joint_states]</rosparam>
</node>
<node name="joint_state_desired_publisher" pkg="topic_tools" type="relay" args="joint_states joint_states_desired" />
<!-- Given the published joint states, publish tf for the robot links -->
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" respawn="true" output="screen" />
<!-- Run the main MoveIt executable without trajectory execution (we do not have controllers configured by default) -->
<include file="$(find panda_moveit_config)/launch/move_group.launch">
<arg name="allow_trajectory_execution" value="true"/>
<arg name="fake_execution" value="true"/>
<arg name="info" value="true"/>
<arg name="debug" value="$(arg debug)"/>
<arg name="pipeline" value="chomp" />
</include>
<!-- Run Rviz and load the default config to see the state of the move_group node -->
<include file="$(find panda_moveit_config)/launch/moveit_rviz.launch">
<arg name="rviz_tutorial" value="$(arg rviz_tutorial)"/>
<arg name="debug" value="$(arg debug)"/>
</include>
<!-- If database loading was enabled, start mongodb as well -->
<include file="$(find panda_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)">
<arg name="moveit_warehouse_database_path" value="$(arg db_path)"/>
</include>
</launch> </launch>
<launch>
<!-- load OMPL planning pipeline, but add the CHOMP planning adapter. -->
<include file="$(find panda_moveit_config)/launch/ompl_planning_pipeline.launch.xml">
<arg name="planning_adapters" value="
default_planner_request_adapters/FixWorkspaceBounds
default_planner_request_adapters/FixStartStateBounds
default_planner_request_adapters/FixStartStateCollision
default_planner_request_adapters/FixStartStatePathConstraints
chomp/OptimizerAdapter
default_planner_request_adapters/AddTimeParameterization"
/>
</include>
<!-- load chomp config -->
<rosparam command="load" file="$(find panda_moveit_config)/config/chomp_planning.yaml"/>
<!-- override trajectory_initialization_method -->
<param name="trajectory_initialization_method" value="fillTrajectory"/>
</launch>
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!-- The request adapters (plugins) used when planning with OMPL. <!-- The request adapters (plugins) used when planning with OMPL.
ORDER MATTERS --> ORDER MATTERS -->
<arg name="planning_adapters" value=" <arg name="planning_adapters" default="
default_planner_request_adapters/FixWorkspaceBounds default_planner_request_adapters/FixWorkspaceBounds
default_planner_request_adapters/FixStartStateBounds default_planner_request_adapters/FixStartStateBounds
default_planner_request_adapters/FixStartStateCollision default_planner_request_adapters/FixStartStateCollision
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment