You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've compiled the latest version of pinocchio from source and the latest meshcat-python package version. The parts of my robot are made of .obj meshes that are scaled to size. When I create a MeshcatVisualizer and load the URDF file, the .obj meshes are displayed, however, the scale seems to be ignored.
Spending some time debugging this, it looks like setting the transform
in MeshcatVisualizer::updatePlacements is causing the scaling property to be reset. When I apply the scaling once more like this:
# Update viewer configuration.
self.viewer[visual_name].set_transform(T)
if visual_name in self.scales:
self.viewer[visual_name].set_property("scale", self.scales[visual_name])
then the scale shows up properly in Meshcat. Here, self.scales is a new dict that stores the scaling values when the objects are created in MeshcatVisualizer::loadViewerGeometryObject.
Does this ring a bell for anyone?
The text was updated successfully, but these errors were encountered:
I've found the same problem. In my case I'm using negative scale to do symmetric meshes. The negative scale was applied in the case of other visualizer, such as GepettoVisualizer. However, in MeshcatVisualizer it was not considered.
I have not found the code snippet you are mentioning, @jviereck (probably for different versions). However, I believe that something should be changed in updatePlacements. I've done some progress but not solved the problem yet.
I've compiled the latest version of pinocchio from source and the latest meshcat-python package version. The parts of my robot are made of .obj meshes that are scaled to size. When I create a
MeshcatVisualizer
and load the URDF file, the .obj meshes are displayed, however, the scale seems to be ignored.Spending some time debugging this, it looks like setting the transform
in
MeshcatVisualizer::updatePlacements
is causing the scaling property to be reset. When I apply the scaling once more like this:then the scale shows up properly in Meshcat. Here,
self.scales
is a new dict that stores the scaling values when the objects are created inMeshcatVisualizer::loadViewerGeometryObject
.Does this ring a bell for anyone?
The text was updated successfully, but these errors were encountered: