diff --git a/README.md b/README.md index 74f486583050667081c3bc790d442f81a81e4e50..788e53dfce4cc9d5f373cfd79b0162da482cddf1 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ In this example, an object can be observed in the RViz planning window. This obj ### Execution of a Velocity Constraint Cartesian Trajectory -- Command: `roslaunch sample_applications simulation.launch` +- Command: `roslaunch sample_applications timed_cartesian_simulation.launch` - Expected results: - A Gazebo window to observe the executed robot motion opens - An rqt window to show log messages opens @@ -58,7 +58,7 @@ In this example, an object can be observed in the RViz planning window. This obj This is an example to use RViz and Gazebo interactively. Motions can be planned and executed from the RViz GUI. -- Command: `roslaunch panda_simulation simulation.launch` +- Command: `roslaunch sample_applications simulation.launch` - Expected results: - RViz window to control the robot - Gazebo window to observe the executed robot motion diff --git a/launch/constraint_simulation.launch b/launch/constraint_simulation.launch new file mode 100644 index 0000000000000000000000000000000000000000..238a49a20b43fc32a01eb905e0bca2d8fbb0cf5a --- /dev/null +++ b/launch/constraint_simulation.launch @@ -0,0 +1,11 @@ +<launch> + + <include file="$(find panda_simulation)/launch/simulation.launch"/> + + <include file="$(find panda_moveit_config)/launch/moveit_rviz.launch" /> + + <node name="rqt_console" pkg="rqt_console" type="rqt_console" /> + + <node pkg="sample_applications" type="SampleConstraintPlanner" name="SampleConstraintPlanner" /> + +</launch> diff --git a/launch/minimal_simulation.launch b/launch/minimal_simulation.launch new file mode 100644 index 0000000000000000000000000000000000000000..89e45937886d145e20552326aac3bcd36ec3f715 --- /dev/null +++ b/launch/minimal_simulation.launch @@ -0,0 +1,7 @@ +<launch> + + <include file="$(find panda_simulation)/launch/simulation.launch"/> + + <node pkg="sample_applications" type="MinimalSimpleMotion" name="MinimalSimpleMotion" /> + +</launch> diff --git a/launch/sample_constraint_simulation.launch b/launch/sample_constraint_simulation.launch deleted file mode 100644 index 848130f28d30e3078a472abcbce1f31ec0f6635d..0000000000000000000000000000000000000000 --- a/launch/sample_constraint_simulation.launch +++ /dev/null @@ -1,65 +0,0 @@ -<launch> - <param name="robot_description" command="$(find xacro)/xacro $(find franka_description)/robots/panda_arm_hand.urdf.xacro" /> - - <!-- GAZEBO arguments --> - <arg name="paused" default="false" /> - <arg name="use_sim_time" default="true" /> - <arg name="gui" default="true" /> - <arg name="headless" default="false" /> - <arg name="debug" default="false" /> - <arg name="load_gripper" default="true" /> - - <!--launch GAZEBO with own world configuration --> - <include file="$(find gazebo_ros)/launch/empty_world.launch"> - <!-- <arg name="world_name" value="$(find robotics_assisted_tomography)/worlds/tomography.world"/> --> - <arg name="debug" value="$(arg debug)" /> - <arg name="gui" value="$(arg gui)" /> - <arg name="paused" value="$(arg paused)" /> - <arg name="use_sim_time" value="$(arg use_sim_time)" /> - <arg name="headless" value="$(arg headless)" /> - </include> - - <node name="rqt_console" pkg="rqt_console" type="rqt_console" /> - <!-- <node name="rqt_logger_level" pkg="rqt_logger_level" type="rqt_logger_level" /> --> - - <node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -model panda" /> - <param name="box_description" command="$(find xacro)/xacro --inorder $(find sample_applications)/models/box.xacro"/> - <node name="spawn_object" pkg="gazebo_ros" type="spawn_model" args="-param box_description -urdf -model box"/> - - <!-- Load joint controller configurations from YAML file to parameter server --> - <rosparam file="$(find panda_simulation)/config/panda_control.yaml" command="load" /> - - - <!-- load the controllers --> - <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="joint_state_controller panda_arm_controller" /> - <node if="$(arg load_gripper)" name="controller_spawner_hand" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="panda_hand_controller" /> - - - <!-- convert joint states to TF transforms for rviz, etc --> - <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" respawn="true" output="screen" /> - - <include file="$(find panda_moveit_config)/launch/planning_context.launch"> - <arg name="load_robot_description" value="true" /> - <arg name="load_gripper" value="$(arg load_gripper)" /> - </include> - <include file="$(find panda_moveit_config)/launch/move_group.launch"> - <arg name="load_gripper" value="$(arg load_gripper)" /> - </include> - <group if="$(arg gui)"> - <include file="$(find panda_moveit_config)/launch/moveit_rviz.launch" /> - </group> - - <node name="joint_state_desired_publisher" pkg="topic_tools" type="relay" args="joint_states joint_states_desired" /> - - <!-- launch robot control node for moveit motion planning --> - <node pkg="panda_simulation" type="robot_control_node" name="robot_control_node" output="screen" /> - - <!-- load (not start!) custom joint position controller --> - <node pkg="controller_manager" type="spawner" name="joint_position_launcher" args="--stopped joint_position_controller" /> - - <!-- run custom node for automatic intialization --> - <node pkg="panda_simulation" type="robot_state_initializer_node" name="robot_state_initializer_node" /> - - <node pkg="sample_applications" type="SampleConstraintPlanner" name="SampleConstraintPlanner" /> - -</launch> diff --git a/launch/sample_minimal_simulation.launch b/launch/sample_minimal_simulation.launch deleted file mode 100644 index f999a387c709c08ed7a468a3efb0141b327ab890..0000000000000000000000000000000000000000 --- a/launch/sample_minimal_simulation.launch +++ /dev/null @@ -1,57 +0,0 @@ -<launch> - <param name="robot_description" command="$(find xacro)/xacro $(find franka_description)/robots/panda_arm_hand.urdf.xacro" /> - - <!-- GAZEBO arguments --> - <arg name="paused" default="false" /> - <arg name="use_sim_time" default="true" /> - <arg name="gui" default="true" /> - <arg name="headless" default="false" /> - <arg name="debug" default="false" /> - <arg name="load_gripper" default="true" /> - - <!--launch GAZEBO with own world configuration --> - <include file="$(find gazebo_ros)/launch/empty_world.launch"> - <!-- <arg name="world_name" value="$(find robotics_assisted_tomography)/worlds/tomography.world"/> --> - <arg name="debug" value="$(arg debug)" /> - <arg name="gui" value="$(arg gui)" /> - <arg name="paused" value="$(arg paused)" /> - <arg name="use_sim_time" value="$(arg use_sim_time)" /> - <arg name="headless" value="$(arg headless)" /> - </include> - - <node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -model panda" /> - - <!-- Load joint controller configurations from YAML file to parameter server --> - <rosparam file="$(find panda_simulation)/config/panda_control.yaml" command="load" /> - - - <!-- load the controllers --> - <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="joint_state_controller panda_arm_controller" /> - <node if="$(arg load_gripper)" name="controller_spawner_hand" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="panda_hand_controller" /> - - - <!-- convert joint states to TF transforms for rviz, etc --> - <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" respawn="true" output="screen" /> - - <include file="$(find panda_moveit_config)/launch/planning_context.launch"> - <arg name="load_robot_description" value="true" /> - <arg name="load_gripper" value="$(arg load_gripper)" /> - </include> - <include file="$(find panda_moveit_config)/launch/move_group.launch"> - <arg name="load_gripper" value="$(arg load_gripper)" /> - </include> - - <node name="joint_state_desired_publisher" pkg="topic_tools" type="relay" args="joint_states joint_states_desired" /> - - <!-- launch robot control node for moveit motion planning --> - <node pkg="panda_simulation" type="robot_control_node" name="robot_control_node" output="screen" /> - - <!-- load (not start!) custom joint position controller --> - <node pkg="controller_manager" type="spawner" name="joint_position_launcher" args="--stopped joint_position_controller" /> - - <!-- run custom node for automatic intialization --> - <node pkg="panda_simulation" type="robot_state_initializer_node" name="robot_state_initializer_node" /> - - <node pkg="sample_applications" type="SampleSimpleMotion" name="SampleSimpleMotion" /> - -</launch> diff --git a/launch/sample_simple_simulation.launch b/launch/sample_simple_simulation.launch deleted file mode 100644 index a9359144cb50538e6a68f465946e555c26db5273..0000000000000000000000000000000000000000 --- a/launch/sample_simple_simulation.launch +++ /dev/null @@ -1,63 +0,0 @@ -<launch> - <param name="robot_description" command="$(find xacro)/xacro $(find franka_description)/robots/panda_arm_hand.urdf.xacro" /> - - <!-- GAZEBO arguments --> - <arg name="paused" default="false" /> - <arg name="use_sim_time" default="true" /> - <arg name="gui" default="true" /> - <arg name="headless" default="false" /> - <arg name="debug" default="false" /> - <arg name="load_gripper" default="true" /> - - <!--launch GAZEBO with own world configuration --> - <include file="$(find gazebo_ros)/launch/empty_world.launch"> - <!-- <arg name="world_name" value="$(find robotics_assisted_tomography)/worlds/tomography.world"/> --> - <arg name="debug" value="$(arg debug)" /> - <arg name="gui" value="$(arg gui)" /> - <arg name="paused" value="$(arg paused)" /> - <arg name="use_sim_time" value="$(arg use_sim_time)" /> - <arg name="headless" value="$(arg headless)" /> - </include> - - <node name="rqt_console" pkg="rqt_console" type="rqt_console" /> - <!-- <node name="rqt_logger_level" pkg="rqt_logger_level" type="rqt_logger_level" /> --> - - <node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -model panda" /> - - <!-- Load joint controller configurations from YAML file to parameter server --> - <rosparam file="$(find panda_simulation)/config/panda_control.yaml" command="load" /> - - - <!-- load the controllers --> - <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="joint_state_controller panda_arm_controller" /> - <node if="$(arg load_gripper)" name="controller_spawner_hand" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="panda_hand_controller" /> - - - <!-- convert joint states to TF transforms for rviz, etc --> - <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" respawn="true" output="screen" /> - - <include file="$(find panda_moveit_config)/launch/planning_context.launch"> - <arg name="load_robot_description" value="true" /> - <arg name="load_gripper" value="$(arg load_gripper)" /> - </include> - <include file="$(find panda_moveit_config)/launch/move_group.launch"> - <arg name="load_gripper" value="$(arg load_gripper)" /> - </include> - <group if="$(arg gui)"> - <include file="$(find panda_moveit_config)/launch/moveit_rviz.launch" /> - </group> - - <node name="joint_state_desired_publisher" pkg="topic_tools" type="relay" args="joint_states joint_states_desired" /> - - <!-- launch robot control node for moveit motion planning --> - <node pkg="panda_simulation" type="robot_control_node" name="robot_control_node" output="screen" /> - - <!-- load (not start!) custom joint position controller --> - <node pkg="controller_manager" type="spawner" name="joint_position_launcher" args="--stopped joint_position_controller" /> - - <!-- run custom node for automatic intialization --> - <node pkg="panda_simulation" type="robot_state_initializer_node" name="robot_state_initializer_node" /> - - <node pkg="sample_applications" type="SampleSimpleMotion" name="SampleSimpleMotion" /> - -</launch> diff --git a/launch/sample_timed_cartesian_simulation.launch b/launch/sample_timed_cartesian_simulation.launch deleted file mode 100644 index e0186208c98dc862c983e93a81fb8f9ab803268a..0000000000000000000000000000000000000000 --- a/launch/sample_timed_cartesian_simulation.launch +++ /dev/null @@ -1,63 +0,0 @@ -<launch> - <param name="robot_description" command="$(find xacro)/xacro $(find franka_description)/robots/panda_arm_hand.urdf.xacro" /> - - <!-- GAZEBO arguments --> - <arg name="paused" default="false" /> - <arg name="use_sim_time" default="true" /> - <arg name="gui" default="true" /> - <arg name="headless" default="false" /> - <arg name="debug" default="false" /> - <arg name="load_gripper" default="true" /> - - <!--launch GAZEBO with own world configuration --> - <include file="$(find gazebo_ros)/launch/empty_world.launch"> - <!-- <arg name="world_name" value="$(find robotics_assisted_tomography)/worlds/tomography.world"/> --> - <arg name="debug" value="$(arg debug)" /> - <arg name="gui" value="$(arg gui)" /> - <arg name="paused" value="$(arg paused)" /> - <arg name="use_sim_time" value="$(arg use_sim_time)" /> - <arg name="headless" value="$(arg headless)" /> - </include> - - <node name="rqt_console" pkg="rqt_console" type="rqt_console" /> - <!-- <node name="rqt_logger_level" pkg="rqt_logger_level" type="rqt_logger_level" /> --> - - <node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -model panda" /> - - <!-- Load joint controller configurations from YAML file to parameter server --> - <rosparam file="$(find panda_simulation)/config/panda_control.yaml" command="load" /> - - - <!-- load the controllers --> - <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="joint_state_controller panda_arm_controller" /> - <node if="$(arg load_gripper)" name="controller_spawner_hand" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="panda_hand_controller" /> - - - <!-- convert joint states to TF transforms for rviz, etc --> - <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" respawn="true" output="screen" /> - - <include file="$(find panda_moveit_config)/launch/planning_context.launch"> - <arg name="load_robot_description" value="true" /> - <arg name="load_gripper" value="$(arg load_gripper)" /> - </include> - <include file="$(find panda_moveit_config)/launch/move_group.launch"> - <arg name="load_gripper" value="$(arg load_gripper)" /> - </include> - <group if="$(arg gui)"> - <include file="$(find panda_moveit_config)/launch/moveit_rviz.launch" /> - </group> - - <node name="joint_state_desired_publisher" pkg="topic_tools" type="relay" args="joint_states joint_states_desired" /> - - <!-- launch robot control node for moveit motion planning --> - <node pkg="panda_simulation" type="robot_control_node" name="robot_control_node" output="screen" /> - - <!-- load (not start!) custom joint position controller --> - <node pkg="controller_manager" type="spawner" name="joint_position_launcher" args="--stopped joint_position_controller" /> - - <!-- run custom node for automatic intialization --> - <node pkg="panda_simulation" type="robot_state_initializer_node" name="robot_state_initializer_node" /> - - <node pkg="sample_applications" type="SampleTimedCartesianPlanner" name="SampleTimedCartesianPlanner" /> - -</launch> diff --git a/launch/simple_simulation.launch b/launch/simple_simulation.launch new file mode 100644 index 0000000000000000000000000000000000000000..46e92068d77b1b4e2e6f02bc9175552800abd7b0 --- /dev/null +++ b/launch/simple_simulation.launch @@ -0,0 +1,11 @@ +<launch> + + <include file="$(find panda_simulation)/launch/simulation.launch"/> + + <include file="$(find panda_moveit_config)/launch/moveit_rviz.launch" /> + + <node name="rqt_console" pkg="rqt_console" type="rqt_console" /> + + <node pkg="sample_applications" type="SampleSimpleMotion" name="SampleSimpleMotion" /> + +</launch> diff --git a/launch/simulation.launch b/launch/simulation.launch new file mode 100644 index 0000000000000000000000000000000000000000..adb361e603591121375703bad9bda5073962aaac --- /dev/null +++ b/launch/simulation.launch @@ -0,0 +1,9 @@ +<launch> + + <include file="$(find panda_simulation)/launch/simulation.launch"/> + + <include file="$(find panda_moveit_config)/launch/moveit_rviz.launch" /> + + <node name="rqt_console" pkg="rqt_console" type="rqt_console" /> + +</launch> diff --git a/launch/timed_cartesian_simulation.launch b/launch/timed_cartesian_simulation.launch new file mode 100644 index 0000000000000000000000000000000000000000..d688ff03d7d2d42d699a847c6ead6a7bec767278 --- /dev/null +++ b/launch/timed_cartesian_simulation.launch @@ -0,0 +1,11 @@ +<launch> + + <include file="$(find panda_simulation)/launch/simulation.launch"/> + + <include file="$(find panda_moveit_config)/launch/moveit_rviz.launch" /> + + <node name="rqt_console" pkg="rqt_console" type="rqt_console" /> + + <node pkg="sample_applications" type="SampleTimedCartesianPlanner" name="SampleTimedCartesianPlanner" /> + +</launch>