# smarc_simulations
Simulation environments for smarc scenarios
# Setting up gazebo and uuv_simulator
## Install
Follow the instructions on http://gazebosim.org/tutorials?tut=install_ubuntu and
in https://github.com/uuvsimulator/uuv_simulator/wiki#using-uuv-simulator-with-ros-kinetic-and-gazebo-7 .
Then clone https://github.com/smarc-project/uuv_simulator.git in your catkin workspace.
Compile it with `catkin_make`, followed by `catkin_make install`.
Then install the following packages:
```
sudo apt-get install ros-kinetic-ros-control ros-kinetic-gazebo-ros-control ros-kinetic-joint-state-controller
```
## Environment variables
Add the following lines to your `.bashrc`, replace `GAZEBO_PREFIX` to be the path to your catkin workspace.
```
source /usr/share/gazebo-7/setup.sh
export GAZEBO_MODEL_DATABASE_URI=http://gazebosim.org/models
export GAZEBO_PREFIX=$HOME/path/to/your/catkin_ws/install
export GAZEBO_RESOURCE_PATH=${GAZEBO_PREFIX}/share/uuv_descriptions:${GAZEBO_RESOURCE_PATH}
export GAZEBO_MODEL_PATH=${GAZEBO_PREFIX}/share/uuv_descriptions/worlds:${GAZEBO_MODEL_PATH}
export GAZEBO_PLUGIN_PATH=${GAZEBO_PREFIX}/lib:${GAZEBO_PREFIX}/lib/x86_64-linux-gnu:${GAZEBO_PLUGIN_PATH}
```
# Running a basic simulation
## Launching
Open a new tab, don't forget to source your catkin workspace every time you do this.
Then launch gazebo with an pipeline world using:
```
roslaunch smarc_worlds pipe_following.launch
```
Then we open a new tab and launch a simulation of the small smarc auv:
```
roslaunch smarc_auvs upload_example_auv.launch
```
## Playing around
You can fire the thruster of the AUV by running the following command, feed it a value between 0-100:
```
rostopic pub /example_auv/thrusters/0/input uuv_gazebo_r_plugins_msgs/FloatStamped "header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: ''
data: 100.0"
```
Check `rostopic list` and try to control e.g. the fins.
## Rviz
In rviz, you can get the camera image on `/example_auv/example_auv/camera/camera_image`
and the left and right side scans on `example_auv/sss_left` and `example_auv/sss_right`, respectively.
Rviz configs that display a lot of information for the different auvs are saved in the `smarc_auvs/rviz` folder.
To use them, click `File > Open Config` in rviz and navigate to the `.rviz` file that you want to use.
没有合适的资源?快使用搜索试试~ 我知道了~
smarc场景的模拟环境___下载.zip
共114个文件
jpg:15个
dae:11个
launch:9个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 153 浏览量
2023-04-16
20:24:45
上传
评论
收藏 27.83MB ZIP 举报
温馨提示
smarc场景的模拟环境___下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
smarc场景的模拟环境___下载.zip (114个子文件)
PopulationIntensities.cc 20KB
UnderwaterSonarSensor.cc 19KB
UnderwaterSonarPlugin.cc 4KB
RegisterUnderwaterSonarSensor.cc 3KB
SemanticMultiRayShape.cc 3KB
model.config 555B
model.config 532B
model.config 271B
model.config 269B
model.config 255B
model.config 238B
gazebo_ros_image_sonar.cpp 38KB
gazebo_ros_underwater_sonar_ray.cpp 10KB
gazebo_ros_underwater_sonar.cpp 10KB
sidescan_waterfall_image_node.cpp 7KB
combine_waterfalls_node.cpp 5KB
skytteren.dae 6.83MB
heightmap_pipe.dae 5.6MB
Romulus.dae 4.72MB
heightmap.dae 4.01MB
skytteren_repaired.dae 633KB
Propeller.dae 479KB
sea_surface_1000m_x_1000m.dae 475KB
pipeline.dae 453KB
duck.dae 328KB
Fin.dae 56KB
large_rock.dae 20KB
wave_normals.dds 256KB
SimpleWaves.frag 2KB
.gitignore 126B
gazebo_ros_image_sonar.h 8KB
gazebo_ros_underwater_sonar_ray.h 5KB
gazebo_ros_underwater_sonar.h 3KB
PopulationIntensities.hh 12KB
UnderwaterSonarSensor.hh 12KB
UnderwaterSonarPlugin.hh 3KB
UnderwaterSonarSensorPrivate.hh 3KB
SemanticMultiRayShape.hh 3KB
PopulationIntensitiesPrv.hh 3KB
water_water_0093_01.jpg 5.3MB
water_water_0051_01.jpg 3.74MB
soil_sand_0045_01.jpg 3.57MB
soil_sand_0045_01.jpg 3.57MB
water_water_0046_01.jpg 3.55MB
water_water_0076_03_s.jpg 1.4MB
rust.jpg 70KB
clouds.jpg 12KB
clouds_rt.jpg 12KB
clouds_bk.jpg 12KB
clouds_fr.jpg 12KB
clouds_lf.jpg 12KB
clouds_up.jpg 4KB
clouds_dn.jpg 4KB
tag36_11_00000.jpg 2KB
pipe_following.launch 2KB
upload_example_auv.launch 2KB
sonar_intensities.launch 2KB
random_rocks.launch 2KB
ekf_localization_tests.launch 2KB
skytteren.launch 1KB
pool_world.launch 998B
waterfall.launch 745B
smarc_simulated_comms.launch 425B
LICENSE 3KB
water.material 2KB
waves.material 1KB
sand.material 348B
fiducials.material 280B
README.md 2KB
README.md 1KB
SonarEntities.msg 18B
duckCM.png 32KB
duckCM.png 32KB
waves.program 131B
spawn_model.py 14KB
comms_master.py 4KB
comms_tester.py 2KB
example_auv.rviz 10KB
example_auv.rviz 10KB
model.sdf 5KB
model.sdf 3KB
model.sdf 3KB
model.sdf 2KB
model.sdf 2KB
model.sdf 2KB
model.sdf 2KB
model.sdf 2KB
large_rock_collision.stl 375KB
pipeline_collision.stl 319KB
CMakeLists.txt 8KB
CMakeLists.txt 8KB
CMakeLists.txt 7KB
CMakeLists.txt 7KB
CMakeLists.txt 7KB
License and source for textures.txt 865B
CMakeLists.txt 782B
License and source for textures.txt 568B
License and source for textures.txt 167B
SimpleWaves.vert 3KB
pool.world 17KB
共 114 条
- 1
- 2
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功