1 Star 0 Fork 0

Guo_Zhanyu / smartcar_ws

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Smartcar_ws

Install dependences

  • Only tested on Ubuntu 16.04 LTS + ROS kinectic, I think it is also OK on Ubuntu 18.04 LTS + ROS melodic or higher version.

  • If you are on melodic, change "kinectic" to "melodic" in the followings. The same goes for noetic or higher.

sudo apt-get install \
ros-$ROS_DISTRO-joint-state-publisher-gui \
ros-$ROS_DISTRO-controller-manager \
ros-$ROS_DISTRO-gazebo-ros-control \
ros-$ROS_DISTRO-effort-controllers \
ros-$ROS_DISTRO-joint-state-controller \
ros-$ROS_DISTRO-driver-base \
ros-$ROS_DISTRO-rtabmap-ros \
ros-$ROS_DISTRO-ackermann-msgs \
ros-$ROS_DISTRO-teb-local-planner \
ros-$ROS_DISTRO-geographic-msgs ros-$ROS_DISTRO-amcl \
ros-$ROS_DISTRO-gmapping ros-$ROS_DISTRO-map-server \
ros-$ROS_DISTRO-move-base \
ros-$ROS_DISTRO-global-planner

(Optional) Update Gazebo to 7.16

sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/gazebo-stable.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D2486D2DD83DB69272AFE98867170598AF249743
sudo apt update
sudo apt upgrade

Build

Copy model files for gazebo

Copy folders in src/racecar_gazebo/models/ into ~/.gazebo/models/.

Build pakages

cd ~
git clone https://github.com/ZhanyuGuo/smartcar_ws.git
cd smartcar_ws/
catkin_make
echo "source ~/smartcar_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

Run

roslaunch racecar_gazebo racecar.launch
  • Use WASD to control the car.

  • Input Q to quit.

Mapping

roslaunch racecar_gazebo racecar.launch
roslaunch racecar_gazebo slam_gmapping.launch

Save Map

roscd racecar_gazebo/
cd map/
bash save.bash

Navigation

roslaunch racecar_gazebo racecar_navigation.launch
  • Use 2D Pose Estimate to set car's initial pose.

  • Use 2D Nav Goal to set car's goal.

MIT License Copyright (c) 2020 Guo_ZhanYu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Smart car's simulation in gazebo. 展开 收起
C++ 等 5 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/guo_zhanyu/smartcar_ws.git
git@gitee.com:guo_zhanyu/smartcar_ws.git
guo_zhanyu
smartcar_ws
smartcar_ws
master

搜索帮助