Running the above code, your terminal shell should look like this.
Control R1mini using a keyboard
To control the R1mini using a keyboard, run the below code in a new terminal shell.
.
Running the above code, your terminal shell should display the above instructions. These are instructions to control your R1mini with a keyboard
Debugging Tools
Checking rostopic
Viewing rostopics are one way to debug in ROS. A topic in ROS can simply be thought of as a specific channel of data to which ros nodes (think specific functions for roles like motor control or keyboard input) can publish or subscribe to. Displaying rostopics easily help us see what functions are running.
Run the below command to see a full list of currently-running rostopics.
For more detailed information, you can enter the below line to the command line.
Viewing rqt_graph
An rqt_graph is used to visualize active relationships between ros nodes and ros topics.
rqt_graph
Here is one example of an rqt_graph GUI. Ovals represent ros nodes and the arrows connecting ros nodes are ros topics.