当前位置:网站首页>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打开界面则连接成功。
边栏推荐
- Part VI, STM32 pulse width modulation (PWM) programming
- Fastdfs data migration operation record
- Installation and testing of pyflink
- Openjudge noi 1.7 10: simple password
- Oracle: Practice of CDB restricting PDB resources
- 阿里云中mysql数据库被攻击了,最终数据找回来了
- 重上吹麻滩——段芝堂创始人翟立冬游记
- Return to blowing marshland -- travel notes of zhailidong, founder of duanzhitang
- Can the system hibernation file be deleted? How to delete the system hibernation file
- 第五篇,STM32系统定时器和通用定时器编程
猜你喜欢
Telerik UI 2022 R2 SP1 Retail-Not Crack
Let's see through the network i/o model from beginning to end
Segmenttree
Tensorflow GPU installation
Building a dream in the digital era, the Xi'an station of the city chain science and Technology Strategy Summit ended smoothly
第五篇,STM32系统定时器和通用定时器编程
Deeply explore the compilation and pile insertion technology (IV. ASM exploration)
LLDP兼容CDP功能配置
力扣1037. 有效的回旋镖
The MySQL database in Alibaba cloud was attacked, and finally the data was found
随机推荐
做微服务研发工程师的一年来的总结
资产安全问题或制约加密行业发展 风控+合规成为平台破局关键
[HFCTF2020]BabyUpload session解析引擎
Data type of pytorch tensor
斗地主游戏的案例开发
Installation and testing of pyflink
NEON优化:性能优化常见问题QA
自旋与sleep的区别
接收用户输入,身高BMI体重指数检测小业务入门案例
如何管理分布式团队?
Case development of landlord fighting game
The printf function is realized through the serial port, and the serial port data reception is realized by interrupt
ARM裸板调试之JTAG原理
第五篇,STM32系统定时器和通用定时器编程
Mongodb client operation (mongorepository)
Build your own website (17)
The cost of returning tables in MySQL
Taro2.* 小程序配置分享微信朋友圈
深度学习框架TF安装
Informatics Orsay Ibn YBT 1172: find the factorial of n within 10000 | 1.6 14: find the factorial of n within 10000