Code Monkey home page Code Monkey logo

Comments (1)

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

@AngelosSE yes, that seems like a reasonable thing to try

You could also try the discretize_lane method, e.g.:

from nuscenes.map_expansion.map_api import NuScenesMap
from nuscenes.map_expansion import arcline_path_utils


nusc_map = NuScenesMap(
    dataroot='/data/sets/nuscenes', 
    map_name ='singapore-onenorth',
)

some_lane = nusc_map.lane[10]

some_lane_record = nusc_map.get_arcline_path(some_lane['token'])
poses = arcline_path_utils.discretize_lane(some_lane_record, resolution_meters=1)

print(poses)

This would return a list of xyz co-ordinates which might be easier for you to work with, in determining the travel direction of a lane:

[(236.48801542477293, 1485.8349894063658, -2.040013106158251),
 (236.0574527765101, 1484.982929915326, -2.0373685387930633),
 (235.62914495996398, 1484.129734753223, -2.0347239714278755),
 ...
 (227.08060252674574, 1467.0582241612608, -2.057082189381357)]

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.