Code Monkey home page Code Monkey logo

Comments (5)

whyekit-motional avatar whyekit-motional commented on August 17, 2024

@emilyemliyM an example of how to transform a point cloud from some time tn to t0 can be found here:

trans_matrix = reduce(np.dot, [ref_from_car, car_from_global, global_from_car, car_from_current])

Modifying it to work for transforming a point cloud from from tn to some other time tm should be relatively trivial - in particular, you would need to get ref_from_car and car_from_global from tm (rather than t0)

from nuscenes-devkit.

emilyemliyM avatar emilyemliyM commented on August 17, 2024

@emilyemliyM an example of how to transform a point cloud from some time tn to t0 can be found here:

trans_matrix = reduce(np.dot, [ref_from_car, car_from_global, global_from_car, car_from_current])

Modifying it to work for transforming a point cloud from from tn to some other time tm should be relatively trivial - in particular, you would need to get ref_from_car and car_from_global from tm (rather than t0)

Hi, really thanks to the reply.

I have another question about the param in the setting:
what's the meaning of the "ref_chan"? Does it mean "Lidar" string or a token , or anything else? How to use it?
Could I have an example of the use of the function?

image

from nuscenes-devkit.

whyekit-motional avatar whyekit-motional commented on August 17, 2024

@emilyemliyM the input for ref_chan would be the sensor name (as a str) you want to map the point clouds to (e.g. LIDAR_TOP, RADAR_FRONT)

You can see an example usage here:

pc, times = LidarPointCloud.from_file_multisweep(self.nusc, sample_rec, chan, ref_chan,

from nuscenes-devkit.

emilyemliyM avatar emilyemliyM commented on August 17, 2024

@emilyemliyM an example of how to transform a point cloud from some time tn to t0 can be found here:

trans_matrix = reduce(np.dot, [ref_from_car, car_from_global, global_from_car, car_from_current])

Modifying it to work for transforming a point cloud from from tn to some other time tm should be relatively trivial - in particular, you would need to get ref_from_car and car_from_global from tm (rather than t0)

Thanks for the reply!
I want to know that does this method work for two keyframes of point cloud data as well? I want to conduct the coordinate transform between two key frames.

Thanks !

from nuscenes-devkit.

whyekit-motional avatar whyekit-motional commented on August 17, 2024

Yes, it should work for two keyframes, as long as your provide the appropriate transformation matrices

from nuscenes-devkit.

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.