Skip to content

Commit c9c23d1

Browse files
committed
Updated README with implementation details
1 parent 72d36b3 commit c9c23d1

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

README.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
***
6666

6767
## Install and Run (Tested in ros melodic)
68-
68+
### building package
69+
* sudo apt-get install libeigen3-dev
6970
* mkdir catkin_ws
7071
* cd catkin_ws
7172
* mkdir src
@@ -74,5 +75,17 @@
7475
* cd ..
7576
* catkin_make
7677

77-
78-
78+
### Running the Planner
79+
#### Simulation
80+
* **Terminal-1** : cd PX4-Autopilot && sudo no_sim=1 make px4_sitl_gazebo
81+
* **Terminal-2** : cd PX4-Autpilot && source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default && roslaunch gazebo_ros empty_world.launch (set your world file as required). On the gazebo window, select iris_depth_camera from the left panel.
82+
* **Terminal-3** : cd catkin_ws && roslaunch FastPlannerOctomap MappingSim.launch (give goal location using 2D Nav Goal option)
83+
* **Terminal-4** : rosrun FastPlannerOctomap Planner (or noYawPlanner if you want to plan the trajectory keeping the heading or yaw of the drone fixed). For the startOver option select either 1 or 0. Refer to the source code (FastPlannerOctomap/src/kinodynamic_astar.cpp and Planner.cpp for details). Also give the height (in metres) of the goal location when prompted.
84+
* **Terminal-5** : rosrun FastPlannerOctomap fastController (or slowController (both are same except **fastController** keeps publishing the setpoints at a fixed rate whereas **slowController** publishes the next waypoint only when the drone reaches the currently given waypoint))
85+
86+
### Running on hardware
87+
* **Terminal-1** : Launch the depth camera (I used realsense_ros package and rs_camera.launch file)
88+
* **Terminal-2** : roslaunch mavros px4.launch
89+
* **Terminal-3** : roslaunch FastPlannerOctomap MappingDrone.launch
90+
* Running the planner and controller remain the same as in simulation.
91+
* Remote Desktop is used to run rviz and give the goal location.
File renamed without changes.

src/Planner.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ void goal_pose_cb(const geometry_msgs::PoseStamped pose)
8585

8686
goalPose(0) = pose.pose.position.x;
8787
goalPose(1) = pose.pose.position.y;
88+
89+
std::cout<<"Enter the height at the goal point ";
90+
std::cin<<goalPose(2)<<std::endl;
91+
8892
goalPose(2) = 1;
8993

9094
std::cout<<"Goal Pose is ... "<<goalPose.transpose()<<std::endl;

0 commit comments

Comments
 (0)