Changes
Page history
Update Run With Real Vehicle
authored
Sep 14, 2019
by
shibohan
Hide whitespace changes
Inline
Side-by-side
Run-With-Real-Vehicle.md
View page @
16112c11
...
@@ -62,19 +62,18 @@ Example:
...
@@ -62,19 +62,18 @@ Example:
roslaunch mavros apm.launch fcu_url:
=
tcp://localhost gcs_url:
=
udp://@
roslaunch mavros apm.launch fcu_url:
=
tcp://localhost gcs_url:
=
udp://@
```
```
## Launch ROS node
source you setup.bash
**Clear the area**
**Clear the area**
## Launch Realsense Node [As required]
## Source setup.bash
source you setup.bash
```
shell
```
shell
roslaunch realsense2_camera rs_camera.launc
h
source
<WORKSPACE_PATH>/devel/setup.bas
h
```
```
## Launch
YDLidar Node [As required]
## Launch
Supporting ROS Nodes
```
shell
```
shell
roslaunch ydlidar lidar.launch
cd
<droneoa_ros>/launch
roslaunch step1.launch
```
```
**Note:**
For first time launch, run the following script to create a device name for ydlidar.
**Note:**
For first time launch, run the following script to create a device name for ydlidar.
```
shell
```
shell
...
@@ -84,14 +83,16 @@ sudo sh initenv.sh
...
@@ -84,14 +83,16 @@ sudo sh initenv.sh
```
```
You may need to disconnect and reconnect the camera.
You may need to disconnect and reconnect the camera.
## Launch ROS
n
ode
## Launch
droneoa
ROS
N
ode
source you setup.bash
Launch droneoa_ros node, which accept command input.
```
shell
```
shell
source
<WORKSPACE_PATH>/devel/setup.bas
h
cd
<droneoa_ros>/launc
h
ros
run droneoa_ros droneoa_ros
ros
launch step2.launch
```
```
## Simple Summary:
## [Alternative] Launch Node Manually:
Using provided step1 step2 launch file is recommended.
Open up a terminal with 4 tabs:
Open up a terminal with 4 tabs:
-
tab1: SITL instance
-
tab1: SITL instance
```
shell
```
shell
...
@@ -103,11 +104,15 @@ sim_vehicle.py -v ArduCopter --console --map
...
@@ -103,11 +104,15 @@ sim_vehicle.py -v ArduCopter --console --map
cd
<launch file folder>
cd
<launch file folder>
roslaunch apm.launch
roslaunch apm.launch
```
```
-
tab3: realsense node
-
tab3: realsense node
[Can be disabled in PDN file]
```
shell
```
shell
roslaunch realsense2_camera rs_camera.launch
roslaunch realsense2_camera rs_camera.launch
```
```
-
tab4:
droneoa_ros node
-
tab4:
lidar scanner node [Can be disabled in PDN file]
```
shell
```
shell
ros
run droneoa_ros droneoa_ros
ros
launch ydlidar lidar.launch
```
```
-
tab5: droneoa_ros node
```
shell
rosrun droneoa_ros droneoa_ros
```
\ No newline at end of file