3D canvas now revolves around robotic base origin instead of 1st joint
@@ -228,7 +228,7 @@ class GraphicsCanvas3D: # pragma nocover
# Place camera based on robots effective radius * 1.25
if robot.robot is not None:
radius = sum([abs(link.a) + abs(link.d) for link in robot.robot.links]) * 1.25
- self.scene.camera.pos = vector(radius, radius, radius) + get_pose_pos(robot.joints[1].get_pose())
+ self.scene.camera.pos = vector(radius, radius, radius) + get_pose_pos(robot.joints[0].get_pose())
self.scene.camera.axis = vector(-radius, -radius, -radius)
def delete_robot(self, robot):
