- Clone repo
mkdir catkin_ws
git clone https://github.com/resilient-autonomous-systems-lab/F1-10-human-racing.git src
cd src
git submodule update --init
- Install dependencies:
- joy
sudo apt update
sudo apt install ros-$ROS_DISTRO-joy*
- pacmod
sudo apt install apt-transport-https
sudo sh -c 'echo "deb [trusted=yes] https://s3.amazonaws.com/autonomoustuff-repo/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/autonomoustuff-public.list'
sudo apt update
sudo apt install ros-$ROS_DISTRO-pacmod
- Build and run packages
cd ..
catkin build
source ~/catkin_ws/devel/setup.bash
roslaunch global_launch racing.launch
- username: fsudssAI
- passcode: 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
The communication and software framework has been steuped
- subscribe joy commands from racing cockpit
- simply scaling steering and throttle commands
- Publish commands to MicroNole
- Create RTSP server for MicroNole's front camera
- Stream videos to jetson
Suggestions from Alpha testers:
- steering torque feedback, auto steering back to middle
- trottle command has dead zone due to the friction of the tire, try to find the minimal throttle which can move the car physically in order to remove the dead zone.
- Display the speed value and other position infromation of the car on cockpit's monitor.
- model the real deceleration situation
- add the middle lane tape (Done)
- get two another small monitors to show the right and left camera view,
- turn on back camera view when move backward
-
If you don’t have VNC viewer, please download any VNC viewer on your computer (For example: RealVNC, https://www.realvnc.com/en/connect/download/viewer/ )
-
Connect your computer to wifi “RASLab”:
Passcode: r@$Lab21
- Open your VNC viewer, access Micronole computer and Racing cockpit computer
MicroNole:
IP: 192.168.2.13
Passcode: nvidia
Racing cockpit:
IP: 192.168.2.19
Passcode: nvidia
Bug tips:
If you cannot access those computer through VNC, it is probably the IP problem. Connect those two computers to a monitor and keyboard and mouse, open terminal, type “ifconfig”, it will show the IP address:
- Open terminal in MicroNole computer, and type:
sudo -s
nvidia
roslaunch qcar racing.launch
- Open terminal in Racing cockpit computer, and type:
sudo -s
nvidia
roslaunch global_launch racing.launch
Once see the camera view, close it by clicking “x” to close the image window, then it will show a bigger window:
Bug tips:
If show “ unable to open camera” like below:
Use “ctrl+c” to stop the process, and launch it again
- Now you are ready to go, have fun!