当前位置:网站首页>Gazebo的安装&与ROS的连接
Gazebo的安装&与ROS的连接
2022-07-06 17:30:00 【Serinus】
一、安装
1.添加源
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
2.添加key
wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
3.安装Gazebo
sudo apt-get update
sudo apt-get install gazebo9
sudo apt-get install libgazebo9-dev
出现以下错误,则重新输入命令sudo apt-get install gazebo9
,直至下载成功(可能会多次出错)。
4.打开Gazebo
#输入命令
gazebo
出现以下界面则安装成功。
若报错:
VMware: vmw_ioctl_command error 无效的参数.
输入以下命令:
echo "export SVGA_VGPU10=0" >> ~/.bashrc
然后重启虚拟机。
二、与ROS连接
1.安装ROS-Gazebo接口
sudo apt install ros-melodic-gazebo-ros-pkgs ros-melodic-gazebo-msgs ros-melodic-gazebo-plugins ros-melodic-gazebo-ros-control
2.终端输入命令
roscore
#新开一个终端
rosrun gazebo_ros gazebo
出现以下界面则说明与ROS连接成功。
反之,则输入以下命令:
cd ~/.gazebo/
mkdir -p models
cd ~/.gazebo/models/
wget http://file.ncnynl.com/ros/gazebo_models.txt
wget -i gazebo_models.txt
ls model.tar.g* | xargs -n1 tar xzvf
killall gzserver
killall gzclient
之后再输入:
roscore
#新开一个终端
rosrun gazebo_ros gazebo
出现Gazebo打开界面则连接成功。
边栏推荐
- paddlehub应用出现paddle包报错的问题
- BFS realizes breadth first traversal of adjacency matrix (with examples)
- 省市区三级坐标边界数据csv转JSON
- 负载均衡性能参数如何测评?
- A brief history of deep learning (I)
- tensorflow 1.14指定gpu运行设置
- What kind of experience is it to realize real-time collaboration in jupyter
- Tensorflow 1.14 specify GPU running settings
- NEON优化:log10函数的优化案例
- Dell筆記本周期性閃屏故障
猜你喜欢
boot - prometheus-push gateway 使用
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
第三方跳转网站 出现 405 Method Not Allowed
Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
Provincial and urban level three coordinate boundary data CSV to JSON
ARM裸板调试之JTAG调试体验
【JVM调优实战100例】04——方法区调优实战(上)
Periodic flash screen failure of Dell notebook
HMM 笔记
Installation and testing of pyflink
随机推荐
In rails, when the resource creation operation fails and render: new is called, why must the URL be changed to the index URL of the resource?
from . cv2 import * ImportError: libGL. so. 1: cannot open shared object file: No such file or direc
Dell笔记本周期性闪屏故障
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
windows安装mysql8(5分钟)
Oracle: Practice of CDB restricting PDB resources
Make a simple graphical interface with Tkinter
Meet in the middle
docker 方法安装mysql
[Batch dos - cmd Command - Summary and Summary] - String search, find, Filter Commands (FIND, findstr), differentiation and Analysis of Find and findstr
Let's see through the network i/o model from beginning to end
Part VI, STM32 pulse width modulation (PWM) programming
「精致店主理人」青年创业孵化营·首期顺德场圆满结束!
THREE.AxesHelper is not a constructor
Force buckle 1037 Effective boomerang
taro3.*中使用 dva 入门级别的哦
NEON优化:关于交叉存取与反向交叉存取
golang中的Mutex原理解析
深度学习框架TF安装
The difference between spin and sleep