Browse Source

Updated internal state guide for actual robot.

pull/1/head
Alan Sanchez 3 years ago
parent
commit
38d14f3433
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      internal_state_of_stretch.md

+ 7
- 2
internal_state_of_stretch.md View File

@ -1,6 +1,11 @@
## Getting the State of the Robot ## Getting the State of the Robot
Begin by starting up [Stretch in simulation](getting_started) and the [keyboard teleoperation](teleoperating_stretch.md). Then utilize the ROS command-line tool, [rostopic](http://wiki.ros.org/rostopic), to display Stretch's internal state information. For instance, to view the current state of the robot's joints, simply type the following in a terminal.
Begin by starting up the stretch driver launch file by typing the following in a terminal.
```bash
roslaunch stretch_core stretch_driver.launch
```
Then utilize the ROS command-line tool, [rostopic](http://wiki.ros.org/rostopic), to display Stretch's internal state information. For instance, to view the current state of the robot's joints, simply type the following in a terminal.
```bash ```bash
rostopic echo /joint_states -n1 rostopic echo /joint_states -n1
``` ```
@ -45,7 +50,7 @@ A powerful tool to visualize the ROS communication is the ROS [rqt_graph package
``` ```
rqt_graph rqt_graph
``` ```
![image](images/rosgraph.png)
![image](images/rqt_graph.png)
The graph allows a user to observe and affirm if topics are broadcasted to the correct nodes. This method can also be utilized to debug communication issues. The graph allows a user to observe and affirm if topics are broadcasted to the correct nodes. This method can also be utilized to debug communication issues.

Loading…
Cancel
Save