-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Templates] Optimize how MockHW usage and README is. (#184)
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
|
||
## Running MockHW | ||
> **NOTE:** If you are not familiar with ros2_control check the docs for some [useful examples](https://control.ros.org/master/doc/ros2_control_demos/doc/index.html) and [additional information](https://control.ros.org/master/doc/getting_started/getting_started.html). | ||
To test the mock hardware with standard controllers we first start the bringup with the mock hardware enabled: | ||
``` | ||
ros2 launch dte_ea_bringup dte_ea_1000.launch.xml use_mock_hardware:=true | ||
``` | ||
In a second terminal we then publish goals for the jtc: | ||
``` | ||
ros2 launch dte_ea_bringup test_joint_trajectory_controller.launch.xml | ||
``` | ||
|
||
After stopping the goal publisher, you can deactivate `JointTrajectoryController`, and activate `ForwardPositionController`: | ||
``` | ||
ros2 control switch_controllers --activate forward_position_controller --deactivate joint_trajectory_controller | ||
``` | ||
After successful controller switch, start goal publisher for another controller: | ||
``` | ||
ros2 launch dte_ea_bringup test_forward_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
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