|
473 | 473 | " settings[\"sensor_height\"] + 0.2,\n", |
474 | 474 | " 0.2,\n", |
475 | 475 | " ]\n", |
476 | | - " color_sensor_3rd_person_spec.orientation = [-math.pi / 4, 0, 0]\n", |
| 476 | + " color_sensor_3rd_person_spec.orientation = [-math.pi / 4, 0.0, 0.0]\n", |
477 | 477 | " color_sensor_3rd_person_spec.sensor_subtype = habitat_sim.SensorSubType.PINHOLE\n", |
478 | 478 | " sensor_specs.append(color_sensor_3rd_person_spec)\n", |
479 | 479 | "\n", |
|
580 | 580 | " init_state[\"position\"] = np.array(visual_sensor._spec.position)\n", |
581 | 581 | " init_state[\"orientation\"] = np.array(visual_sensor._spec.orientation)\n", |
582 | 582 | " # set the color sensor transform to be the agent transform\n", |
583 | | - " visual_sensor._spec.position = np.array([0, 0, 0])\n", |
584 | | - " visual_sensor._spec.orientation = np.array([0, 0, 0])\n", |
| 583 | + " visual_sensor._spec.position = np.array([0.0, 0.0, 0.0])\n", |
| 584 | + " visual_sensor._spec.orientation = np.array([0.0, 0.0, 0.0])\n", |
585 | 585 | " visual_sensor._sensor_object.set_transformation_from_spec()\n", |
586 | 586 | " # save ID of agent being modified\n", |
587 | 587 | " init_state[\"agent_ID\"] = agent_ID\n", |
|
875 | 875 | "sim_settings[\"scene\"] = os.path.join(\n", |
876 | 876 | " data_path, \"scene_datasets/mp3d_example/17DRP5sb8fy/17DRP5sb8fy.glb\"\n", |
877 | 877 | ")\n", |
878 | | - "sim_settings[\"sensor_pitch\"] = 0\n", |
| 878 | + "sim_settings[\"sensor_pitch\"] = 0.0\n", |
879 | 879 | "\n", |
880 | 880 | "make_simulator_from_settings(sim_settings)" |
881 | 881 | ] |
|
915 | 915 | "initial_sensor_position = np.array(visual_sensor._spec.position)\n", |
916 | 916 | "initial_sensor_orientation = np.array(visual_sensor._spec.orientation)\n", |
917 | 917 | "# set the color sensor transform to be the agent transform\n", |
918 | | - "visual_sensor._spec.position = np.array([0, 0, 0])\n", |
919 | | - "visual_sensor._spec.orientation = np.array([0, 0, 0])\n", |
| 918 | + "visual_sensor._spec.position = np.array([0.0, 0.0, 0.0])\n", |
| 919 | + "visual_sensor._spec.orientation = np.array([0.0, 0.0, 0.0])\n", |
920 | 920 | "visual_sensor._sensor_object.set_transformation_from_spec()\n", |
921 | 921 | "\n", |
922 | 922 | "# boost the agent off the floor\n", |
|
1070 | 1070 | "sim_settings[\"scene\"] = os.path.join(\n", |
1071 | 1071 | " data_path, \"scene_datasets/mp3d_example/17DRP5sb8fy/17DRP5sb8fy.glb\"\n", |
1072 | 1072 | ")\n", |
1073 | | - "sim_settings[\"sensor_pitch\"] = 0\n", |
| 1073 | + "sim_settings[\"sensor_pitch\"] = 0.0\n", |
1074 | 1074 | "sim_settings[\"semantic_sensor_1st_person\"] = True\n", |
1075 | 1075 | "\n", |
1076 | 1076 | "make_simulator_from_settings(sim_settings)\n", |
|
1175 | 1175 | "sim_settings[\"scene\"] = os.path.join(\n", |
1176 | 1176 | " data_path, \"scene_datasets/habitat-test-scenes/apartment_1.glb\"\n", |
1177 | 1177 | ")\n", |
1178 | | - "sim_settings[\"sensor_pitch\"] = 0\n", |
| 1178 | + "sim_settings[\"sensor_pitch\"] = 0.0\n", |
1179 | 1179 | "\n", |
1180 | 1180 | "make_simulator_from_settings(sim_settings)\n", |
1181 | 1181 | "\n", |
|
0 commit comments