ROS tutorials for NCTU course in spring 2021.
roscore
rosrun ros_basic publisher_node.py
Name | Pin | Pin name |
---|---|---|
VCC | 12 | GPIO 18 |
GND | 14 | Ground |
rosrun ros_basic led.py
Name | Pin | Pin name |
---|---|---|
3.3V | 2 | 3.3V |
RED | 11 | GPIO 17 |
GREEN | 13 | GPIO 27 |
BLUE | 15 | GPIO 22 |
rosrun ros_basic pi_subscriber.py
rosrun ros_basic publish_teleop.py
Name | Pin | Pin name |
---|---|---|
VCC | 22 | GPIO 18 |
GND | 9 | Ground |
TRIG | 13 | GPIO 27 |
ECHO | 15 | GPIO 22 |
rosrun ros_basic hc_sr04.py
Name | Pin | Pin name |
---|---|---|
3.3V | 2 | 3.3V |
VCC | 11 | GPIO 17 |
GND | 9 | Ground |
rosrun ros_basic button.py