当前位置:网站首页>Installation of gazebo & connection with ROS
Installation of gazebo & connection with ROS
2022-07-07 01:16:00 【Serinus】
One 、 install
1. Add source
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. add to key
wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -

3. install Gazebo
sudo apt-get update
sudo apt-get install gazebo9
sudo apt-get install libgazebo9-dev

The following error occurred , Then re-enter the command sudo apt-get install gazebo9, Until the download is successful ( There may be multiple errors ).
4. open Gazebo
# Enter the command
gazebo
If the following interface appears, the installation is successful .
If an error :
VMware: vmw_ioctl_command error Invalid parameter .
Enter the following command :
echo "export SVGA_VGPU10=0" >> ~/.bashrc
Then restart the virtual machine .
Two 、 And ROS Connect
1. install ROS-Gazebo Interface
sudo apt install ros-melodic-gazebo-ros-pkgs ros-melodic-gazebo-msgs ros-melodic-gazebo-plugins ros-melodic-gazebo-ros-control
2. Terminal input command
roscore
# Open a new terminal
rosrun gazebo_ros gazebo

The following interface will explain and ROS Successful connection .
conversely , Then enter the following command :
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
Then type :
roscore
# Open a new terminal
rosrun gazebo_ros gazebo
appear Gazebo Open the interface and the connection succeeds .
边栏推荐
猜你喜欢
随机推荐
Taro中添加小程序 “lazyCodeLoading“: “requiredComponents“,
Periodic flash screen failure of Dell notebook
Dell笔记本周期性闪屏故障
批量获取中国所有行政区域经边界纬度坐标(到县区级别)
Install Firefox browser on raspberry pie /arm device
力扣1037. 有效的回旋镖
[JS] obtain the N days before and after the current time or the n months before and after the current time (hour, minute, second, year, month, day)
JTAG principle of arm bare board debugging
Part VI, STM32 pulse width modulation (PWM) programming
【案例分享】网络环路检测基本功能配置
How do novices get started and learn PostgreSQL?
迈动互联中标北京人寿保险,助推客户提升品牌价值
第五篇,STM32系统定时器和通用定时器编程
Oracle:CDB限制PDB资源实战
Case development of landlord fighting game
mysql: error while loading shared libraries: libtinfo. so. 5: cannot open shared object file: No such
Pytorch中torch和torchvision的安装
界面控件DevExpress WinForms皮肤编辑器的这个补丁,你了解了吗?
A brief history of deep learning (I)
Informatics Orsay Ibn YBT 1172: find the factorial of n within 10000 | 1.6 14: find the factorial of n within 10000







