@@ -46,12 +46,12 @@ def __init__(
46
46
self .randomize_pose = randomize_pose # TODO: This isn't set up anymore... fix
47
47
self .init_joint_angles = (
48
48
(
49
- - np .pi / 2 ,
49
+ - np .pi / 2 + np . pi / 4 ,
50
50
- np .pi * 2 / 3 ,
51
51
np .pi * 2 / 3 ,
52
52
- np .pi ,
53
53
- np .pi / 2 ,
54
- np . pi ,
54
+ 0 ,
55
55
)
56
56
if init_joint_angles is None
57
57
else init_joint_angles
@@ -112,7 +112,8 @@ def _generate_robot_urdf(self) -> None:
112
112
self .robot_conf .update (part_conf )
113
113
else :
114
114
raise ValueError (f"Robot part { robot_part } not found in { self ._robot_configs_path } " )
115
-
115
+
116
+ log .warn (self .robot_conf )
116
117
# Generate URDF from mappings
117
118
robot_urdf = xutils .load_urdf_from_xacro (
118
119
xacro_path = self ._robot_xacro_path ,
@@ -183,7 +184,7 @@ def _get_joints(self) -> dict:
183
184
return joints
184
185
185
186
def _assign_control_joints (self , joints : dict ) -> list :
186
- """Get list of controllabe joints from the joint dict by joint type"""
187
+ """Get list of controllable joints from the joint dict by joint type"""
187
188
control_joints = []
188
189
control_joint_idxs = []
189
190
for joint , joint_info in joints .items ():
@@ -712,6 +713,7 @@ def deproject_pixels_to_points(
712
713
return sensor_coords
713
714
elif return_frame == "world" :
714
715
world_coords = (mr .TransInv (view_matrix ) @ sensor_coords .T ).T
716
+ log .err ("HELLO WORLD" )
715
717
if debug :
716
718
plot .debug_deproject_pixels_to_points (
717
719
sensor = sensor ,
@@ -831,7 +833,7 @@ def get_key_sensor_action(self, keys_pressed: list) -> dict | None:
831
833
depth = depth .reshape ((sensor .depth_width * sensor .depth_height , 1 ), order = "F" )
832
834
833
835
camera_points = self .deproject_pixels_to_points (
834
- sensor = sensor , data = depth , view_matrix = view_matrix , return_frame = "sensor"
836
+ sensor = sensor , data = depth , view_matrix = view_matrix , return_frame = "world" , debug = False ,
835
837
)
836
838
837
839
sensor_data .update (
0 commit comments