Hello,
I’m currently getting used to working with the dataset, and am trying to project the 3D LiDAR points to a 2D plane using Matplotlib.
When I am drawing the bounding boxes of instances, I cannot seem to get the appropriate colour:
# get binary file path of LIDAR data. annotation tokens can be passed to visualise instances
data_path, boxes, _ = nusc.get_sample_data(lidar, selected_anntokens=[ann_token])
…before:
# draw instance boxes over the rendered LiDAR data
for box in boxes:
c = np.array(nusc_explorer.get_color(box.name)) / 255.0
box.render(ax, colors=(c, c, c))
…which results in:
TypeError: get_color() missing 1 required positional argument: 'category_name'
‘box.name’ is providing the string: ‘human.pedestrian.adult’, which should be fine, right? I don’t understand what is going wrong here.
Help would be very much appreciated. Can provide additional code/details if required.
Many thanks