Ubuntu安装gazebo_ros_pkgs(ROS1)

1、查看Gazebo的安装位置:

which gzserver
which gzclient

2、安装gazebo_ros_pkgs(命令)

//ROS Lunar:
sudo apt-get install ros-lunar-gazebo-ros-pkgs ros-lunar-gazebo-ros-control
//ROS Kinetic:
sudo apt-get install ros-kinetic-gazebo-ros-pkgs ros-kinetic-gazebo-ros-control
//ROS Indigo:
sudo apt-get install ros-indigo-gazebo-ros-pkgs ros-indigo-gazebo-ros-control

3、添加工作空间到.bashrc

echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc

4、使用Install from Source (on Ubuntu) 安装gazebo_ros_pkgs

#ROS Kinetic

//Kinetic is using the gazebo 7.x series, start by installing it:

    1、sudo apt-get install -y libgazebo7-dev

//Download the source code from the gazebo_ros_pkgs github repository:

    2、cd ~/catkin_ws/src
    3、git clone https://github.com/ros-simulation/gazebo_ros_pkgs.git -b kinetic-devel

//Check for any missing dependencies using rosdep:

    4、rosdep update
    5、rosdep check --from-paths . --ignore-src --rosdistro kinetic

//You can automatically install the missing dependencies using rosdep via debian 
 install:

    rosdep install --from-paths . --ignore-src --rosdistro kinetic -y

//Now jump to the build the gazebo_ros_pkgs section.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值