当前位置:网站首页>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打开界面则连接成功。
边栏推荐
- 负载均衡性能参数如何测评?
- boot - prometheus-push gateway 使用
- HMM notes
- Provincial and urban level three coordinate boundary data CSV to JSON
- 系统休眠文件可以删除吗 系统休眠文件怎么删除
- 斗地主游戏的案例开发
- 《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
- Failed to successfully launch or connect to a child MSBuild. exe process. Verify that the MSBuild. exe
- 腾讯云 WebShell 体验
- 深度学习简史(一)
猜你喜欢
城联优品入股浩柏国际进军国际资本市场,已完成第一步
Building a dream in the digital era, the Xi'an station of the city chain science and Technology Strategy Summit ended smoothly
BFS realizes breadth first traversal of adjacency matrix (with examples)
Lldp compatible CDP function configuration
pytorch之数据类型tensor
第七篇,STM32串口通信编程
Telerik UI 2022 R2 SP1 Retail-Not Crack
Do you understand this patch of the interface control devaxpress WinForms skin editor?
[HFCTF2020]BabyUpload session解析引擎
ESP Arduino (IV) PWM waveform control output
随机推荐
golang中的Mutex原理解析
Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which
Part VI, STM32 pulse width modulation (PWM) programming
[牛客] B-完全平方数
[batch dos-cmd command - summary and summary] - jump, cycle, condition commands (goto, errorlevel, if, for [read, segment, extract string]), CMD command error summary, CMD error
golang中的atomic,以及CAS操作
详解OpenCV的矩阵规范化函数normalize()【范围化矩阵的范数或值范围(归一化处理)】,并附NORM_MINMAX情况下的示例代码
Analysis of mutex principle in golang
线段树(SegmentTree)
Boot - Prometheus push gateway use
[batch dos-cmd command - summary and summary] - string search, search, and filter commands (find, findstr), and the difference and discrimination between find and findstr
Maidong Internet won the bid of Beijing life insurance to boost customers' brand value
The cost of returning tables in MySQL
《安富莱嵌入式周报》第272期:2022.06.27--2022.07.03
第四篇,STM32中断控制编程
【JVM调优实战100例】05——方法区调优实战(下)
[HFCTF2020]BabyUpload session解析引擎
Mongodb client operation (mongorepository)
[case sharing] basic function configuration of network loop detection
Informatics Olympiad YBT 1171: factors of large integers | 1.6 13: factors of large integers