Skip to content

Commit 10e1ddd

Browse files
committed
Documentation.
1 parent 902d14d commit 10e1ddd

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

README.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -100,26 +100,14 @@ colcon test
100100

101101
## Running the Application
102102

103-
By default, the application runs with fake motors. Run the following commands on a terminal to start it up. This will also start up RViz.
103+
By default, the application runs with fake motors and a velocity controller. Thye position controller is disabled. Run the following commands on a terminal to start it up. This will also start up RViz.
104104

105105
```
106106
source install/setup.bash
107107
ros2 launch stepit_description robot.launch.py
108108
```
109109

110-
We can control the motors with a velocity controller or a position controller. Open a different terminal and run any of the following commands to spin up the fake motors.
111-
112-
```
113-
source install/setup.bash
114-
```
115-
116-
To control the position run
117-
118-
```
119-
ros2 topic pub -1 /position_controller/commands std_msgs/msg/Float64MultiArray "data: [0, 0]"
120-
```
121-
122-
To control the velocity run
110+
Open a different terminal and run any of the following commands to spin up the fake motors.
123111

124112
```
125113
ros2 topic pub -1 /velocity_controller/commands std_msgs/msg/Float64MultiArray "data: [6,-6]"
@@ -177,6 +165,12 @@ ros2 topic pub -1 /joint_trajectory_controller/joint_trajectory trajectory_msgs/
177165

178166
The trajectory is a list of waypoints, each of them containing the desired position and velocity of each joint at a given time.
179167

168+
If you change the `robot.launch.py` file and run the application with a position controller, you can use the following command instead:
169+
170+
```
171+
ros2 topic pub -1 /position_controller/commands std_msgs/msg/Float64MultiArray "data: [0, 0]"
172+
```
173+
180174
## How to run GitHub Actions locally
181175

182176
At each commit, the GitHub repository runs all available tests using [GitHub actions](https://docs.github.com/en/actions) and [Industrial CI](https://github.com/ros-industrial/industrial_ci).

0 commit comments

Comments
 (0)