Skip to content

Commit d92c523

Browse files
committed
Minor formatting fixes
1 parent 8fecf23 commit d92c523

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

drcsim_ros_python/tutorial.md

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,26 @@ We're using the ROS topics demonstrated in the [previous tutorial that used C++]
1414

1515
If you haven't already, create a ros directory in your home directory and add it to your `$ROS_PACKAGE_PATH`. From the command line
1616

17-
mkdir ~/ros
18-
echo "export ROS_PACKAGE_PATH=~/ros:\$ROS_PACKAGE_PATH" >> ~/.bashrc
19-
source ~/.bashrc
17+
~~~
18+
mkdir ~/ros
19+
echo "export ROS_PACKAGE_PATH=~/ros:\$ROS_PACKAGE_PATH" >> ~/.bashrc
20+
source ~/.bashrc
21+
~~~
2022

2123
Use [roscreate-pkg](http://ros.org/wiki/roscreate) to create a ROS package for this tutorial, depending on a ROS package called `osrf_msgs`:
2224

23-
cd ~/ros
24-
roscreate-pkg tutorial_atlas_control osrf_msgs
25+
~~~
26+
cd ~/ros
27+
roscreate-pkg tutorial_atlas_control osrf_msgs
28+
~~~
2529

2630
## The Code
2731

2832
Move to the directory `tutorial_atlas_control`
2933

30-
roscd tutorial_atlas_control
34+
~~~
35+
roscd tutorial_atlas_control
36+
~~~
3137

3238
Copy the file [`traj_yaml.py`](http://bitbucket.org/osrf/gazebo_tutorials/raw/default/drcsim_ros_python/files/traj_yaml.py) into it:
3339

@@ -39,32 +45,38 @@ Then download the [Traj_data2.yaml](http://bitbucket.org/osrf/gazebo_tutorials/r
3945

4046
If you haven't brought down your previous instance of the DRC simulator, kill the process by pressing Control + C in it's terminal. Now launch the robot
4147

42-
roslaunch drcsim_gazebo atlas.launch
43-
44-
**For drcsim < 3.1.0**: The package and launch file had a different name:
45-
46-
roslaunch atlas_utils atlas.launch
48+
~~~
49+
roslaunch drcsim_gazebo atlas.launch
50+
~~~
4751

4852
You should see the Atlas standing in an empty world. It will likely sway back and forth; that's an artifact of the controllers holding position on the joints.
4953

5054
In a separate terminal, put Atlas in User mode:
5155

52-
rostopic pub /atlas/control_mode std_msgs/String -- "User"
56+
~~~
57+
rostopic pub /atlas/control_mode std_msgs/String -- "User"
58+
~~~
5359

5460
In a separate terminal, run the node that you just built:
5561

56-
roscd tutorial_atlas_control
57-
python traj_yaml.py Traj_data2.yaml step_and_fall
62+
~~~
63+
roscd tutorial_atlas_control
64+
python traj_yaml.py Traj_data2.yaml step_and_fall
65+
~~~
5866

5967
You should see the robot try to take a step with its right leg and then fall down.
6068

6169
Here is another trajectory, since it's football season:
6270

63-
python traj_yaml.py Traj_data2.yaml touchdown
71+
~~~
72+
python traj_yaml.py Traj_data2.yaml touchdown
73+
~~~
6474

6575
Then, just for fun:
6676

67-
python traj_yaml.py Traj_data2.yaml touchdown_exhausted
77+
~~~
78+
python traj_yaml.py Traj_data2.yaml touchdown_exhausted
79+
~~~
6880

6981
### Restarting
7082

0 commit comments

Comments
 (0)