RENyunfan / webots_mav

This is a ROS package that follows the GPL3 open source protocol, which implements webots-based UAV fixed-point control and speed control.
GNU General Public License v3.0
4 stars 0 forks source link

webots_mav

Yunfan REN

renyunfan@outlook.com

This is a ROS package that follows the GPL3 open source protocol, which implements webots-based UAV fixed-point control and speed control, wit high density point-cloud.

History

+ 2020-12-26: First commit.
+ 2021-02-19: Add velocity control.
+ 2021-02-19: Add a package joy2twist so you can control the mav with joysticks
image-20210219010914847

Build & Usage

Dependencies

sudo apt-get install ros-melodic-mavros*

If you are using zsh, you may face the * operator cannot work.

Don't worry, just add a line in~/.zshrc

setopt no_nomatch

and source it.

Build

Clone this package to your catkin_ws and catkin_make it.

mkdir -p catkin_ws/src
cd catkin_ws/src
git clone https://github.com/RENyunfan/webots_mav.git
cd ..
catkin_make

Usage

Open a terminal, type

sudo ln -s /opt/ros/melodic/lib/* /usr/local/lib    
sudo ldconfig
-Remember to run `roscore` before you start the world.

And then run your webots, select the worlds at ./worlds/uav.wbt and you can see the drone takeoff.

image-20210219010557837

ROS TOPIC

Now we have two way to control the mav:

Position control

Velocity control

Visualization

Use command below to visualize the point cloud.

roslaunch flight_controller rviz.launch

image-20210219010510995

TODO