Skip to content

Commit

Permalink
Update the idyntree-model-view-meshcat accordingly to b37c71c
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi committed Oct 25, 2022
1 parent b37c71c commit 3f4d57f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindings/python/scripts/idyntree-model-view-meshcat.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ def main():
description="Display the model in the meshcat visualizer."
)
parser.add_argument("--model", "-m", type=str, required=True, help="Model path.")
parser.add_argument("--alpha", "-a", type=float, required=False, help="Alpha channel of the model.")

args = parser.parse_args()

# Load the visualizer
viz = MeshcatVisualizer()
viz.load_model_from_file(args.model)
viz.load_model_from_file(args.model, color=args.alpha)
viz.open()

run = True
Expand Down

0 comments on commit 3f4d57f

Please sign in to comment.