Giter Site home page Giter Site logo

hector-slam's Introduction

use lidar(hokuyo UTM-30LX) and PC to SLAM

1.hardware

I use ubuntu18.04,ROS melodic.
hokuyo UTM-30LX needs to connect with a 12v batteand a switch.
connect lidar and PC through USB2.0

2.download

mkdir catkin_ws
cd catkin_ws
mkdir src
cd src
git clone https://github.com/ros-drivers/urg_node.git
git clone https://github.com/tu-darmstadt-ros-pkg/hector_slam.git

3.catkin_make

cd ..
catkin_make
vim ~/.bashrc
source /home/hatcher/catkin_ws/devel/setup.bash 

"hatcher"should be replaced by your own username,check te attribute of the folder to find your username.Add this code to the bottom of ~/.bashrc

4.launch

cd src/urg_node/launch
roslaunch urg_lidar.launch
cd ..
cd ..
mkdir launch
cd launch
vim tutorial.launch

add the following code block to the file you vim

   <launch>

   <include file="$(find hector_mapping)/launch/mapping_default.launch">
    <arg name="base_frame" value="base_frame"/>
    <arg name="odom_frame" value="base_frame"/>
   </include>

   <include file="$(find hector_geotiff)/launch/geotiff_mapper.launch">
     <arg name="trajectory_source_frame_name" value="base_frame"/>
   </include>

   <node pkg="tf" type="static_transform_publisher"       name="base_frame_to_laser_broadcaster" args="0 0 0 0 0 0 base_frame laser 100"/>

   <node pkg="rviz" type="rviz" name="rviz"
     args="-d $(find hector_slam_launch)/rviz_cfg/mapping_demo.rviz"/>

   </launch>

save the file and exit

` roslaunch tutorial.launch`

with all those steps done,you could see a map on rviz,walk around in your room with lidar and PC,you could build a map of your room.

hector-slam's People

Contributors

hatcherrobotics avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.