Real-World Cars - Software
Vive Tracking
- Turn on at least 4 lighthouses at the power adapter (check green LED)
- Turn on fixed reference tracker and then plug in power (after green LED)
- Place glasses in center on some box, facing the ceiling (press blue button on connector box if no green light)
- Turn on tracker on the car: First unplug its power connection (either tracking OR charging), then press its button until green LED lights up. A flashing red LED denotes the need for charging.
- Login on freicar-base
- Start standalone Steam as a background process
- Start SteamVR → check 4 lighthouses, glasses, reference tracker and the number of car-wise trackers
Network Setup
freicar-base
The following describes sets up the ROS master and explains how to publish tracked cars.
- Optionally, check that the ROS_IP and ROS_MASTER_URI are set:
echo $ROS_IP → 192.168.140.70
echo $ROS_MASTER_URI → http://192.168.140.70:11311
- Start a
roscore
- Start GT tracking:
rosrun freicar_vr_tracking vive_tracking.py
- Restart if a new car was added
- IDs of trackers are set in:
freicar_vr_tracking/param/reserved_trackers.yaml
Student Computers
This lets you view published topics wrt. the ROS master that is running on freicar-base.
- Start/attach to docker:
fcc
/fct
export ROS_MASTER_URI=http://192.168.140.70:11311
export ROS_IP=IP_OF_STUD_COMPUTER
(checkifconfig
)- Check with
rostopic list
that you can connect to the master running on freicar-base
FreiCARs
The following details how to authenticate cars in the ROS network for listening and publishing.
- SSH from a student computer to a car via
ssh freicar@freicarX (name of car)
. If no SSH connection is possible, please check that the car is connected to the SSID freicar_5g (connect a monitor, keyboard, and mouse) - Wifi: freicar_5g, password: *, Router IP: 192.168.140.10 (admin/admin)
- Start/attach to docker:
fcc
/fct
(optionally start a tmux session before) export ROS_MASTER_URI=http://192.168.140.70:11311
export ROS_IP=192.168.140.XX
(different for every car, e.g. .36 for freicar6 -> useifconfig
on car) (ROS_MASTER_URI is necessary for listening, ROS_IP for publishing a topic)
Test Setup
- Always remember to use a terminal where ROS_MASTER_URI and ROS_IP have been exported before for the following.
- Launch sensors on car
roslaunch freicar_launch start_sensors.launch name:=freicar_X
(X is the number of your car) - Start
rviz
on student computer, add respective topics and check for validity.