Skip to content

[Feature]: Colors of robots are not fully applied in Viser #2792

@AlexyLegrand

Description

@AlexyLegrand

🚀 Feature

Currently, when loading robot meshes (especially .dae files), colors defined in the model are not consistently applied in the viewer.
This feature aims to ensure that all visual elements of the robot display their intended color information.

Motivation

When visualizing robots in Viser, it’s important to distinguish each robot or component clearly, especially when working with multiple instances or analyzing visual vs collision geometry.
Proper color rendering improves debugging, scene readability, and visualization quality.

Alternatives

Keep using default gray meshes which makes it harder to differentiate between robots and links.

Manually assign colors after loading which is inefficient and inconsistent.

Additional context

A preliminary fix is being tested by modifying _add_mesh_from_path() in viser_visualizer.py to correctly handle effect.diffuse and pass the color data

Before :

Image

After :

Image Image

Checklist

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions