https://github.com/px4/avx_ros_package
Contains installation and test scripts for the TX2 on the AVx board
https://github.com/px4/avx_ros_package
Last synced: 9 months ago
JSON representation
Contains installation and test scripts for the TX2 on the AVx board
- Host: GitHub
- URL: https://github.com/px4/avx_ros_package
- Owner: PX4
- License: bsd-3-clause
- Created: 2018-10-23T16:45:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-13T14:39:06.000Z (over 7 years ago)
- Last Synced: 2025-01-13T14:32:47.550Z (over 1 year ago)
- Language: Shell
- Size: 48.8 KB
- Stars: 0
- Watchers: 21
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# avx_ros_package
Flash Ubuntu image onto TX2.
Enable Universe software repositories from the Apt repository list.
```bash
sudo vim /etc/apt/sources.list
```
Uncomment the following 4 lines from the file.
```bash
deb http://ports.ubuntu.com/ubuntu-ports/ xenial universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial universe
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates universe
```
Update package manager.
```bash
sudo apt-get update
```
Launch ubuntu_ros_mavros.sh script to install ros and mavros on the TX2.
```bash
git clone https://github.com/PX4/avx_ros_package.git
cd avx_ros_package.git/scripts/
vim ubuntu_ros_mavros.sh
```
Please change under Address to your IP Address in the file at
```bash
[UdpEndpoint UserRemote]
Mode = Normal
Address = 192.168.1.XXX
Port = 14550
```
```bash
chmod +x ubuntu_ros_mavros.sh
./ubuntu_ros_mavros.sh
```
For the usual setup Pixhawk -> Companion Computer -> QGC you need to have a serial port between pixhawk and companion computer, a udp port to localhost for mavros running on the companion computer and a udp port to your laptop/tablet IP where you will run QGC.
```bash
sudo vim /etc/rc.local
mavlink-routerd &
```
Add the ```mavlink-routerd &``` before ```exit 0```.
Also the Dronecode SDK can run on the TX2 to communicate with the flight controller.
Install Dronecode SDK and takeoff_land example by launching the following script.
```bash
chmod +x ubuntu_dronecode_sdk.sh
./ubuntu_dronecode_sdk.sh
```
Launch Dronecode SDK example.
```bash
cd ~/DroneCore/example/takeoff_land/build
./takeoff_and_land
```