Skip to content

URDF Alpha Visualization - Fully Transparent #212

@patricknaughton01

Description

@patricknaughton01

Klampt version: 0.10.1 (installed from pip today)
Python version: 3.8.20

When trying to set a link on the LEAP hand to be partially transparent, it becomes fully transparent.
URDF/meshes: leap.zip

Example code:

import time
import klampt
from klampt import vis

world_model = klampt.WorldModel()
robot_model = world_model.loadRobot("leap/robot.urdf")
robot_model.link("palm_lower").appearance().setColor(0.5, 0.5, 0.5, 0.5)
vis.add("world", world_model)
vis.show()
while vis.shown():
    time.sleep(0.05)

Result:
Image

Expected result: The palm link should be translucent not transparent.

If appearance is not modified, the visualization gives:
Image

Using robot_model.link("palm_lower").appearance().setColor(0.5, 0.5, 0.5, 1.0) gives:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions