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.
+ 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
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.
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
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.
Now we have two way to control the mav:
/mavros/setpoint_position/local
geometry_msgs::PoseStamped
z
should not be less than 0./mavros/setpoint_velocity/cmd_vel
geometry_msgs::TwistStamped
3m/s
, I will open a parameter to set it in a moment.Use command below to visualize the point cloud.
roslaunch flight_controller rviz.launch