Coder Social home page Coder Social logo

ROS costmap about mppi_numba HOT 5 CLOSED

Leedk3 avatar Leedk3 commented on September 4, 2024
ROS costmap

from mppi_numba.

Comments (5)

xiaoyi-cai avatar xiaoyi-cai commented on September 4, 2024 1

Hi there, I think you have many options. Typical ones are:

Note that grid_map follows a different convention compared to the ROS occupancy grid message, so you have to use grid_map's conversion functions accordingly.

You just have to write a ROS subscriber to those maps and pass the maps to the planner.

from mppi_numba.

brilianputraa avatar brilianputraa commented on September 4, 2024 1

Hi there, I think you have many options. Typical ones are:

Note that grid_map follows a different convention compared to the ROS occupancy grid message, so you have to use grid_map's conversion functions accordingly.

You just have to write a ROS subscriber to those maps and pass the maps to the planner.

Thank you for your prompt response and recommendations!, okay I will take a look into it

from mppi_numba.

xiaoyi-cai-acl avatar xiaoyi-cai-acl commented on September 4, 2024

Hi, thank you for your interest!

There were some preliminary efforts in interfacing with ROS Costmap2D, but our experience suggested that the overhead in converting Costmap2D in cpp and porting the data to python via pybind11 was quite significantly (at least compared to the performance gain due to GPU). Therefore, we did not pursue that costmap2d option further.

However, if you do want to go down this route, an option is to use pybind11 to initialize a MPPI_Numba object in a cpp node. Then:

  1. Convert costmap2d objects in your cpp node to corresponding pybind arrays (e.g., lethal, unknown, etc.)
  2. Write a new python function for MPPI_Numba to process the pybind arrays.

Alternatively, you can have a cpp node that publishes a custom message that contains relevant info from costmap2d (e.g., obstacles and unknown cells). The message can then be subscribed by a python node that holds the MPPI_Numba object. This should be easier to do.

from mppi_numba.

Leedk3 avatar Leedk3 commented on September 4, 2024

Oh, I am looking into the alternative method by generating costmap on the other packages.
Thank you for your fast reply!
You can close this issue then.

from mppi_numba.

brilianputraa avatar brilianputraa commented on September 4, 2024

Oh, I am looking into the alternative method by generating costmap on the other packages. Thank you for your fast reply! You can close this issue then.

Hi may I know what package you used for generating the costmap?

from mppi_numba.

Related Issues (3)

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.