入门usv

This simulator uses a combination of multiple physics packages to build a test environment for Unmanned Surface Vehicles (USV). We’ll use it, at first, to develop and test control and trajectory strategies for USVs. but it can be easily adapted to other applications. It contains multiple robot models such as propeled boats(rudder boat, differential boat, airboat) and sailboat. Boats are affected by waves, wind and water currents. To do that, we curently use UWsim for water surface modeling, we also load HEC-RAS output files with water speed of river and channel simulations. We simulate wind current with OpenFoam simulator. All those features alow to disturb the movement of boats in a realistic way.

Prerequisites
You need Ubuntu Linux 16.04 since the current version of this simulator uses ROS Kinetic. To install ROS Kinetic and some additional packages, run the following commands:

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full ros-kinetic-control-* ros-kinetic-osg-markers ros-kinetic-move-base -y
sudo rosdep init
rosdep update
sudo echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

Now run the following commands to download the dependencies of usv_sim:

sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential python-rosdep python-wxtools python-lxml python-pathlib python-h5py python-scipy python-geolinks python-gdal -y
sudo apt-get install libfftw3-* libxml++2.6-* libsdl-image1.2-dev libsdl-dev -y

Installing
To run the packages of usv_sim you need a catkin workspace. If you already have a workspace you may jump to the Downloading and installing subsection.

Creating a catkin workspace
source /opt/ros/kinetic/setup.bash
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/
catkin_make
Downloading and installing usv_sim stack
Clone the usv_sim repository in the src folder of your catkin workspace:

cd ~/catkin_ws/src
git clone https://github.com/disaster-robotics-proalertas/usv_sim_lsa.git
cd usv_sim_lsa
git submodule init
git submodule update

Run the instalation script:

cd ~/catkin_ws/src/usv_sim_lsa
./install_usv_sim

Compile the stack:

cd ~/catkin_ws/
catkin_make_isolated --install
source install_isolated/setup.bash

To run a scenario:

roslaunch usv_sim airboat_scenario1.launch parse:=true
roslaunch usv_sim airboat_scenario1.launch parse:=false

The simulation might take some time to initialize if you’re launching gazebo for the first time. If the simulation dosen’t starts you should close it, run gazebo separately (command gazebo in the terminal), wait for gazebo to open (it is downloading some models), close gazebo and then try to run the scenario again.

Make sure your graphic card driver is up to date.

Running the tests
On main folder of usv_sim_lsa, there are some scripts that run testing scenarios on Diluvio’s River in Porto Alegre, Brazil. Each scenario is configured to test the boat control on executing some common maneuveurs (see image below). Besides that, you can run the following scripts:

scenario1: boat should navigate through two lines of buoys.
scenario2: boat should avoid colision with 3 buoys.
scenario3: boat should execute zigzag to cover an area.
To execute water simulation to those scenarios, you should run the script named waterCurrentDiluvio

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
usv_simulator是用于无人水下航行器仿真的软件平台。无人水下航行器是一种能够在水下进行自主任务的机器人,包括探测海底、进行水下作业、收集环境信息等。usv_simulator的作用是通过虚拟环境和仿真模型,模拟无人水下航行器在不同场景下的运动和行为,以实现对其性能和效果的测试和评估。 usv_simulator的主要功能包括环境创建、运动控制和传感器模拟。首先,用户可以在软件平台上创建不同类型的水下环境,如海洋、湖泊或水下遗址等,设置水下障碍物和地形,模拟真实世界中的水下情境。其次,用户可以通过控制界面对无人水下航行器进行导航和控制,实现其在虚拟环境中的运动和任务执行。最后,usv_simulator可以模拟各种传感器的工作,如声纳、相机和水下测量设备,为无人水下航行器提供环境感知能力。 usv_simulator的应用领域十分广泛。一方面,它可以用于无人水下航行器的研发和测试,帮助开发者验证算法、优化控制策略和系统设计,从而提高无人水下航行器的性能和功能。另一方面,usv_simulator还可以应用于教育培训领域,帮助学生和研究人员学习水下机器人技术,提升他们的仿真和实验能力。 总的来说,usv_simulator是一款功能强大的无人水下航行器仿真软件,能够为无人水下航行器的研发和教育培训提供便捷而有效的平台。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值