rerun2023 commited on
Commit
2be73c4
·
verified ·
1 Parent(s): d4da016

fix `rerun_visualize.py`

Browse files
Files changed (1) hide show
  1. rerun_visualize.py +3 -4
rerun_visualize.py CHANGED
@@ -72,7 +72,7 @@ class RerunURDF():
72
  mat3x3=joint_tf.rotation,
73
  axis_length=0.01))
74
 
75
- relative_tf = frame_tf * joint_tf.inverse()
76
  mesh.apply_transform(relative_tf.homogeneous)
77
  rr.log(f'urdf_{self.name}/{parent_joint_name}/{frame_name}',
78
  rr.Mesh3D(
@@ -83,7 +83,7 @@ class RerunURDF():
83
  albedo_texture=None,
84
  vertex_texcoords=None,
85
  ),
86
- timeless=True)
87
 
88
  def update(self, configuration = None):
89
  self.robot.framesForwardKinematics(self.Tpose if configuration is None else configuration)
@@ -106,8 +106,7 @@ if __name__ == "__main__":
106
  args = parser.parse_args()
107
 
108
  rr.init('Reviz', spawn=True)
109
- rr.log('', rr.ViewCoordinates.RIGHT_HAND_Z_UP, timeless=True)
110
- rr.set_time_sequence('frame_nr', 0)
111
 
112
  file_name = args.file_name
113
  robot_type = args.robot_type
 
72
  mat3x3=joint_tf.rotation,
73
  axis_length=0.01))
74
 
75
+ relative_tf = joint_tf.inverse() * frame_tf
76
  mesh.apply_transform(relative_tf.homogeneous)
77
  rr.log(f'urdf_{self.name}/{parent_joint_name}/{frame_name}',
78
  rr.Mesh3D(
 
83
  albedo_texture=None,
84
  vertex_texcoords=None,
85
  ),
86
+ static=True)
87
 
88
  def update(self, configuration = None):
89
  self.robot.framesForwardKinematics(self.Tpose if configuration is None else configuration)
 
106
  args = parser.parse_args()
107
 
108
  rr.init('Reviz', spawn=True)
109
+ rr.log('', rr.ViewCoordinates.RIGHT_HAND_Z_UP, static=True)
 
110
 
111
  file_name = args.file_name
112
  robot_type = args.robot_type