File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 22
33All notable changes to this project will be documented in this file.
44
5+ ## Unreleased
6+
7+ ### Added
8+
9+ - Frame selector in URDF frame display example
10+ - README: Conda installation instructions
11+
512## [ 1.4.1] - 2023/2/28
613
714### Added
Original file line number Diff line number Diff line change 2626"""
2727
2828import argparse
29+ import time
2930
3031import meshcat_shapes
3132import numpy as np
3233from meshcat import transformations
3334from pinocchio .visualize import MeshcatVisualizer
35+
3436from robot_descriptions .loaders .pinocchio import load_robot_description
3537
3638if __name__ == "__main__" :
3739 parser = argparse .ArgumentParser (description = __doc__ )
3840 parser .add_argument ("name" , help = "name of the robot description" )
41+ parser .add_argument (
42+ "--only" ,
43+ help = "only display the frame with this name" ,
44+ )
3945 parser .add_argument (
4046 "--frame-scale" ,
4147 type = float ,
5662 viewer = robot .viz .viewer
5763
5864 for frame in robot .model .frames :
59- if frame .name == "universe" :
65+ if frame .name == "universe" or ( args . only and frame . name != args . only ) :
6066 continue
6167 handle = viewer ["pinocchio" ]["visuals" ][f"{ frame .name } _0" ]
6268 meshcat_shapes .frame (
You can’t perform that action at this time.
0 commit comments