fix `rerun_visualize.py`
Browse files- 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 =
|
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 |
-
|
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,
|
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
|