How to make RCcar from the very beginning
cd NVIDIA-INSTALLER
sudo ./installer.sh
The initial password of the Jetson TX2 is nvidia.
- Download run file at https://developer.nvidia.com/embedded/jetpack on your host computer, not the Jetson board
chmod +x JetPack-${VERSION}.run
./JetPack-${VERSION}.run
- Network Layout - Device accesses Internet via router/switch
- Select the host nework by
ifconfig
- USB Recovery Mode: When the Jetson board is powered off, press and hold REC button and then press PWR button
- Your Jetson board will be powered on. Then connect to the same network to the host.
- Download sh files at https://github.com/jetsonhacks/installROSTX2
./installROS.sh -p ros-kinetic-desktop-full
./setupCatkinWorkspace.sh catkin_ws
- Download sh file at https://github.com/jetsonhacks/installACMModule
sudo ./installCDCACM.sh
- Reboot the Jetson board
- Install ROS package
sudo apt-get install ros-kinetic-urg-node
- Run Hokuyo node
- USB port Hokuyo(Default USB port: /dev/ttyACM0)
rosrun urg_node urg_node _serial_port:=<Hokuyo USB Port>
- Ethernet port Hokuyo
- Find Network on your toolbar and click Edit Connections
- Click Add and select Ethernet
- Click IPv4 Settings and click Manual and click Add and set the new address like below
Name Hokuyo
IP Address 192.168.1.15
Subnet Mask 255.255.255.0
Default Gateway 192.168.1.1
- Connect Hokuyo ethernet port to the Jeston board and connect to Hokuyo at Ethernet networks
rosrun urg_node urg_node _ip_address:=192.168.1.1
You need to Install Arduino and Teensyduino to compile the Teensy board.
-
Install Arduino for Linux 64bit at https://www.arduino.cc/en/Main/Donate on your notebook
-
./install.sh
-
Install Teensyduino at https://www.pjrc.com/teensy/td_download.html
-
chmod +x TeensyduinoInstall.linux64
-
./TeensyduinoInstall.linux64
During the installation, you need to set your Teensyduino path at your extracted Arduino folder.
-
sudo apt-get install ros-kinetic-rosserial-arduino
-
rosrun rosserial_arduino make_libraries.py <your Arduino path/libraries>
sudo rm -f /tmp/49-teensy.rules /etc/udev/rules.d/49-teensy.rules &&
wget -O /tmp/49-teensy.rules https://www.pjrc.com/teensy/49-teensy.rules &&
sudo install -o root -g root -m 0664 /tmp/49-teensy.rules /lib/udev/rules.d/49-teensy.rules &&
sudo service udev reload && echo "Success."
sudo cp /tmp/49-teensy.rules /etc/udev/rules.d/49-teensy.rules
- Restart Arduino and reconnect your Teensy to the notebook
- Compile and upload ~ on your Teensy
sudo apt-get install ros-kinetic-rosserial
- Install race ROS package at https://github.com/mlab-upenn/f1tenthpublic in your catkin workspace and make
rosrun rosserial_python serial_node.py <Teensy_USB_port>
You need to install RealSense library and realsense2_camera ROS package.
chmod +x librealsense.sh
sudo ./librealsense.sh
cd /usr/local/bin
./realsense_viewer
- Install realsesne2_camera ROS package at https://github.com/intel-ros/realsense in your catkin_workspace
sudo apt-get install ros-kinetic-rgbd-launch
roslaunch realsense2_camera rs_rgbd.launch
- Find Network on your toolbar and click Edit Connections
- Click Add and select Wi-Fi
- Click Wi-Fi and set the Connection name and SSID
Connection name Hotspot_name
SSID Hotspot_name
- Add the following line to /etc/modprobe.d/bcmdhd.conf:
options bcmdhd op_mode=2
- Click Connect to Hidden Wi-Fi Network and select the hotspot which you made.
After the Jetson board is connected to the hotspot, it cannot connect to any wi-fi network except for the hotspot. If you want to connect other wi-fi network, you need to delete the hotspot network and the added line at step 4.
- Connect to the hotspot of the Jetson board
- Click Edit Connections and select the hospot and click Edit
- Click IPv4 Settings and click Manual and click Add and set the new address like below
IP Address 10.42.0.X(in this example, 64)
Subnet Mask 255.255.255.0
Default Gateway 10.42.0.1
- Click save
- Add the following line to /etc/hosts:
10.42.0.1 Name_of_the_Jetson_board(for example, nvidia)
- Add the following lines to ~/.bashrc:
export ROS_MASTER_URI=http://10.42.0.1:11311
export ROS_IP=10.42.0.64
source ~/.bashrc
- Add the following line to /etc/hosts:
10.42.0.64 Name_of_the_notebook(for example, rllab)
- Add the following lines to ~/.bashrc:
export ROS_IP=10.42.0.1
export ROS_MASTER_URI=http://10.42.0.1:11311
source ~/.bashrc
Now, you can run roscore on the Jetson board and it is connected to your notebook.
sudo apt-get install ros-kinetic-navigation ros-kinetic-scan-tools ros-kinetic-hector-slam
- Download hwsetup folder in ~/catkin_ws/src
catkin_make