-
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.
fix(control_switcher): fix control switcher
This commit fixes the control_switcher, which has been broken after #183 was merged. It also improves the controller load behavoir in the launch files.
- Loading branch information
Showing
12 changed files
with
168 additions
and
259 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
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
23 changes: 0 additions & 23 deletions
23
panda_gazebo/cfg/controllers/position_joint_trajectory_controllers.yaml
This file was deleted.
Oops, something went wrong.
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
13 changes: 7 additions & 6 deletions
13
panda_gazebo/launch/load_effort_joint_trajectory_controller.launch.xml
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,13 @@ | ||
<!--Launch file that launches a effort joint trajectory controller--> | ||
<!--Launch file that initializes, loads (and starts) the panda_arm_trajectory_controller--> | ||
<launch> | ||
<arg name="stopped" default="false" doc="Spawn the controllers in stoped mode"/> | ||
<arg name="load" default="true" doc="Load the controller"/> | ||
<arg name="start" default="false" doc="Start the controller"/> | ||
|
||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/effort_joint_trajectory_controllers.yaml" command="load"/> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/effort_joint_trajectory_controller.yaml" command="load"/> | ||
|
||
<!--Load (and start) the controller--> | ||
<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"/> | ||
<arg if="$(arg start)" name="command_args" value=""/> | ||
<arg unless="$(arg start)" name="command_args" value="--stopped"/> | ||
<node if="$(eval arg('load') or arg('start'))" name="effort_joint_trajectory_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_trajectory_controller"/> | ||
</launch> |
11 changes: 6 additions & 5 deletions
11
panda_gazebo/launch/load_joint_group_effort_controller.launch.xml
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,13 @@ | ||
<!--Launch file that launches a joint group effort controller--> | ||
<!--Launch file that initializes, loads (and starts) the panda_arm_joint_effort_controller--> | ||
<launch> | ||
<arg name="stopped" default="false" doc="Spawn the controllers in stoped mode"/> | ||
<arg name="load" default="true" doc="Load the controller"/> | ||
<arg name="start" default="false" doc="Start the controller"/> | ||
|
||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/joint_group_effort_controller.yaml" command="load"/> | ||
|
||
<!--Load (and start) the controller--> | ||
<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_joint_effort_controller"/> | ||
<arg if="$(arg start)" name="command_args" value=""/> | ||
<arg unless="$(arg start)" name="command_args" value="--stopped"/> | ||
<node if="$(eval arg('load') or arg('start'))" name="joint_effort_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_joint_effort_controller"/> | ||
</launch> |
11 changes: 6 additions & 5 deletions
11
panda_gazebo/launch/load_joint_group_position_controller.launch.xml
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,13 @@ | ||
<!--Launch file that launches a joint group position controller--> | ||
<!--Launch file that initializes, loads (and starts) the panda_arm_joint_position_controller--> | ||
<launch> | ||
<arg name="stopped" default="false" doc="Spawn the controllers in stoped mode"/> | ||
<arg name="load" default="true" doc="Load the controller"/> | ||
<arg name="start" default="false" doc="Start the controller"/> | ||
|
||
<!--Load controller parameters--> | ||
<rosparam file="$(find panda_gazebo)/cfg/controllers/joint_group_position_controller.yaml" command="load"/> | ||
|
||
<!--Load (and start) the controller--> | ||
<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_joint_position_controller"/> | ||
<arg if="$(arg start)" name="command_args" value=""/> | ||
<arg unless="$(arg start)" name="command_args" value="--stopped"/> | ||
<node if="$(eval arg('load') or arg('start'))" name="joint_position_controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg command_args) panda_arm_joint_position_controller"/> | ||
</launch> |
12 changes: 0 additions & 12 deletions
12
panda_gazebo/launch/load_position_joint_trajectory_controller.launch.xml
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.