-
Power-Up AND Log-In
-
Start wheel_controller_node and drive_controller_node
cd ~/catkin_ws
source devel/setup.bash
roslaunch rpi drive_controller.launch
-
Login another terminal
-
Start teleop_keyboard_node
cd ~/catkin_ws
source devel/setup.bash
rosrun rpi teleop_keyboard_node
This node is responsible for controlling the individual speed of the two wheels of the differential robot drive system.
/rpi/speed_1
(std_msgs/Float64)
Set speed of the left motor in m/s.
/rpi/speed_2
(std_msgs/Float64)
Set speed of the right motor in m/s.
/rpi/actual_speed_1
(std_msgs/Float64)
Actual speed of the left motor in m/s.
/rpi/actual_speed_2
(std_msgs/Float64)
Actual speed of the right motor in m/s.
None
None
This node provides target wheel speeds for the wheel_controller_node based on the desired linear and angular speed.
/rpi/cmd_vel
(geometry_msgs/Twist)
Linear (m/s) and angular (DEG/s) speed of the robot.
/rpi/actual_speed_1
(std_msgs/Float64)
Actual speed of the left motor in m/s.
/rpi/actual_speed_2
(std_msgs/Float64)
Actual speed of the right motor in m/s.
/rpi/speed_1
(std_msgs/Float64)
Set speed of the left motor in m/s.
/rpi/speed_2
(std_msgs/Float64)
Set speed of the right motor in m/s.
None
None
This node allows to control the robot via keyboard by sending geometry_msgs/Twist Messages to the /rpi/cmd_vel
topic upon the reception of certain keyboard inputs.
None
/rpi/cmd_vel
(geometry_msgs/Twist)
Linear (m/s) and angular (DEG/s) speed of the robot.
None
None
This node allows for sending the desired target speed for the left and the right motor to the wheel_controller_node. This node is for testing only.
None
/rpi/speed_1
(std_msgs/Float64)
Set speed of the left motor in m/s.
/rpi/speed_2
(std_msgs/Float64)
Set speed of the right motor in m/s.
None
None
User: pi Pass: raspberry
- Scan for available WiFi networks
sudo iwlist wlan0 scan
- Edit /etc/wpa_supplicant/wpa_supplicant.conf
sudo vim /etc/wpa_supplicant/wpa_supplicant.conf
- Go to the bottom of the file and add the following:
network={
ssid="The_ESSID_from_earlier"
psk="Your_wifi_password"
}
- Restart the WiFi adapter
sudo ifdown wlan0
sudo ifup wlan0
- Verify that a connection was erstablished
ifconfig wlan0