From 761935563acbf28ac9213312221ab253c725e5cb Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Wed, 20 Oct 2021 21:46:45 +0200 Subject: [PATCH 1/3] Add demo_gazebo.launch using franka_gazebo This commit adds demo_gazebo.launch using the gazebo simulation of the franka_gazebo package Additionally, the virtual_joint is removed from the move group definition. --- config/panda_arm.xacro | 125 +++++++++++++++++----------------- config/ros_controllers.yaml | 20 ++++++ launch/demo_gazebo.launch | 52 ++++++++++++++ launch/ros_controllers.launch | 10 +++ package.xml | 10 ++- 5 files changed, 153 insertions(+), 64 deletions(-) create mode 100644 config/ros_controllers.yaml create mode 100644 launch/demo_gazebo.launch create mode 100644 launch/ros_controllers.launch diff --git a/config/panda_arm.xacro b/config/panda_arm.xacro index 4a4e9f2..1ab41c5 100644 --- a/config/panda_arm.xacro +++ b/config/panda_arm.xacro @@ -1,64 +1,67 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/ros_controllers.yaml b/config/ros_controllers.yaml new file mode 100644 index 0000000..a4e9561 --- /dev/null +++ b/config/ros_controllers.yaml @@ -0,0 +1,20 @@ +# Simulation settings for using moveit_sim_controllers +moveit_sim_hw_interface: + joint_model_group: panda_arm + joint_model_group_pose: ready +# Settings for ros_control_boilerplate control loop +generic_hw_control_loop: + loop_hz: 300 + cycle_time_error_threshold: 0.01 +# Settings for ros_control hardware interface +hardware_interface: + joints: + - panda_joint1 + - panda_joint2 + - panda_joint3 + - panda_joint4 + - panda_joint5 + - panda_joint6 + - panda_joint7 + - panda_finger_joint1 + sim_control_mode: 1 # 0: position, 1: velocity diff --git a/launch/demo_gazebo.launch b/launch/demo_gazebo.launch new file mode 100644 index 0000000..d3096c7 --- /dev/null +++ b/launch/demo_gazebo.launch @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/launch/ros_controllers.launch b/launch/ros_controllers.launch new file mode 100644 index 0000000..bb223d3 --- /dev/null +++ b/launch/ros_controllers.launch @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/package.xml b/package.xml index f7b834d..9a71ac3 100644 --- a/package.xml +++ b/package.xml @@ -25,8 +25,12 @@ joint_state_publisher_gui robot_state_publisher xacro - topic_tools - + moveit_visual_tools + + + + + From 458e66ffec65b10acc90ae844cc87c177f82f776 Mon Sep 17 00:00:00 2001 From: tahsinkose Date: Thu, 21 Oct 2021 17:21:37 +0300 Subject: [PATCH 2/3] Fix parameters. --- launch/demo_gazebo.launch | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/launch/demo_gazebo.launch b/launch/demo_gazebo.launch index d3096c7..a59b1a3 100644 --- a/launch/demo_gazebo.launch +++ b/launch/demo_gazebo.launch @@ -23,10 +23,11 @@ + - + @@ -35,12 +36,10 @@ - - From aebdd0afaf9c8fcb623802225b0c989caac206d0 Mon Sep 17 00:00:00 2001 From: tahsinkose Date: Thu, 21 Oct 2021 17:22:01 +0300 Subject: [PATCH 3/3] Do not load robot description if it is not explicitly asked. --- launch/planning_context.launch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launch/planning_context.launch b/launch/planning_context.launch index 3485d67..ba3b7cb 100644 --- a/launch/planning_context.launch +++ b/launch/planning_context.launch @@ -8,7 +8,7 @@ - +