-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
253 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,3 @@ move_group: | |
default: true | ||
joints: | ||
- panda_finger_joint1 | ||
- panda_finger_joint2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
<!--Launch file loads the control parameters and controllers--> | ||
<launch> | ||
<arg name="moveit" default="true" /> | ||
<arg name="load_gripper" default="true"/> | ||
<!--Control arguments--> | ||
<!-- The control type used for controlling the robot (Options: Trajectory, position, effort)--> | ||
<arg name="control_type" default="trajectory"/> | ||
<arg name="moveit" default="true" doc="Start MoveIt"/> | ||
<arg name="load_gripper" default="true" doc="Load the gripper"/> | ||
<!--Control arguments--> | ||
<!-- The control type used for controlling the robot (Options: Trajectory, position, effort)--> | ||
<arg name="control_type" default="trajectory" doc="The type of control used for controlling the arm. Options: trajectory, position, effort"/> | ||
|
||
<!--Load control parameters--> | ||
<!-- Load general Gazebo control configuration values--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/gazebo_ros_control.yaml" command="load" /> | ||
<!-- Load general ros_control configuration values--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/ros_control.yaml" command="load"/> | ||
<!-- Load Moveit control configuration values--> | ||
<rosparam if="$(eval arg('moveit') and arg('load_gripper'))" file="$(find panda_gazebo)/cfg/controllers/moveit_ros_control_gripper.yaml" command="load"/> | ||
<rosparam unless="$(eval arg('moveit') and arg('load_gripper'))" file="$(find panda_gazebo)/cfg/controllers/moveit_ros_control.yaml" command="load"/> | ||
<!--Load control parameters--> | ||
<!-- Load general Gazebo control configuration values--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/gazebo_ros_control.yaml" command="load" /> | ||
<!-- Load general ros_control configuration values--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/ros_control.yaml" command="load"/> | ||
<!-- Load Moveit control configuration values--> | ||
<rosparam if="$(eval arg('moveit') and arg('load_gripper'))" file="$(find panda_gazebo)/cfg/controllers/moveit_ros_control_gripper.yaml" command="load"/> | ||
<rosparam unless="$(eval arg('moveit') and arg('load_gripper'))" file="$(find panda_gazebo)/cfg/controllers/moveit_ros_control.yaml" command="load"/> | ||
|
||
<!--Load controllers--> | ||
<!--Joint position controllers--> | ||
<group if="$(eval arg('control_type') == 'position')"> | ||
<include file="$(find panda_gazebo)/launch/load_joint_position_controllers.launch"/> | ||
<!--Load joint_trajectory controller in stopped mode | ||
<!--Load controllers--> | ||
<!--Joint position controllers--> | ||
<group if="$(eval arg('control_type') == 'position')"> | ||
<include file="$(find panda_gazebo)/launch/load_joint_position_controllers.launch"/> | ||
<!--Load joint_trajectory controller in stopped mode | ||
NOTE: This enabled us to set the initial robot pose using euclidean coordinates. | ||
--> | ||
<include file="$(find panda_gazebo)/launch/load_position_joint_trajectory_controllers.launch"> | ||
<arg name="stopped" value="true"/> | ||
</include> | ||
</group> | ||
<!--Joint effort controllers--> | ||
<group if="$(eval arg('control_type') == 'effort')"> | ||
<include file="$(find panda_gazebo)/launch/load_joint_effort_controllers.launch"/> | ||
</group> | ||
<!--Joint_trajectory controller--> | ||
<include unless="$(eval arg('control_type') == 'position')" file="$(find panda_gazebo)/launch/load_effort_joint_trajectory_controllers.launch"> | ||
<arg name="stopped" value="$(eval arg('control_type') == 'effort')"/> | ||
<include file="$(find panda_gazebo)/launch/load_position_joint_trajectory_controllers.launch"> | ||
<arg name="stopped" value="true"/> | ||
</include> | ||
</group> | ||
<!--Joint effort controllers--> | ||
<group if="$(eval arg('control_type') == 'effort')"> | ||
<include file="$(find panda_gazebo)/launch/load_joint_effort_controllers.launch"/> | ||
</group> | ||
<!--Joint_trajectory controller--> | ||
<include unless="$(eval arg('control_type') == 'position')" file="$(find panda_gazebo)/launch/load_effort_joint_trajectory_controllers.launch"> | ||
<arg name="stopped" value="$(eval arg('control_type') == 'effort')"/> | ||
</include> | ||
</launch> |
14 changes: 7 additions & 7 deletions
14
panda_gazebo/launch/load_effort_joint_trajectory_controllers.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!-- Launch file for launching the robot controllers --> | ||
<launch> | ||
<arg name="stopped" default="false"/> | ||
<arg name="stopped" default="false" doc="Spawn the controllers in stoped mode"/> | ||
|
||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/effort_joint_trajectory_controllers.yaml" command="load"/> | ||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/effort_joint_trajectory_controllers.yaml" command="load"/> | ||
|
||
<!--Load the controllers--> | ||
<arg if="$(arg stopped)" name="command_args" value="--stopped"/> | ||
<arg unless="$(arg stopped)" name="command_args" value=""/> | ||
<!--Load the controllers--> | ||
<arg if="$(arg stopped)" name="command_args" value="--stopped"/> | ||
<arg unless="$(arg stopped)" name="command_args" value=""/> | ||
|
||
<node name="effort_joint_trajectory_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_controller"/> | ||
<node name="effort_joint_trajectory_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_controller"/> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!-- Launch file for launching the robot controllers --> | ||
<launch> | ||
<arg name="stopped" default="false"/> | ||
<arg name="stopped" default="false" doc="Spawn the controllers in stoped mode"/> | ||
|
||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/joint_effort_controllers.yaml" command="load"/> | ||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/joint_effort_controllers.yaml" command="load"/> | ||
|
||
<!--Load the controllers--> | ||
<arg if="$(arg stopped)" name="command_args" value="--stopped"/> | ||
<arg unless="$(arg stopped)" name="command_args" value="" /> | ||
<node name="joint_effort_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_joint1_effort_controller panda_arm_joint2_effort_controller | ||
<!--Load the controllers--> | ||
<arg if="$(arg stopped)" name="command_args" value="--stopped"/> | ||
<arg unless="$(arg stopped)" name="command_args" value="" /> | ||
<node name="joint_effort_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_joint1_effort_controller panda_arm_joint2_effort_controller | ||
panda_arm_joint3_effort_controller panda_arm_joint4_effort_controller panda_arm_joint5_effort_controller panda_arm_joint6_effort_controller panda_arm_joint7_effort_controller"/> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!-- Launch file for launching the robot controllers --> | ||
<launch> | ||
<arg name="stopped" default="false"/> | ||
<arg name="stopped" default="false" doc="Spawn the controllers in stoped mode"/> | ||
|
||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/joint_position_controllers.yaml" command="load"/> | ||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/joint_position_controllers.yaml" command="load"/> | ||
|
||
<!--Load the controllers--> | ||
<arg if="$(arg stopped)" name="command_args" value="--stopped"/> | ||
<arg unless="$(arg stopped)" name="command_args" value=""/> | ||
<node name="joint_position_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_joint1_position_controller panda_arm_joint2_position_controller | ||
<!--Load the controllers--> | ||
<arg if="$(arg stopped)" name="command_args" value="--stopped"/> | ||
<arg unless="$(arg stopped)" name="command_args" value=""/> | ||
<node name="joint_position_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_joint1_position_controller panda_arm_joint2_position_controller | ||
panda_arm_joint3_position_controller panda_arm_joint4_position_controller panda_arm_joint5_position_controller panda_arm_joint6_position_controller panda_arm_joint7_position_controller"/> | ||
</launch> |
14 changes: 7 additions & 7 deletions
14
panda_gazebo/launch/load_position_joint_trajectory_controllers.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<!-- Launch file for launching the robot controllers --> | ||
<launch> | ||
<arg name="stopped" default="false"/> | ||
<arg name="stopped" default="false"/> | ||
|
||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/position_joint_trajectory_controllers.yaml" command="load"/> | ||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/position_joint_trajectory_controllers.yaml" command="load"/> | ||
|
||
<!--Load the controllers--> | ||
<arg if="$(arg stopped)" name="command_args" value="--stopped"/> | ||
<arg unless="$(arg stopped)" name="command_args" value=""/> | ||
<node name="position_joint_trajectory_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_controller"/> | ||
<!--Load the controllers--> | ||
<arg if="$(arg stopped)" name="command_args" value="--stopped"/> | ||
<arg unless="$(arg stopped)" name="command_args" value=""/> | ||
<node name="position_joint_trajectory_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_controller"/> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<!-- Launch file for loading RVIZ --> | ||
<launch> | ||
<!-- GDB Debug Option --> | ||
<arg name="debug" default="false"/> | ||
<arg unless="$(arg debug)" name="launch_prefix" value=""/> | ||
<arg if="$(arg debug)" name="launch_prefix" value="gdb --ex run --args"/> | ||
<!-- rviz launch arguments --> | ||
<arg name="moveit" default="false" /> | ||
<arg unless="$(arg moveit)" name="rviz_file_default" value="$(find panda_gazebo)/launch/includes/rviz/panda.rviz"/> | ||
<arg if="$(arg moveit)" name="rviz_file_default" value="$(find panda_gazebo)/launch/includes/rviz/panda_moveit.rviz"/> | ||
<arg name="rviz_file" default="$(arg rviz_file_default)"/> | ||
<arg name="command_args" value="-d $(arg rviz_file)" /> | ||
<!-- GDB Debug Option --> | ||
<arg name="debug" default="false" doc="Add gdb debug flag"/> | ||
<arg unless="$(arg debug)" name="launch_prefix" value=""/> | ||
<arg if="$(arg debug)" name="launch_prefix" value="gdb --ex run --args"/> | ||
<!-- rviz launch arguments --> | ||
<arg name="moveit" default="false" doc="Start MoveIt"/> | ||
<arg unless="$(arg moveit)" name="rviz_file_default" value="$(find panda_gazebo)/launch/includes/rviz/panda.rviz"/> | ||
<arg if="$(arg moveit)" name="rviz_file_default" value="$(find panda_gazebo)/launch/includes/rviz/panda_moveit.rviz"/> | ||
<arg name="rviz_file" default="$(arg rviz_file_default)" doc="Path to the Rviz configuration file"/> | ||
<arg name="command_args" value="-d $(arg rviz_file)" /> | ||
|
||
<!-- launch rviz --> | ||
<node name="$(anon rviz)" launch-prefix="$(arg launch_prefix)" pkg="rviz" type="rviz" respawn="false" args="$(arg command_args)" output="screen"> | ||
<rosparam command="load" file="$(find panda_moveit_config)/config/kinematics.yaml"/> | ||
</node> | ||
<!-- launch rviz --> | ||
<node name="$(anon rviz)" launch-prefix="$(arg launch_prefix)" pkg="rviz" type="rviz" respawn="false" args="$(arg command_args)" output="screen"> | ||
<rosparam command="load" file="$(find panda_moveit_config)/config/kinematics.yaml"/> | ||
</node> | ||
</launch> |
Oops, something went wrong.