RussTedrake / manipulation

Course notes for MIT manipulation class
BSD 3-Clause "New" or "Revised" License
407 stars 119 forks source link

Pass BaseFields as Fields object #228

Closed marekjg closed 1 year ago

marekjg commented 1 year ago

PointCloud requires second argument to be of type Fields. Otherwise it raises TypeError:

`TypeError: init(): incompatible constructor arguments. The following argument types are supported:

  1. pydrake.perception.PointCloud(new_size: int = 0, fields: pydrake.perception.Fields = Fields(base_fields=2))
  2. pydrake.perception.PointCloud(other: pydrake.perception.PointCloud) `

Instantiate Fields from BaseFields for rgb visualization.


This change is Reviewable