Giter VIP home page Giter VIP logo

map_visualizer's Introduction

map_visualizer package

๐ŸŽฏ About

This package provides the visualize the map in ROS2 using MarkerArray and Occupancygrid map types. There is two node osm_visualizer node and occupancy_pub node in this package.

๐Ÿš€ Technologies

The following tools were used in this project:

  • ROS Tested on ROS2 Foxy distro.

โœ… Requirements

Before starting ๐Ÿ, you need to have ROS2(Foxy) and install some ros2 packages.

sudo rosdep init

rosdep update

rosdep install --from-paths src -y --ignore-src

sudo apt-get install ros-<distro>-lanelet2

E.g: sudo apt-get install ros-foxy-lanelet2

1 - osm_visualizer node

โœจ Features

osm_visualizer node visualizes the .osm(OpenStreetMap) file into RViz MarkerArray.

๐Ÿ How to Run

ros2 run map_visualizer osm_visualizer --ros-args -p map_path:=path/to/map.osm

or ros2 launch map_visualizer osm_visualizer.launch.xml you need to change map path

or ros2 launch map_visualizer osm_visualizer.launch.py you need to change map path

Subscribed Topics

  • None

Published Topics

  • /hd_map (visualization_msgs/msg/marker_array) : visualization messages for RViz
  • /array (std_msgs/msg/float64_multi_array) : the left and right bounds points of the map lanelet layers for occupancy_pub node

Parameters

Name Type Description Default value
map_path std::string lanelet2 map path change on launch file
enable_inc_path_points bool flag to increment points of left and rigth boundry's linestrings true
interval std::string interval to increment left and right boundry points with linear interpolation for occupancygrid map 0.5

2 - occupancy_pub node

โœจ Features

occupancy_pub node turn the osm data provided by osm_visualizer node into nav_msgs/msg/occupancy_grid.

๐Ÿ How to Run

ros2 run map_visualizer occupancy_pub

Subscribed Topics

  • /array (std_msgs/msg/float64_multi_array) : the left and right bounds points of the map lanelet layers
  • /initialpose (geometry_msgs/msg/pose_with_covariance_stamped) : RViz initial pose message to calculate initial location on grid
  • /goal_pose (geometry_msgs/msg/pose_stamped) : RViz goal pose message to calculate goal location on grid

Published Topics

  • /occupancy_grid (nav_msgs/msg/occupancy_grid) : occupancy grid messages for RViz
  • /obsx (std_msgs/msg/float64_multi_array) : x index of obstacles on grid for A* package
  • /obsy (std_msgs/msg/float64_multi_array) : y index of obstacles on grid for A* package
  • /gridsize (std_msgs/msg/float64_multi_array) : gridsize information message for A* package

Parameters

  • None

๐Ÿ“ License

This project is under license from MIT. For more details, see the LICENSE file.

ย 

Back to top

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.