Code Monkey home page Code Monkey logo

Comments (4)

pfankhauser avatar pfankhauser commented on May 15, 2024

Hi @artivis, thanks for sharing! I agree, a resizing method which is easier to use then extendToInclude could be implemented. Internally, the extendToInclude could call this resizing method. How would you like to use the resize method? Would you give it a new size and and leave the position the same, or something else?

from grid_map.

artivis avatar artivis commented on May 15, 2024

I am not familiar enough with the internal of grid_map_core to fully grasp the difficulty of implementing such new feature. But IMHO such resizing method would allows the user for either appending new cells on either side of the GridMap or both sides - e.g. increasing width lead to appending new cells both on the 'left' and 'right' of the GridMap and similarly for increasing the height. Increasing the full size would be something like 're-centering' the existing data on a larger grid. The desired behavior could be defined with an input argument such as an enum.

from grid_map.

laxnpander avatar laxnpander commented on May 15, 2024

Is there any update on this? Could be useful for my use-case too. An incremental resize without clearing all data sounds like a good thing to do. I personally won't need to reposition the map.

from grid_map.

zhixuan-wei avatar zhixuan-wei commented on May 15, 2024

Add a resize method is a good idea! It's better to set both size and position when resize (move and resize at the same time). More over, is it possible to set the initial value of the new cells? Thank you!

from grid_map.

Related Issues (20)

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.