From c324e9e6c38baf1d9a65c36b046517e997b004ea Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 15:42:16 -0800 Subject: [PATCH 01/14] Reduce FOVI to a shared retinal grid and gaze control --- docs/conf.py | 3 - .../source/_static/css/environment-browser.js | 1 - .../css/foveation-pooling-isotropic.json | 1 - docs/source/_static/css/foveation-viewer.css | 206 ---- docs/source/_static/css/foveation-viewer.js | 987 ------------------ .../sensors/foveated_camera_active_gaze.jpg | Bin 115472 -> 0 bytes .../sensors/foveated_camera_pooling.jpg | Bin 68546 -> 0 bytes .../source/api/lab_fovi/isaaclab_fovi.mdp.rst | 4 - .../concepts/sensors/foveated_camera.rst | 107 +- .../changelog.d/isaaclab-fovi.added.rst | 5 +- .../isaaclab_fovi/mdp/__init__.pyi | 7 +- .../isaaclab_fovi/isaaclab_fovi/mdp/gaze.py | 376 +------ .../isaaclab_fovi/mdp/gaze_cfg.py | 18 +- .../sensors/calibrated_geometry.py | 46 +- .../isaaclab_fovi/sensors/foveated_camera.py | 378 ++----- .../sensors/foveated_camera_cfg.py | 70 +- .../sensors/foveated_newton_camera.py | 250 +---- .../sensors/foveated_rtx_camera.py | 332 ++---- .../isaaclab_fovi/sensors/gaze_kernels.py | 89 +- .../isaaclab_fovi/sensors/lens_lut.py | 141 +-- .../isaaclab_fovi/sensors/native_grid.py | 152 +-- .../isaaclab_fovi/sensors/pooling.py | 282 ----- source/isaaclab_fovi/test/test_active_gaze.py | 216 +--- source/isaaclab_fovi/test/test_camera_cfg.py | 58 +- source/isaaclab_fovi/test/test_camera_gaze.py | 367 +++---- source/isaaclab_fovi/test/test_native_grid.py | 177 +--- .../isaaclab_fovi/test/test_newton_buffers.py | 356 +------ source/isaaclab_fovi/test/test_pooling.py | 172 --- source/isaaclab_fovi/test/test_rtx_camera.py | 68 +- .../active-gaze-cartpole.added.rst | 3 - .../changelog.d/active-gaze-cartpole.minor | 0 .../contrib/active_gaze/__init__.py | 29 - .../contrib/active_gaze/active_gaze_cfg.py | 85 -- .../contrib/active_gaze/agents.py | 40 - .../cartpole_camera_fovi_env_cfg.py | 85 -- .../contrib/active_gaze/gaze_distribution.py | 61 -- .../active_gaze/gaze_distribution_cfg.py | 24 - .../active_gaze/gaze_supervised_ppo.py | 134 --- .../active_gaze/gaze_supervised_ppo_cfg.py | 26 - .../test/contrib/test_active_gaze_ppo.py | 129 --- 40 files changed, 437 insertions(+), 5048 deletions(-) delete mode 100644 docs/source/_static/css/foveation-pooling-isotropic.json delete mode 100644 docs/source/_static/css/foveation-viewer.css delete mode 100644 docs/source/_static/css/foveation-viewer.js delete mode 100644 docs/source/_static/overview/sensors/foveated_camera_active_gaze.jpg delete mode 100644 docs/source/_static/overview/sensors/foveated_camera_pooling.jpg delete mode 100644 source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py delete mode 100644 source/isaaclab_fovi/test/test_pooling.py delete mode 100644 source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst delete mode 100644 source/isaaclab_tasks/changelog.d/active-gaze-cartpole.minor delete mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/__init__.py delete mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py delete mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py delete mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py delete mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution.py delete mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution_cfg.py delete mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo.py delete mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo_cfg.py delete mode 100644 source/isaaclab_tasks/test/contrib/test_active_gaze_ppo.py diff --git a/docs/conf.py b/docs/conf.py index 8c2e045fa3c8..ccff67b21672 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,7 +48,6 @@ sys.path.insert(0, os.path.abspath("../source/isaaclab_ov/isaaclab_ov")) sys.path.insert(0, os.path.abspath("../source/isaaclab_visualizers")) sys.path.insert(0, os.path.abspath("../source/isaaclab_visualizers/isaaclab_visualizers")) -# Only the package root: the package's ``rsl_rl`` subpackage would shadow RSL-RL as a top-level module. sys.path.insert(0, os.path.abspath("../source/isaaclab_fovi")) # -- Project information ----------------------------------------------------- @@ -351,13 +350,11 @@ def _read_pinned_versions() -> dict: "css/environment-browser.css", "css/demo-browser.css", "css/guide-browser.css", - "css/foveation-viewer.css", ] html_js_files = [ "css/environment-browser.js", "css/demo-browser.js", "css/guide-browser.js", - "css/foveation-viewer.js", ] html_theme_options = { diff --git a/docs/source/_static/css/environment-browser.js b/docs/source/_static/css/environment-browser.js index 3153655ef5ba..192099aa37f9 100644 --- a/docs/source/_static/css/environment-browser.js +++ b/docs/source/_static/css/environment-browser.js @@ -63,7 +63,6 @@ ["IsaacContrib-Assemble-Trocar-G129-Dex3", "rlinf", "", "", "", "environments/previews/manipulation/g1_assemble_trocar.jpg"], ["IsaacContrib-AutoMate-Assembly-Direct", "rl_games", "", "", "", "environment-previews/automate_assembly.jpg"], ["IsaacContrib-AutoMate-Disassembly-Direct", "rl_games", "", "", "", "environment-previews/automate_disassembly.jpg"], - ["IsaacContrib-Cartpole-Camera-Fovi", "rsl_rl", "isaacsim_physx,newton_kamino,newton_mjwarp,newton_steel,ovphysx", "isaacsim_rtx,newton_optix,newton_warp,ovrtx", "depth,rgb", "", false, {}, {}, "", null, ["||", "||depth", "||rgb", "|isaacsim_rtx|", "|isaacsim_rtx|depth", "|isaacsim_rtx|rgb", "|newton_optix|", "|newton_optix|depth", "|newton_optix|rgb", "|newton_warp|", "|newton_warp|depth", "|newton_warp|rgb", "|ovrtx|", "|ovrtx|depth", "|ovrtx|rgb", "isaacsim_physx||", "isaacsim_physx||depth", "isaacsim_physx||rgb", "isaacsim_physx|isaacsim_rtx|", "isaacsim_physx|isaacsim_rtx|depth", "isaacsim_physx|isaacsim_rtx|rgb", "isaacsim_physx|newton_optix|", "isaacsim_physx|newton_optix|depth", "isaacsim_physx|newton_optix|rgb", "isaacsim_physx|newton_warp|", "isaacsim_physx|newton_warp|depth", "isaacsim_physx|newton_warp|rgb", "newton_kamino||", "newton_kamino||depth", "newton_kamino||rgb", "newton_kamino|isaacsim_rtx|", "newton_kamino|isaacsim_rtx|depth", "newton_kamino|isaacsim_rtx|rgb", "newton_kamino|newton_optix|", "newton_kamino|newton_optix|depth", "newton_kamino|newton_optix|rgb", "newton_kamino|newton_warp|", "newton_kamino|newton_warp|depth", "newton_kamino|newton_warp|rgb", "newton_kamino|ovrtx|", "newton_kamino|ovrtx|depth", "newton_kamino|ovrtx|rgb", "newton_mjwarp||", "newton_mjwarp||depth", "newton_mjwarp||rgb", "newton_mjwarp|isaacsim_rtx|", "newton_mjwarp|isaacsim_rtx|depth", "newton_mjwarp|isaacsim_rtx|rgb", "newton_mjwarp|newton_optix|", "newton_mjwarp|newton_optix|depth", "newton_mjwarp|newton_optix|rgb", "newton_mjwarp|newton_warp|", "newton_mjwarp|newton_warp|depth", "newton_mjwarp|newton_warp|rgb", "newton_mjwarp|ovrtx|", "newton_mjwarp|ovrtx|depth", "newton_mjwarp|ovrtx|rgb", "newton_steel||", "newton_steel||depth", "newton_steel||rgb", "newton_steel|isaacsim_rtx|", "newton_steel|isaacsim_rtx|depth", "newton_steel|isaacsim_rtx|rgb", "newton_steel|newton_optix|", "newton_steel|newton_optix|depth", "newton_steel|newton_optix|rgb", "newton_steel|newton_warp|", "newton_steel|newton_warp|depth", "newton_steel|newton_warp|rgb", "newton_steel|ovrtx|", "newton_steel|ovrtx|depth", "newton_steel|ovrtx|rgb", "ovphysx||", "ovphysx||depth", "ovphysx||rgb", "ovphysx|newton_optix|", "ovphysx|newton_optix|depth", "ovphysx|newton_optix|rgb", "ovphysx|newton_warp|", "ovphysx|newton_warp|depth", "ovphysx|newton_warp|rgb", "ovphysx|ovrtx|", "ovphysx|ovrtx|depth", "ovphysx|ovrtx|rgb"]], ["IsaacContrib-Cartpole-Camera-Showcase-Direct", "skrl", "", "", "box_box,box_discrete,box_multidiscrete,dict_box,dict_discrete,dict_multidiscrete,tuple_box,tuple_discrete,tuple_multidiscrete", "", false, {}, {}, "", null, ["||", "||box_box", "||box_discrete", "||box_multidiscrete", "||dict_box", "||dict_discrete", "||dict_multidiscrete", "||tuple_box", "||tuple_discrete", "||tuple_multidiscrete"]], ["IsaacContrib-Cartpole-Showcase-Direct", "skrl", "isaacsim_physx,newton_kamino,newton_mjwarp,newton_steel,ovphysx", "", "box_box,box_discrete,box_multidiscrete,dict_box,dict_discrete,dict_multidiscrete,discrete_box,discrete_discrete,discrete_multidiscrete,multidiscrete_box,multidiscrete_discrete,multidiscrete_multidiscrete,tuple_box,tuple_discrete,tuple_multidiscrete", "environment-previews/cartpole.jpg", false, {}, {}, "", null, ["||", "||box_box", "||box_discrete", "||box_multidiscrete", "||dict_box", "||dict_discrete", "||dict_multidiscrete", "||discrete_box", "||discrete_discrete", "||discrete_multidiscrete", "||multidiscrete_box", "||multidiscrete_discrete", "||multidiscrete_multidiscrete", "||tuple_box", "||tuple_discrete", "||tuple_multidiscrete", "isaacsim_physx||", "isaacsim_physx||box_box", "isaacsim_physx||box_discrete", "isaacsim_physx||box_multidiscrete", "isaacsim_physx||dict_box", "isaacsim_physx||dict_discrete", "isaacsim_physx||dict_multidiscrete", "isaacsim_physx||discrete_box", "isaacsim_physx||discrete_discrete", "isaacsim_physx||discrete_multidiscrete", "isaacsim_physx||multidiscrete_box", "isaacsim_physx||multidiscrete_discrete", "isaacsim_physx||multidiscrete_multidiscrete", "isaacsim_physx||tuple_box", "isaacsim_physx||tuple_discrete", "isaacsim_physx||tuple_multidiscrete", "newton_kamino||", "newton_kamino||box_box", "newton_kamino||box_discrete", "newton_kamino||box_multidiscrete", "newton_kamino||dict_box", "newton_kamino||dict_discrete", "newton_kamino||dict_multidiscrete", "newton_kamino||discrete_box", "newton_kamino||discrete_discrete", "newton_kamino||discrete_multidiscrete", "newton_kamino||multidiscrete_box", "newton_kamino||multidiscrete_discrete", "newton_kamino||multidiscrete_multidiscrete", "newton_kamino||tuple_box", "newton_kamino||tuple_discrete", "newton_kamino||tuple_multidiscrete", "newton_mjwarp||", "newton_mjwarp||box_box", "newton_mjwarp||box_discrete", "newton_mjwarp||box_multidiscrete", "newton_mjwarp||dict_box", "newton_mjwarp||dict_discrete", "newton_mjwarp||dict_multidiscrete", "newton_mjwarp||discrete_box", "newton_mjwarp||discrete_discrete", "newton_mjwarp||discrete_multidiscrete", "newton_mjwarp||multidiscrete_box", "newton_mjwarp||multidiscrete_discrete", "newton_mjwarp||multidiscrete_multidiscrete", "newton_mjwarp||tuple_box", "newton_mjwarp||tuple_discrete", "newton_mjwarp||tuple_multidiscrete", "newton_steel||", "newton_steel||box_box", "newton_steel||box_discrete", "newton_steel||box_multidiscrete", "newton_steel||dict_box", "newton_steel||dict_discrete", "newton_steel||dict_multidiscrete", "newton_steel||discrete_box", "newton_steel||discrete_discrete", "newton_steel||discrete_multidiscrete", "newton_steel||multidiscrete_box", "newton_steel||multidiscrete_discrete", "newton_steel||multidiscrete_multidiscrete", "newton_steel||tuple_box", "newton_steel||tuple_discrete", "newton_steel||tuple_multidiscrete", "ovphysx||", "ovphysx||box_box", "ovphysx||box_discrete", "ovphysx||box_multidiscrete", "ovphysx||dict_box", "ovphysx||dict_discrete", "ovphysx||dict_multidiscrete", "ovphysx||discrete_box", "ovphysx||discrete_discrete", "ovphysx||discrete_multidiscrete", "ovphysx||multidiscrete_box", "ovphysx||multidiscrete_discrete", "ovphysx||multidiscrete_multidiscrete", "ovphysx||tuple_box", "ovphysx||tuple_discrete", "ovphysx||tuple_multidiscrete"]], ["IsaacContrib-Deploy-GearAssembly-Rizon4s-Grav", "rsl_rl", "", "", "", "environment-previews/rizon4s_gear_assembly.jpg"], diff --git a/docs/source/_static/css/foveation-pooling-isotropic.json b/docs/source/_static/css/foveation-pooling-isotropic.json deleted file mode 100644 index 90d14b291e94..000000000000 --- a/docs/source/_static/css/foveation-pooling-isotropic.json +++ /dev/null @@ -1 +0,0 @@ -{"fov":90,"cmfA":2.0,"res":16,"rings":14,"count":243,"mult":{"2":{"rings":28,"count":1026,"defaultK":4,"kMax":8,"geodesic":[0,1,4,2,3,5,6,8,7,18,8,1,19,34,20,2,9,10,8,2,22,21,23,3,11,12,10,3,24,25,23,2,13,14,12,4,27,28,26,5,15,14,16,5,30,29,31,4,17,16,18,6,32,33,31,5,35,55,36,19,56,79,57,34,37,38,36,58,21,20,59,57,39,38,40,22,61,60,23,21,41,40,42,63,24,23,62,64,43,42,44,25,65,66,26,64,46,47,45,69,27,68,28,70,48,49,47,29,71,70,28,72,50,51,49,73,30,31,74,72,52,51,53,32,75,76,31,33,54,53,55,78,33,34,77,79,80,107,81,56,108,109,137,79,82,81,83,110,58,57,111,109,84,83,85,112,59,60,113,111,86,87,85,61,114,115,62,60,88,87,89,63,117,116,62,64,90,89,91,119,65,64,118,120,92,93,91,121,66,67,120,122,94,95,93,68,123,124,122,67,96,95,97,125,70,69,126,124,98,99,97,127,71,72,128,126,100,101,99,73,129,130,74,72,102,101,103,75,132,131,74,76,104,105,103,134,77,76,133,135,106,105,107,136,78,79,135,137,138,170,139,108,171,172,205,109,140,141,139,173,110,174,109,172,142,141,143,175,112,111,176,174,144,145,143,177,113,114,178,176,146,147,145,115,179,180,116,114,148,147,149,117,182,181,118,116,150,151,149,119,184,183,118,120,152,153,151,186,121,120,185,187,154,153,155,188,123,122,187,189,157,158,156,191,125,126,192,190,159,158,160,127,193,194,128,126,161,160,162,129,195,196,128,130,163,162,164,131,198,197,130,132,165,164,166,200,133,132,199,201,167,168,166,202,134,135,201,203,169,168,170,204,136,203,137,205,206,207,242,171,243,244,281,205,208,209,207,245,173,246,172,244,210,209,211,247,175,248,174,246,212,211,213,249,177,250,176,248,214,215,213,251,179,252,178,250,216,217,215,254,180,253,181,255,218,217,219,256,182,255,183,257,220,221,219,258,184,257,185,259,222,223,221,260,186,259,187,261,225,226,224,263,189,264,262,188,227,228,226,265,191,266,190,264,229,230,228,267,193,268,192,266,231,232,230,269,195,270,194,268,233,234,232,271,197,272,196,270,235,234,236,274,198,273,199,275,237,236,238,276,200,275,201,277,239,240,238,278,202,277,203,279,241,242,240,280,204,279,205,281,282,322,283,243,323,364,324,244,284,285,283,325,245,244,326,324,286,287,285,327,247,246,328,326,288,289,287,329,249,248,330,328,290,289,291,331,251,250,332,330,292,293,291,333,253,252,334,332,294,295,293,335,254,255,336,334,296,295,297,256,337,338,257,336,340,339,341,383,299,298,382,384,342,341,343,385,301,300,384,386,344,343,345,387,303,302,388,386,346,347,345,389,304,305,390,388,348,349,347,391,306,307,392,390,309,308,310,269,351,350,268,352,311,310,312,353,271,270,352,354,313,312,314,355,272,273,354,356,315,316,314,357,274,275,356,358,317,318,316,359,276,277,358,360,319,318,320,361,278,279,360,362,321,322,320,363,280,281,362,364,409,410,453,365,454,499,455,366,411,410,412,456,367,457,366,455,413,414,412,458,369,459,368,457,371,370,372,415,329,328,416,414,418,419,417,463,374,464,373,462,420,421,419,465,376,466,375,464,422,421,423,467,378,468,377,466,424,425,423,469,380,470,379,468,426,425,427,471,382,472,381,470,428,429,427,473,384,474,383,472,386,385,387,343,430,431,344,342,388,389,387,345,433,432,344,346,435,434,436,481,390,480,391,482,437,438,436,483,392,482,393,484,439,440,438,485,394,484,395,486,441,440,442,487,396,486,397,488,443,442,444,489,398,488,399,490,445,446,444,491,400,490,401,492,403,404,402,448,359,360,447,449,450,449,451,496,405,495,406,497,452,451,453,498,407,497,408,499,500,545,501,454,546,592,547,499,502,501,503,456,548,549,455,457,504,503,505,458,550,551,457,459,506,507,505,460,552,553,461,459,508,507,509,462,554,555,461,463,510,509,511,464,556,557,463,465,513,514,512,467,559,560,468,466,515,516,514,469,561,562,470,468,517,518,516,471,563,564,470,472,519,518,520,473,565,566,474,472,521,522,520,475,567,568,476,474,523,524,522,477,570,569,478,476,525,524,526,479,572,571,478,480,527,528,526,481,574,573,482,480,529,528,530,483,576,575,484,482,531,532,530,485,578,577,486,484,533,534,532,487,580,579,486,488,536,535,537,490,583,582,489,491,538,539,537,492,585,584,493,491,540,539,541,494,587,586,493,495,542,543,541,496,589,588,495,497,544,543,545,498,591,590,499,497,593,594,640,641,546,642,688,592,595,594,596,643,548,547,642,644,597,596,598,645,550,549,644,646,599,598,600,647,552,551,646,648,601,602,600,649,554,553,650,648,603,602,604,651,556,555,650,652,606,605,607,654,559,558,653,655,608,607,609,656,561,560,657,655,610,611,609,658,563,562,657,659,612,611,613,660,565,564,661,659,614,615,613,662,567,566,663,661,616,615,617,664,569,568,663,665,618,617,619,666,570,571,667,665,620,619,621,668,572,573,669,667,622,623,621,670,574,575,671,669,624,623,625,672,576,577,671,673,626,627,625,674,578,579,675,673,628,629,627,676,580,581,677,675,631,630,632,679,583,584,678,680,633,632,634,681,585,586,680,682,635,636,634,683,587,588,684,682,637,638,636,685,589,590,686,684,639,640,638,687,591,592,688,686,689,690,736,737,641,785,738,642,691,690,692,643,739,740,642,644,693,694,692,645,741,742,644,646,695,694,696,647,743,744,646,648,697,698,696,649,745,746,650,648,699,698,700,651,747,748,650,652,702,701,703,654,750,751,653,655,704,703,705,656,752,753,655,657,706,707,705,658,754,755,659,657,708,707,709,660,756,757,659,661,710,711,709,662,758,759,663,661,712,711,713,664,760,761,663,665,714,715,713,666,763,762,667,665,716,715,717,668,765,764,669,667,718,719,717,670,767,766,671,669,720,719,721,672,769,768,671,673,722,723,721,674,771,770,675,673,724,725,723,676,773,772,677,675,727,726,728,679,776,775,678,680,729,728,730,681,778,777,680,682,731,732,730,683,780,779,684,682,733,734,732,685,782,781,686,684,735,736,734,687,784,783,688,686,786,834,787,835,737,785,738,836,788,789,787,739,837,836,740,738,790,791,789,741,839,838,740,742,792,793,791,743,841,840,744,742,795,796,794,746,844,843,745,747,797,796,798,748,846,845,749,747,799,800,798,750,848,847,749,751,801,802,800,752,850,849,753,751,803,802,804,754,852,851,753,755,805,804,806,756,854,853,755,757,807,806,808,758,856,855,757,759,809,810,808,760,858,857,761,759,812,813,811,763,860,861,764,762,814,813,815,765,862,863,764,766,816,817,815,767,864,865,766,768,818,819,817,769,866,867,770,768,820,819,821,771,868,869,770,772,822,823,821,773,870,871,774,772,824,823,825,775,872,873,774,776,826,827,825,777,874,875,778,776,829,830,828,780,877,878,781,779,831,830,832,782,879,880,781,783,833,834,832,784,881,882,785,783,883,884,930,931,835,932,978,836,885,884,886,933,837,932,934,836,887,886,888,935,839,934,936,838,889,888,890,937,841,936,938,840,891,890,892,939,843,940,938,844,893,892,894,941,845,940,942,844,896,895,897,944,848,943,945,847,898,897,899,946,850,945,947,849,900,901,899,948,852,949,947,853,902,901,903,950,854,949,951,853,904,905,903,952,856,953,951,857,906,905,907,954,858,953,955,857,908,909,907,956,860,957,955,861,910,909,911,958,862,957,959,861,912,913,911,960,864,961,959,865,914,913,915,962,866,963,961,865,916,917,915,964,868,965,963,869,918,919,917,966,870,967,965,871,921,920,922,969,873,968,970,872,923,922,924,971,875,970,972,874,925,926,924,973,877,974,972,878,927,928,926,975,879,976,974,880,929,930,928,977,881,978,976,882,979,-1,1025,980,-1,931,-1,932,981,-1,980,982,933,-1,934,932,983,-1,984,982,935,-1,936,-1,985,-1,984,986,937,-1,-1,938,987,-1,988,986,939,-1,940,-1,989,-1,990,988,941,-1,942,-1,991,-1,990,992,943,-1,944,-1,993,-1,992,994,945,-1,946,-1,995,-1,994,996,-1,947,948,-1,997,-1,996,998,949,-1,950,-1,999,-1,1000,998,951,-1,952,-1,1001,-1,1000,1002,-1,953,954,-1,1004,-1,1005,1003,957,956,-1,-1,1006,-1,1007,1005,-1,959,958,-1,1008,-1,1009,1007,-1,961,960,-1,1010,-1,1011,1009,963,962,-1,-1,1012,-1,1011,1013,965,-1,964,-1,1014,-1,1015,1013,-1,967,966,-1,1016,-1,1017,1015,969,-1,968,-1,1018,-1,1017,1019,971,-1,970,-1,1020,-1,1021,1019,973,-1,972,974,1022,-1,1023,1021,975,-1,-1,974,1024,-1,1023,1025,977,-1,-1,976],"visual":[0,3,4,1,5,2,6,8,7,18,8,19,1,20,34,2,9,8,10,2,22,21,23,3,11,12,10,3,24,25,23,4,13,12,14,27,4,28,26,3,15,14,16,5,30,29,31,6,17,16,18,6,32,33,31,5,35,56,55,36,19,79,57,34,37,38,58,59,36,21,20,57,39,40,61,22,38,60,23,62,41,42,63,24,64,40,23,62,43,44,66,65,25,26,42,45,45,46,68,27,67,69,44,47,48,47,70,71,29,28,49,46,50,49,73,30,72,51,31,74,52,51,75,32,53,76,31,74,54,53,78,77,55,33,34,79,80,108,107,81,56,137,109,79,82,110,81,83,111,58,57,109,84,112,83,85,113,59,60,111,86,114,115,87,85,61,62,60,88,117,116,87,89,63,62,64,90,119,91,89,118,65,64,120,92,121,93,91,120,66,67,122,94,123,95,93,68,122,124,67,96,125,97,95,126,70,69,124,98,127,99,97,128,71,72,126,100,129,130,99,101,73,74,72,102,132,131,101,103,75,74,76,104,134,105,103,133,77,76,135,106,136,107,105,135,78,79,137,138,171,170,139,108,205,172,137,140,173,141,139,174,110,172,109,142,175,143,176,141,112,111,174,144,178,145,177,143,114,113,179,146,180,147,179,145,115,116,181,148,182,149,181,117,183,147,118,150,151,184,185,119,183,149,120,152,153,186,187,121,151,122,185,154,155,188,189,123,153,156,124,157,156,191,190,125,158,124,192,159,158,193,192,127,194,160,126,161,195,160,196,129,194,162,128,163,197,162,198,164,130,131,196,165,199,164,200,166,132,133,198,167,202,166,201,168,134,135,203,169,204,168,170,203,136,205,137,206,243,242,207,244,281,171,205,208,245,209,246,207,173,244,172,210,247,248,211,209,175,246,174,212,249,250,213,211,177,176,251,214,252,215,251,213,179,178,253,216,254,217,253,181,215,255,180,218,256,219,257,255,183,217,182,220,258,221,259,185,257,184,219,222,223,260,261,187,186,221,259,224,225,262,263,188,189,226,223,227,226,265,264,190,191,228,266,229,267,228,266,192,268,193,230,231,269,230,270,268,194,232,195,233,271,232,272,196,234,270,197,235,273,234,274,236,198,199,272,237,275,276,236,238,200,201,274,239,278,277,238,240,202,279,203,241,280,240,279,242,204,281,205,282,323,322,283,364,324,243,244,284,325,285,326,283,324,245,244,286,327,287,328,285,326,247,246,288,329,330,289,287,249,328,248,290,331,332,291,289,251,330,250,292,333,334,293,291,253,252,332,294,336,295,335,293,255,254,337,296,338,297,337,295,257,339,256,340,298,299,339,341,259,297,258,342,300,301,341,343,261,260,299,344,303,302,343,345,263,262,301,346,305,304,347,345,264,265,306,348,307,306,349,347,266,308,267,309,350,308,351,310,268,349,269,311,352,310,353,312,270,271,351,313,354,355,312,314,272,273,353,315,357,356,314,316,274,358,275,317,359,358,316,318,276,360,277,319,361,318,360,320,362,278,279,321,363,320,362,322,364,280,281,409,365,366,408,410,453,323,454,411,367,412,368,366,410,325,456,369,413,414,370,368,412,327,458,371,415,416,372,370,329,414,417,373,418,417,374,331,372,419,463,420,375,376,419,421,333,374,377,422,378,377,421,423,335,379,376,424,380,379,425,423,381,337,469,426,382,381,427,425,383,339,472,384,428,429,383,385,427,341,474,386,430,431,385,387,343,429,476,388,433,432,389,387,345,434,478,390,435,434,391,389,436,347,480,437,392,393,436,438,391,349,482,439,394,395,440,438,393,351,485,441,396,397,442,440,353,395,398,443,399,398,444,442,355,400,397,401,445,446,400,357,402,444,491,403,448,447,402,404,359,449,446,405,450,449,404,406,451,361,496,452,407,451,406,408,453,363,498,500,454,545,501,455,499,409,546,502,456,503,457,501,455,411,548,504,458,505,459,503,457,413,550,506,460,507,461,459,505,415,552,508,462,509,463,461,507,417,555,510,511,464,465,419,463,557,509,513,512,467,466,421,468,559,514,515,469,514,468,470,516,423,561,517,471,516,470,472,518,563,425,519,473,518,472,520,474,427,565,521,475,520,474,522,476,429,567,523,477,522,524,476,478,432,431,525,479,526,480,524,478,434,572,527,481,528,482,526,480,436,574,529,483,530,484,482,528,576,438,531,485,532,486,484,530,440,578,533,534,487,488,442,486,580,532,536,535,490,489,444,491,582,537,538,492,537,491,493,539,446,584,540,494,539,493,495,541,448,587,542,496,541,495,543,497,450,589,544,498,543,497,545,499,452,591,593,546,640,594,592,547,641,500,595,548,596,549,594,547,643,502,597,550,598,551,596,549,645,504,599,552,600,553,551,598,647,506,601,554,602,555,553,600,649,508,603,604,556,557,555,602,651,510,606,605,558,559,557,654,653,607,608,607,560,561,559,609,656,514,610,562,609,563,611,658,561,516,612,564,611,565,613,660,563,518,614,566,567,613,615,662,520,565,616,568,569,615,617,664,522,567,618,571,570,619,617,666,524,572,620,573,572,621,619,668,526,574,622,575,623,574,621,670,576,528,624,577,625,576,623,672,578,530,626,627,579,578,580,625,674,532,628,629,581,580,582,676,677,627,631,630,583,582,584,632,679,536,633,585,632,584,586,634,681,538,635,587,634,586,588,636,683,540,637,589,636,588,638,590,685,542,639,591,638,590,640,592,687,544,689,641,690,736,688,642,737,593,691,643,692,690,644,642,739,595,693,645,694,646,692,741,644,742,695,647,696,648,694,743,646,744,697,698,649,650,696,746,745,648,699,700,651,652,748,747,698,650,702,701,654,653,750,703,749,700,704,703,656,655,752,705,657,608,706,705,658,657,754,707,659,610,708,660,707,659,709,756,661,757,710,662,709,661,711,663,758,759,712,664,711,713,663,665,760,761,714,666,715,713,667,665,763,762,716,668,717,669,715,667,765,764,718,670,719,671,717,767,669,766,720,721,672,673,769,719,671,624,722,723,674,675,771,721,673,626,724,725,676,677,773,723,774,726,727,726,679,678,775,776,728,680,729,728,681,680,730,777,778,682,731,683,730,682,732,780,684,779,733,685,732,684,734,782,686,781,735,687,734,736,686,688,784,639,786,737,834,787,835,785,738,689,788,739,789,740,787,837,738,838,790,791,741,742,839,789,740,840,792,793,743,744,841,791,842,742,795,794,746,745,843,844,796,793,797,796,748,747,845,846,798,749,799,798,750,749,800,848,847,751,801,752,800,802,751,850,753,849,803,754,804,802,755,852,753,851,805,756,806,757,804,854,755,853,807,808,758,759,856,806,757,855,809,810,760,761,858,808,759,811,812,811,763,762,860,813,764,810,814,813,765,764,862,815,766,863,816,767,815,766,817,864,768,865,818,769,817,819,768,866,770,867,820,771,821,819,772,868,770,869,822,823,773,774,821,870,871,772,824,825,775,776,873,872,823,774,826,827,777,778,875,874,825,828,829,828,780,779,877,830,876,781,831,830,782,781,879,832,783,878,833,784,832,783,834,881,785,880,883,835,930,884,931,882,836,932,885,837,886,933,884,838,836,934,887,888,839,935,840,886,838,936,889,890,841,842,937,888,938,840,891,892,843,844,939,940,890,842,893,894,845,846,941,942,892,895,896,895,848,847,944,943,897,894,898,897,850,849,946,945,899,851,900,899,852,851,948,901,947,853,902,901,854,853,950,903,949,855,904,856,903,952,905,855,857,951,906,858,905,907,954,857,859,953,908,860,909,907,956,861,859,957,910,862,911,958,909,863,861,959,912,913,864,865,960,911,961,863,914,915,866,867,962,913,963,865,916,917,868,869,964,965,915,867,918,919,870,871,966,967,917,920,921,920,873,872,969,968,922,919,923,922,875,874,971,970,924,876,925,924,877,876,973,926,972,878,927,926,879,975,878,928,880,974,929,881,928,977,930,880,882,976,979,931,-1,-1,1025,980,-1,978,981,933,-1,982,-1,980,934,932,983,935,-1,984,982,-1,936,934,985,-1,986,937,938,984,-1,-1,987,988,939,-1,-1,940,986,938,989,990,-1,941,942,-1,988,-1,991,992,-1,944,943,-1,990,-1,993,994,946,-1,-1,945,992,947,995,996,-1,948,947,-1,-1,994,997,998,950,-1,-1,949,996,951,999,1000,952,-1,-1,951,953,998,1001,1002,954,-1,-1,953,955,-1,1004,1003,956,-1,-1,957,955,1005,1006,1005,958,-1,-1,959,957,-1,1008,1007,-1,960,961,-1,-1,1009,1010,1009,962,-1,-1,963,1011,961,1012,1011,-1,964,965,-1,1013,-1,1014,1013,-1,966,967,-1,1015,-1,1016,1015,-1,969,968,-1,1017,-1,1018,1017,-1,971,970,1019,-1,-1,1020,1019,973,-1,-1,972,1021,974,1022,975,-1,1021,1023,-1,974,976,1024,977,-1,1023,1025,-1,976,978]},"3":{"rings":42,"count":2340,"defaultK":10,"kMax":18,"geodesic":[0,6,3,4,2,7,1,5,14,9,19,12,16,17,11,10,18,15,20,21,36,8,37,38,58,19,9,22,35,39,57,1,59,60,85,7,23,24,22,41,10,40,42,11,9,39,21,25,64,2,43,63,65,3,26,27,25,45,12,44,13,46,11,43,24,28,69,68,3,4,47,14,28,27,29,47,14,48,13,46,49,15,30,26,72,4,71,12,73,5,31,30,32,51,16,52,15,50,17,53,33,29,76,77,6,5,49,14,34,35,33,55,18,56,54,17,19,57,36,32,81,7,53,82,80,6,86,116,87,59,117,150,118,60,85,115,88,37,151,119,149,188,152,84,89,90,88,120,62,61,121,119,63,122,91,87,60,39,155,154,40,156,92,93,91,64,124,123,65,63,125,122,90,94,41,158,159,66,42,157,95,96,94,127,67,126,66,128,68,97,93,162,125,43,44,65,163,161,98,97,99,130,69,70,131,129,68,71,96,100,132,166,46,45,165,128,102,103,101,73,135,134,72,74,136,133,104,100,171,48,170,49,71,172,105,104,106,138,76,75,137,139,77,74,103,107,136,174,50,51,175,140,108,109,107,141,78,142,79,140,77,106,110,178,143,53,52,80,177,179,111,112,110,81,144,145,80,82,143,146,113,109,55,182,181,79,54,183,114,115,113,148,83,84,147,149,82,146,112,116,85,57,185,186,56,184,189,229,190,151,230,231,273,188,152,228,191,117,274,232,272,320,275,150,192,191,193,233,154,234,153,232,155,235,194,190,277,278,119,120,152,231,195,194,196,236,157,237,156,235,158,238,155,197,193,122,281,280,282,121,198,197,199,240,159,239,160,241,158,238,161,196,200,284,124,125,285,283,201,200,202,243,162,242,163,244,161,199,203,127,288,241,287,164,126,245,204,205,203,246,165,247,164,245,166,206,202,291,129,248,130,292,163,244,249,250,248,294,207,295,206,293,208,296,251,247,205,343,167,342,168,344,252,251,253,297,298,209,210,296,299,208,211,250,254,170,346,345,347,169,255,256,254,301,212,300,213,302,211,299,257,253,214,349,173,350,172,348,215,214,216,258,175,257,176,259,174,213,217,304,139,256,138,303,177,260,218,217,219,261,178,262,177,260,179,220,216,141,307,263,308,176,142,259,221,222,220,264,181,265,180,263,182,266,179,223,219,311,144,143,310,312,224,225,223,268,183,267,184,269,182,266,185,226,222,146,314,315,313,147,227,228,226,271,186,270,187,272,185,269,229,225,318,317,149,148,188,273,371,372,422,321,423,476,424,370,322,421,373,274,477,425,475,478,532,369,374,375,373,426,324,427,323,425,325,376,372,480,277,428,481,276,322,424,377,378,376,429,327,430,326,428,328,379,375,431,325,279,483,484,280,427,381,382,380,433,331,434,330,432,332,435,329,379,383,283,488,487,284,282,384,383,385,436,437,333,334,435,438,332,335,382,386,491,286,285,490,492,387,388,386,440,336,439,337,441,335,438,338,385,389,494,288,289,495,493,391,392,390,444,340,443,341,445,339,393,389,442,292,342,499,498,293,291,394,395,393,447,343,446,344,448,342,396,392,295,502,445,501,345,294,449,397,396,398,346,450,449,451,345,347,395,399,505,297,298,448,452,504,506,400,401,399,453,349,454,348,452,350,402,398,300,508,455,509,347,301,451,404,405,403,457,353,458,352,456,354,459,406,402,304,351,513,512,303,305,407,408,406,460,356,461,355,459,357,462,354,409,405,516,307,306,515,517,410,409,411,463,464,358,359,462,465,357,360,408,412,519,309,310,518,520,413,412,414,467,361,466,362,468,360,465,363,411,415,312,522,523,311,313,417,416,418,471,365,470,366,472,364,415,419,469,367,316,527,526,315,473,420,419,421,474,368,473,369,475,367,422,418,530,318,472,529,319,370,476,533,534,590,477,591,650,592,532,478,535,589,423,651,593,649,652,712,476,536,535,537,594,480,595,479,593,481,538,534,654,426,596,655,425,478,592,539,538,540,597,483,598,482,596,484,537,541,599,657,429,481,658,428,595,543,542,544,601,487,602,486,600,488,603,485,541,545,662,432,661,433,663,546,547,545,604,490,605,489,603,491,606,488,544,548,665,435,664,436,666,549,550,548,608,492,607,493,609,491,606,494,551,547,668,438,669,437,667,552,551,553,611,495,610,496,612,494,609,497,550,554,671,441,672,440,670,556,555,557,615,499,614,500,616,498,554,558,613,676,444,501,675,445,617,559,560,558,618,502,617,503,619,501,561,557,679,447,616,678,448,504,620,562,561,563,505,621,620,622,504,506,560,564,450,682,619,623,681,683,449,565,564,566,624,508,625,507,623,509,563,567,685,453,626,686,452,506,622,568,569,567,627,511,628,510,626,512,570,566,629,688,456,509,689,455,625,572,573,571,631,515,632,514,630,516,633,513,574,570,693,459,692,460,694,575,576,574,634,518,635,517,633,519,636,516,577,573,696,462,695,463,697,578,579,577,638,520,637,521,639,519,636,522,580,576,699,465,700,464,698,581,582,580,641,523,640,524,642,522,639,525,583,579,702,468,703,467,701,585,584,586,645,527,644,528,646,526,587,583,643,707,471,529,706,472,647,588,587,589,648,530,647,531,649,529,586,590,710,474,646,709,475,532,650,713,714,775,651,776,839,777,712,652,774,715,591,840,838,778,841,905,711,716,715,717,779,654,780,653,778,655,718,714,843,594,844,781,593,652,777,719,718,720,782,657,783,656,781,658,717,721,846,597,847,596,784,655,780,722,721,723,785,660,786,659,784,661,724,720,849,600,850,599,787,658,783,726,727,725,789,664,790,663,788,665,724,728,854,791,603,662,853,604,787,729,728,730,792,667,793,666,791,668,731,727,794,665,857,606,856,607,858,732,731,733,795,670,796,669,794,671,797,668,730,734,860,609,859,610,861,735,736,734,798,673,799,672,797,674,800,671,737,733,863,612,864,611,862,738,739,737,801,676,802,675,800,677,803,674,736,740,866,615,867,614,865,741,740,742,804,679,805,678,803,680,806,677,743,739,869,618,870,617,868,744,743,745,807,682,808,681,806,683,809,680,742,746,872,621,873,620,871,748,749,747,812,685,811,686,813,684,810,687,746,750,877,624,876,625,878,751,750,752,815,688,814,689,816,687,813,690,753,749,880,627,879,628,881,754,753,755,818,691,817,692,819,690,816,693,752,756,883,630,882,631,884,757,758,756,821,694,820,695,822,693,819,696,759,755,886,633,887,632,885,760,761,759,824,697,823,698,825,696,758,762,822,699,889,636,890,635,888,763,762,764,827,700,826,701,828,699,765,761,892,825,639,702,893,638,829,767,766,768,831,704,830,705,832,703,765,769,897,642,896,643,829,706,833,770,771,769,834,707,833,708,835,706,772,768,900,645,899,646,832,709,836,773,772,774,837,710,836,711,838,709,775,771,903,648,902,835,649,712,839,906,907,972,840,973,974,1040,841,905,971,908,776,1041,1039,975,1042,1109,904,909,910,908,976,843,977,842,975,844,911,907,1044,779,978,778,1045,841,974,912,911,913,979,846,980,845,978,847,910,914,1047,782,981,781,844,1048,977,916,917,915,983,850,984,849,982,851,914,918,1051,786,985,785,848,1052,981,919,920,918,986,853,987,852,985,854,921,917,1054,988,788,851,789,1055,984,922,923,921,989,856,990,855,988,857,924,920,991,854,791,1057,1058,792,790,925,924,926,992,859,993,858,991,860,994,927,923,857,794,1061,1060,795,793,928,927,929,995,862,996,861,994,863,997,860,926,930,797,1064,1063,798,796,932,931,933,999,866,1000,865,998,867,1001,864,930,934,801,1068,1067,800,802,935,936,934,1002,869,1003,868,1001,870,1004,867,937,933,1071,804,803,1070,1072,938,937,939,1005,872,1006,871,1004,873,1007,870,936,940,1074,807,806,1073,1075,941,940,942,1009,874,1008,875,1010,873,1007,876,939,943,1077,809,810,1078,1076,944,943,945,1012,877,1011,878,1013,876,1010,879,942,946,1080,812,813,1081,1079,947,946,948,1015,880,1014,881,1016,879,1013,882,945,949,815,1083,1084,816,814,951,952,950,1019,884,1018,885,1020,883,1017,886,953,949,819,1087,1088,818,820,954,955,953,1022,887,1021,888,1023,886,1020,952,956,889,822,1090,1091,821,823,957,956,958,1025,890,1024,891,1026,889,955,959,1023,892,825,1094,1093,824,826,960,959,961,1028,893,1027,894,1029,892,958,962,1097,1026,828,895,827,1096,1030,963,962,964,1031,896,1030,897,1032,895,961,965,1100,830,1029,831,898,1099,1033,967,966,968,1035,900,1034,901,1036,899,969,965,1104,834,1033,835,902,1103,1037,970,969,971,1038,903,1037,904,1039,902,968,972,1107,837,1036,838,1106,905,1040,1110,1179,1111,1180,1041,1249,1181,1042,1109,1178,1112,973,1250,1248,1182,1251,1320,1043,1113,1112,1114,1183,1044,1043,1182,1184,1045,1111,1115,1253,976,1042,975,1254,1181,1185,1116,1115,1117,1186,1047,1046,1185,1187,1048,1114,1118,1256,979,1045,978,1257,1184,1188,1120,1121,1119,1190,1051,1050,1191,1189,1052,1122,1118,1260,983,1049,982,1261,1192,1188,1123,1122,1124,1193,1054,1053,1192,1194,1055,1125,1121,1263,986,1052,985,1264,1195,1191,1126,1125,1127,1196,1057,1056,1195,1197,1058,1128,1124,1266,1055,989,988,1267,1194,1198,1129,1130,1128,1199,1060,1059,1200,1198,1061,1131,1127,1058,1269,991,992,1270,1201,1197,1132,1133,1131,1202,1063,1062,1203,1201,1064,1061,1130,1134,1272,994,995,1273,1204,1200,1135,1134,1136,1205,1066,1065,1206,1204,1067,1064,1137,1133,997,1275,1276,998,1207,1203,1139,1138,1140,1209,1070,1069,1208,1210,1071,1068,1137,1141,1001,1279,1280,1002,1207,1211,1142,1143,1141,1212,1073,1072,1213,1211,1074,1071,1144,1140,1004,1282,1283,1005,1214,1210,1145,1146,1144,1215,1076,1075,1216,1214,1077,1074,1147,1143,1007,1286,1285,1217,1213,1008,1148,1147,1149,1218,1078,1079,1217,1219,1077,1080,1150,1146,1010,1289,1288,1009,1216,1220,1151,1152,1150,1221,1081,1082,1222,1220,1080,1083,1153,1149,1013,1292,1291,1012,1223,1219,1155,1154,1156,1225,1085,1086,1224,1226,1084,1087,1153,1157,1017,1296,1295,1016,1223,1227,1158,1159,1157,1228,1088,1089,1227,1229,1087,1090,1160,1156,1299,1020,1019,1298,1230,1226,1161,1160,1162,1231,1091,1092,1230,1232,1090,1159,1163,1093,1302,1023,1022,1301,1229,1233,1164,1163,1165,1234,1094,1095,1233,1235,1093,1162,1166,1305,1096,1025,1026,1304,1232,1236,1167,1168,1166,1237,1097,1098,1238,1236,1096,1169,1165,1308,1028,1099,1029,1307,1239,1235,1170,1171,1169,1240,1100,1101,1241,1239,1099,1168,1172,1311,1031,1102,1032,1310,1242,1238,1174,1173,1175,1244,1104,1105,1245,1243,1103,1172,1176,1315,1035,1106,1036,1314,1246,1242,1177,1176,1178,1247,1107,1108,1246,1248,1106,1175,1179,1318,1038,1109,1039,1317,1245,1249,1321,1322,1392,1393,1250,1394,1464,1251,1320,1323,1391,1465,1180,1395,1463,1466,1537,1252,1324,1325,1323,1396,1253,1252,1397,1395,1254,1326,1322,1468,1183,1251,1182,1469,1398,1394,1327,1328,1326,1399,1256,1255,1400,1398,1257,1329,1325,1471,1186,1254,1185,1472,1401,1397,1330,1329,1331,1402,1259,1258,1401,1403,1260,1328,1332,1474,1189,1257,1188,1475,1404,1400,1334,1333,1335,1406,1263,1262,1405,1407,1264,1336,1332,1478,1193,1261,1192,1479,1408,1404,1337,1336,1338,1409,1266,1265,1410,1408,1267,1339,1335,1481,1264,1196,1195,1482,1407,1411,1340,1339,1341,1412,1269,1268,1413,1411,1270,1338,1342,1267,1484,1198,1199,1485,1410,1414,1343,1344,1342,1415,1272,1271,1414,1416,1273,1270,1341,1345,1487,1201,1202,1488,1413,1417,1346,1347,1345,1418,1275,1274,1419,1417,1276,1273,1348,1344,1204,1490,1491,1205,1420,1416,1349,1350,1348,1421,1278,1277,1422,1420,1279,1276,1347,1351,1207,1493,1494,1208,1419,1423,1352,1351,1353,1424,1281,1280,1423,1425,1282,1279,1354,1350,1210,1496,1497,1211,1426,1422,1355,1356,1354,1427,1284,1283,1428,1426,1285,1282,1353,1357,1213,1499,1500,1214,1429,1425,1359,1360,1358,1431,1287,1288,1432,1430,1286,1289,1361,1357,1217,1504,1503,1216,1433,1429,1362,1363,1361,1434,1290,1291,1435,1433,1289,1292,1364,1360,1220,1507,1506,1219,1436,1432,1365,1364,1366,1437,1293,1294,1436,1438,1292,1295,1367,1363,1223,1510,1509,1222,1439,1435,1368,1367,1369,1440,1296,1297,1439,1441,1295,1298,1366,1370,1226,1513,1512,1225,1438,1442,1371,1370,1372,1443,1299,1300,1442,1444,1298,1301,1373,1369,1516,1229,1228,1515,1445,1441,1374,1375,1373,1446,1302,1303,1447,1445,1301,1376,1372,1304,1519,1232,1231,1518,1444,1448,1377,1378,1376,1449,1305,1306,1450,1448,1304,1379,1375,1522,1307,1234,1235,1521,1451,1447,1380,1379,1381,1452,1308,1309,1451,1453,1307,1378,1382,1525,1237,1310,1238,1524,1450,1454,1384,1383,1385,1456,1312,1313,1455,1457,1311,1382,1386,1529,1241,1314,1242,1528,1454,1458,1387,1386,1388,1459,1315,1316,1460,1458,1314,1389,1385,1532,1244,1317,1245,1531,1461,1457,1390,1391,1389,1462,1318,1319,1463,1461,1317,1392,1388,1535,1247,1320,1248,1534,1464,1460,1611,1612,1683,1684,1538,1757,1685,1539,1610,1613,1682,1758,1465,1686,1756,1540,1609,1831,1614,1613,1615,1541,1687,1688,1540,1542,1686,1612,1616,1468,1761,1689,1762,1539,1543,1467,1617,1618,1616,1544,1690,1691,1545,1543,1689,1619,1615,1471,1764,1692,1765,1542,1546,1472,1621,1620,1622,1548,1694,1695,1547,1549,1693,1619,1623,1475,1768,1696,1769,1546,1550,1474,1624,1623,1625,1551,1697,1698,1550,1552,1696,1626,1622,1478,1771,1699,1772,1549,1553,1477,1627,1628,1626,1554,1700,1701,1553,1555,1699,1629,1625,1481,1774,1702,1775,1556,1552,1482,1630,1631,1629,1557,1703,1704,1556,1558,1702,1705,1628,1632,1484,1777,1778,1555,1559,1485,1633,1632,1634,1560,1706,1707,1559,1561,1705,1708,1631,1635,1487,1780,1781,1558,1562,1486,1636,1637,1635,1563,1709,1710,1564,1562,1708,1711,1638,1634,1490,1783,1784,1565,1561,1491,1640,1641,1639,1567,1713,1714,1568,1566,1712,1715,1642,1638,1494,1787,1788,1565,1569,1495,1643,1644,1642,1570,1716,1717,1571,1569,1715,1718,1645,1641,1497,1790,1791,1572,1568,1498,1646,1645,1647,1573,1719,1720,1572,1574,1718,1721,1644,1648,1500,1793,1794,1571,1575,1501,1649,1650,1648,1576,1723,1722,1575,1577,1724,1721,1651,1647,1503,1797,1796,1578,1574,1502,1652,1653,1651,1579,1726,1725,1580,1578,1727,1724,1654,1650,1506,1800,1799,1581,1577,1507,1655,1654,1656,1582,1729,1728,1583,1581,1730,1727,1657,1653,1509,1803,1802,1584,1580,1510,1659,1658,1660,1586,1733,1732,1585,1587,1734,1731,1657,1661,1513,1807,1806,1584,1588,1512,1662,1663,1661,1589,1736,1735,1588,1590,1737,1734,1660,1664,1516,1810,1809,1591,1587,1517,1665,1666,1664,1592,1739,1738,1593,1591,1740,1737,1663,1667,1519,1813,1812,1594,1590,1520,1668,1667,1669,1595,1742,1741,1594,1596,1743,1666,1670,1522,1816,1740,1815,1593,1597,1521,1671,1672,1670,1598,1745,1744,1599,1597,1746,1669,1673,1525,1819,1743,1818,1596,1600,1524,1674,1673,1675,1601,1748,1747,1602,1600,1749,1676,1672,1528,1822,1746,1821,1603,1599,1527,1678,1679,1677,1605,1752,1751,1606,1604,1753,1676,1680,1532,1826,1750,1825,1607,1603,1533,1681,1680,1682,1608,1755,1754,1609,1607,1756,1683,1679,1535,1829,1753,1828,1606,1610,1534,1832,1905,1833,1906,1758,1831,1759,1907,1978,1834,1904,1979,1684,1760,1830,1757,1685,1980,1835,1836,1834,1761,1909,1908,1762,1760,1910,1833,1837,1687,1982,1907,1759,1763,1981,1688,1838,1837,1839,1764,1912,1911,1765,1763,1913,1836,1840,1690,1985,1910,1984,1766,1762,1691,1842,1841,1843,1768,1916,1915,1767,1769,1917,1844,1840,1694,1989,1914,1988,1770,1766,1695,1845,1844,1846,1771,1919,1918,1770,1772,1920,1843,1847,1697,1992,1917,1991,1769,1773,1696,1848,1849,1847,1774,1922,1921,1773,1775,1923,1850,1846,1700,1995,1920,1994,1776,1772,1701,1851,1852,1850,1777,1925,1924,1778,1776,1926,1853,1849,1703,1923,1998,1997,1779,1775,1704,1855,1854,1856,1781,1929,1928,1780,1782,1930,1927,1853,1857,1707,2002,2001,1779,1783,1708,1858,1857,1859,1784,1932,1931,1783,1785,1933,1930,1856,1860,1710,2005,2004,1782,1786,1709,1861,1860,1862,1787,1935,1934,1786,1788,1936,1933,1859,1863,1713,2008,2007,1785,1789,1712,1864,1865,1863,1790,1938,1937,1789,1791,1939,1936,1866,1862,1716,2011,2010,1792,1788,1717,1867,1868,1866,1793,1941,1940,1794,1792,1942,1939,1865,1869,1719,2014,2013,1795,1791,1720,1871,1870,1872,1797,1944,1945,1796,1798,1943,1946,1869,1873,1723,2017,2018,1795,1799,1722,1874,1875,1873,1800,1947,1948,1801,1799,1946,1949,1876,1872,1726,2020,2021,1802,1798,1727,1877,1876,1878,1803,1950,1951,1802,1804,1949,1952,1875,1879,1729,2023,2024,1801,1805,1728,1880,1879,1881,1806,1953,1954,1805,1807,1952,1955,1878,1882,1732,2026,2027,1804,1808,1731,1883,1884,1882,1809,1956,1957,1810,1808,1955,1958,1885,1881,1735,2029,2030,1811,1807,1736,1887,1888,1886,1813,1960,1961,1814,1812,1959,1889,1885,1739,1962,2033,2034,1815,1811,1740,1890,1891,1889,1816,1963,1964,1815,1817,1962,1888,1892,1742,2036,1965,2037,1814,1818,1741,1893,1894,1892,1819,1966,1967,1820,1818,1965,1895,1891,1745,2039,1968,2040,1821,1817,1746,1896,1895,1897,1822,1969,1970,1821,1823,1968,1894,1898,1748,2042,1971,2043,1820,1824,1747,1900,1901,1899,1826,1973,1974,1825,1827,1972,1898,1902,1752,2046,1975,2047,1824,1828,1753,1903,1904,1902,1829,1976,1977,1830,1828,1975,1905,1901,1755,2049,1978,1831,1827,2050,1756,2052,2053,2124,1979,2125,1980,2051,2126,2196,2054,2123,2197,1906,1981,2050,1907,1978,2198,2055,2056,2054,1982,2128,2127,1983,1981,2129,2057,2053,1909,2200,2126,2199,1984,1980,1908,2058,2059,2057,1985,2131,2130,1986,1984,2132,2060,2056,1912,2203,2129,2202,1987,1983,1911,2062,2061,2063,1989,2135,2134,1988,1990,2136,2060,2064,1916,2207,2133,2206,1987,1991,1917,2065,2064,2066,1992,2138,2137,1991,1993,2139,2067,2063,1919,2210,2136,2209,1994,1990,1918,2068,2069,2067,1995,2141,2140,1994,1996,2142,2070,2066,1922,2213,2139,2212,1997,1993,1921,2071,2072,2070,1998,2144,2143,1999,1997,2145,2069,2073,1925,2142,2216,2215,1996,2000,1926,2074,2073,2075,2001,2147,2146,2002,2000,2148,2145,2072,2076,1928,2219,2218,1999,2003,1927,2077,2078,2076,2004,2150,2149,2005,2003,2151,2148,2079,2075,1931,2222,2221,2006,2002,1932,2081,2082,2080,2008,2154,2153,2009,2007,2155,2152,2079,2083,1935,2226,2225,2006,2010,1936,2084,2085,2083,2011,2157,2156,2012,2010,2158,2155,2086,2082,1938,2229,2228,2013,2009,1939,2087,2086,2088,2014,2160,2159,2013,2015,2161,2158,2085,2089,1941,2232,2231,2012,2016,1940,2090,2089,2091,2017,2162,2163,2016,2018,2161,2164,2092,2088,1944,2234,2235,2019,2015,1945,2093,2094,2092,2020,2165,2166,2021,2019,2164,2167,2095,2091,1947,2237,2238,2022,2018,1946,2096,2095,2097,2023,2168,2169,2022,2024,2167,2170,2098,2094,1950,2240,2241,2021,2025,1949,2100,2099,2101,2027,2172,2173,2026,2028,2171,2174,2098,2102,1954,2244,2245,2025,2029,1953,2103,2102,2104,2030,2175,2176,2029,2031,2174,2177,2101,2105,1957,2247,2248,2032,2028,1956,2106,2107,2105,2033,2178,2179,2034,2032,2177,2108,2104,1960,2180,2250,2251,2035,2031,1959,2109,2108,2110,2036,2181,2182,2035,2037,2180,2107,2111,1963,2253,2183,2254,2034,2038,1962,2112,2113,2111,2039,2184,2185,2040,2038,2183,2114,2110,1966,2256,2186,2257,2041,2037,1967,2115,2116,2114,2042,2187,2188,2043,2041,2186,2113,2117,1969,2259,2189,2260,2040,2044,1968,2119,2118,2120,2046,2191,2192,2045,2047,2190,2117,2121,1973,2263,2193,2264,2048,2044,1972,2122,2121,2123,2049,2194,2195,2048,2050,2193,2120,2124,1976,2266,2196,2267,2047,2051,1975,2269,-1,-1,2339,2270,2197,-1,-1,2198,2268,-1,-1,-1,2271,2338,-1,2125,-1,2272,2273,2271,-1,2200,-1,2201,2199,-1,-1,-1,-1,2270,2274,2128,2202,-1,2129,2275,-1,2276,2274,2203,-1,2204,-1,2202,-1,-1,-1,2277,2273,2131,-1,-1,2205,2278,-1,2279,2277,2206,-1,2207,-1,2205,-1,-1,-1,2280,2276,2134,2208,-1,-1,2281,-1,2282,2280,2209,-1,2210,-1,2208,-1,-1,-1,2283,2279,2137,2211,-1,2138,2284,-1,2283,2285,2212,-1,2213,-1,2211,-1,-1,-1,2282,2286,2140,2214,-1,-1,2288,-1,2289,2287,2216,-1,2217,-1,2215,-1,-1,-1,2218,2290,2286,2144,-1,2145,2291,-1,2290,2292,2219,-1,2220,-1,2218,-1,-1,-1,2221,2289,2293,2147,-1,-1,2294,2293,2295,-1,-1,2222,2223,-1,-1,2221,-1,-1,2224,2296,2292,2150,2151,-1,2297,-1,2298,2296,2225,2226,-1,-1,2224,-1,2227,-1,-1,2299,2295,-1,-1,2153,2300,2301,2299,-1,-1,2228,2229,-1,-1,2227,2230,-1,-1,2302,2298,2156,2157,-1,2303,-1,2304,2302,2231,2232,-1,-1,2230,-1,2233,-1,-1,2305,2301,-1,-1,2159,2306,-1,2307,2305,2235,-1,2234,-1,-1,2236,2233,-1,-1,2308,2304,2163,2162,-1,2309,-1,2308,2310,2238,-1,2237,-1,2239,-1,-1,2236,-1,2307,2311,2166,2165,-1,2312,-1,2311,2313,2241,2240,-1,-1,2242,-1,-1,2239,-1,2310,2314,2169,-1,-1,2315,2314,2316,-1,2244,-1,2243,-1,-1,2245,-1,-1,2242,2317,2313,2172,2171,-1,2318,-1,2317,2319,2247,2246,-1,-1,2248,-1,-1,2245,-1,-1,2316,2320,-1,2175,2321,2320,2322,-1,2250,-1,2249,-1,2251,-1,-1,-1,2248,2319,2323,2178,2177,-1,2325,-1,2326,2324,2254,-1,2253,-1,2255,-1,-1,-1,-1,2327,2323,-1,2182,2252,2328,2329,2327,-1,2257,-1,2256,2258,-1,-1,-1,-1,2330,2326,2185,2255,2184,-1,2331,-1,2332,2330,2260,-1,2259,-1,2261,-1,-1,-1,2333,2329,2188,-1,-1,2258,2334,-1,2335,2333,2263,-1,2262,2264,-1,-1,-1,-1,2336,2332,2191,-1,2261,2190,2337,-1,2338,2336,2266,-1,2265,-1,2267,-1,-1,-1,2339,2335,2194,-1,-1,2264],"visual":[0,5,4,3,1,7,6,2,16,8,17,9,10,15,11,18,14,12,20,37,36,21,8,38,58,19,9,22,35,59,1,39,57,60,85,7,23,22,41,40,10,24,42,9,11,39,21,2,64,63,25,3,43,65,26,25,44,45,12,27,43,13,11,24,46,68,3,69,67,4,42,28,29,28,48,14,49,47,30,27,15,13,50,46,72,73,4,5,74,71,31,32,52,51,16,30,53,15,17,33,50,77,6,78,76,5,54,29,34,35,55,56,18,33,54,17,19,57,36,7,81,82,32,6,53,83,86,117,116,87,150,118,59,85,60,151,115,88,188,152,119,149,37,84,89,120,121,90,88,62,61,119,122,63,155,91,154,87,60,39,156,40,92,124,93,123,91,64,125,65,94,159,63,158,122,66,41,90,42,160,95,127,96,128,67,94,126,68,66,97,162,163,129,44,43,161,93,69,98,99,131,130,70,97,69,132,100,129,71,166,167,46,165,68,45,96,101,102,134,133,135,73,72,100,103,170,74,71,169,171,136,132,48,49,105,104,137,138,75,106,76,136,103,139,74,174,173,50,175,77,51,107,108,141,107,140,78,109,142,77,79,106,178,177,139,52,53,179,110,76,111,144,110,145,112,81,143,80,109,181,82,182,146,79,55,113,54,180,114,148,147,113,115,83,84,149,146,82,185,112,186,116,85,57,184,56,189,230,229,190,273,231,151,274,152,188,320,275,228,191,232,272,117,187,192,233,234,191,193,232,154,153,277,278,155,235,190,194,276,152,231,119,195,236,237,194,196,235,156,157,281,280,238,193,155,158,282,197,122,234,198,239,240,197,199,159,238,160,284,241,158,196,285,283,200,124,161,125,201,243,242,200,202,162,244,161,241,287,288,199,163,286,127,289,160,203,204,246,203,245,247,205,165,164,291,202,244,290,166,292,163,129,248,206,249,207,206,248,250,167,208,168,205,294,295,166,247,293,169,251,132,131,252,209,210,253,251,170,208,211,171,169,297,298,250,254,296,299,134,168,255,212,213,256,254,173,211,172,214,301,300,174,257,302,171,253,136,137,215,258,216,259,257,214,175,176,304,217,260,305,174,303,177,139,256,213,218,261,262,219,217,178,260,179,263,308,307,220,177,309,141,306,180,216,221,265,264,222,220,181,266,180,311,263,182,223,310,312,219,144,179,143,224,268,267,225,223,269,184,183,314,315,266,226,185,182,313,222,146,270,227,271,270,228,226,272,186,187,318,317,185,269,229,225,319,188,273,149,371,321,372,422,370,322,423,274,476,424,320,275,373,421,369,323,230,276,374,324,375,325,323,373,426,277,427,276,376,278,326,425,322,428,372,233,377,378,327,328,326,430,280,376,379,429,279,329,281,431,325,428,278,235,381,330,380,331,382,433,329,283,332,282,434,379,432,284,383,281,238,328,384,333,334,383,385,286,437,436,332,335,285,287,386,382,438,435,284,241,387,337,388,336,386,440,338,289,288,335,439,389,441,290,287,385,244,339,391,390,340,339,341,443,392,389,292,291,444,338,442,293,290,342,445,246,394,343,393,342,344,395,447,295,446,294,392,341,448,296,293,345,445,396,397,346,398,396,345,347,450,297,298,449,451,395,399,344,348,296,299,252,400,349,401,350,348,399,453,300,454,301,402,351,452,299,302,347,455,398,403,404,352,353,351,457,405,402,303,304,456,354,458,302,305,350,455,258,407,355,406,356,408,460,354,306,307,357,461,405,459,305,308,409,260,353,410,359,358,409,411,309,463,464,357,360,310,308,412,408,462,465,311,263,413,362,414,361,412,467,363,312,360,313,466,415,468,311,411,314,266,364,416,417,365,364,366,470,315,418,415,471,316,363,314,469,367,472,317,269,420,368,419,367,369,421,474,318,473,319,418,317,366,475,370,472,422,271,533,477,534,590,532,478,591,650,592,423,476,424,535,589,531,479,593,649,536,480,537,481,535,479,594,595,426,538,593,425,427,482,596,478,534,654,539,540,483,484,598,482,597,538,541,429,599,485,430,428,596,481,658,537,543,542,486,487,601,544,485,600,602,432,541,488,433,431,545,484,599,603,546,489,545,490,547,604,605,488,435,491,603,544,434,436,548,606,665,487,549,493,550,492,548,608,607,494,438,491,609,551,437,439,547,606,668,495,552,553,496,495,611,551,497,612,610,441,554,494,440,442,550,498,613,609,556,555,499,498,614,500,615,557,554,444,613,497,443,445,616,501,675,558,559,502,558,501,560,503,618,617,447,557,619,448,446,500,616,504,561,679,562,505,563,561,506,504,621,622,620,450,449,451,560,564,507,503,619,623,565,508,566,509,564,507,624,625,453,567,623,452,454,510,626,506,563,685,568,569,511,512,628,510,627,567,570,456,629,513,455,457,626,509,689,566,572,571,514,515,631,573,513,630,632,459,570,516,458,460,574,512,633,629,575,517,574,518,576,634,635,516,462,519,633,573,461,463,577,636,696,515,578,521,579,520,577,638,637,522,465,519,639,580,464,466,576,636,699,523,581,582,524,523,641,580,525,642,640,468,583,522,467,469,579,526,639,643,585,584,527,526,644,528,645,586,583,471,643,525,470,472,646,529,706,587,588,530,587,529,589,531,648,647,474,586,649,475,473,528,646,532,590,710,713,651,714,775,776,652,712,839,777,591,774,715,592,650,711,653,840,778,716,717,654,779,715,655,653,780,778,594,718,593,595,656,714,781,652,843,719,720,657,658,782,783,718,656,721,597,781,659,784,598,596,717,847,655,722,723,660,661,786,785,721,659,724,600,787,662,784,599,601,850,658,720,726,725,663,664,789,788,727,724,662,790,665,603,602,604,787,853,728,854,729,728,667,666,792,730,791,793,665,668,727,606,607,605,731,857,856,790,732,731,670,669,733,795,796,671,794,668,609,730,610,608,734,797,860,859,735,673,736,734,672,798,799,674,612,797,671,737,800,611,613,733,863,675,738,739,676,675,802,737,801,677,615,740,803,674,800,616,614,736,866,678,741,742,679,805,678,740,680,804,743,806,618,619,617,677,803,681,870,739,745,744,682,808,681,683,746,743,807,809,621,622,620,680,684,873,806,810,748,747,685,811,686,749,684,812,746,810,624,623,625,687,813,683,876,750,751,750,688,689,814,752,815,687,627,749,813,690,816,628,626,753,880,686,754,691,753,755,692,818,817,690,630,819,693,752,816,629,631,756,883,689,757,758,694,695,756,821,820,693,822,696,633,759,632,634,755,819,886,887,760,761,697,698,824,759,823,825,696,699,762,636,637,635,758,890,889,826,763,764,701,700,827,828,762,765,702,826,699,639,638,640,829,893,761,892,767,766,704,703,830,831,768,705,765,642,829,702,832,643,641,896,706,769,770,769,707,706,834,833,771,708,768,645,835,705,832,644,646,772,899,709,773,772,710,837,774,709,711,836,838,648,771,649,647,708,775,835,712,903,906,973,972,907,840,1040,974,841,905,776,971,908,1041,839,777,904,842,1039,909,910,976,843,908,977,844,842,975,911,779,978,845,1044,780,778,907,1045,912,913,846,979,980,847,911,914,845,978,981,782,848,783,1048,1047,781,910,916,915,983,849,850,982,917,914,984,848,851,785,981,1051,786,784,1050,1052,919,918,986,853,852,920,985,987,854,917,851,788,789,1054,984,921,787,1055,922,921,989,923,856,855,990,988,857,791,920,854,924,792,991,1057,1058,790,925,926,859,992,993,924,858,860,991,927,994,794,795,857,1061,923,1060,793,928,929,996,862,995,927,863,861,930,997,797,994,798,1064,864,860,796,926,932,931,999,865,866,998,933,1000,864,930,800,801,867,1067,997,1068,863,799,935,934,1002,868,869,936,1003,1001,867,933,870,803,804,1071,1004,1070,937,802,938,937,1005,939,871,1006,872,1004,870,873,936,1007,806,807,940,1074,1073,805,941,942,1009,940,875,1008,874,1010,876,873,943,1007,810,809,939,1077,1078,811,944,945,1012,878,877,943,1011,1013,879,946,876,813,812,1080,1010,1081,942,814,947,948,1015,881,880,1016,946,1014,882,949,816,815,879,1084,1017,1083,883,817,951,950,1018,884,1019,952,885,883,949,1017,819,1020,818,1087,886,882,820,953,954,953,887,1022,1021,955,888,886,1023,952,1020,822,821,889,1090,956,1091,823,957,958,1025,956,890,891,1024,1026,889,825,959,892,955,824,1023,1094,1093,826,960,961,1028,893,894,959,1029,1027,892,962,895,828,827,1097,1030,958,829,1096,963,964,1031,897,896,1032,962,965,1030,898,895,831,1033,1100,830,832,1101,1099,967,966,900,1035,1034,899,968,965,901,1036,1033,834,898,833,1103,1104,835,969,970,969,1038,903,971,1037,902,904,1039,968,837,1036,901,1107,836,838,972,1106,1110,1180,1111,1179,1041,1249,1181,1042,1109,1250,1178,1112,973,1320,1251,1248,1182,1043,1113,1183,1114,1184,1044,1112,1045,1182,1043,1115,1253,1185,976,1254,1046,1111,977,975,1116,1117,1186,1187,1047,1048,1115,1185,1118,1046,1188,1256,1257,1049,979,980,978,1114,1120,1119,1190,1189,1050,1051,1121,1118,1191,1188,1049,1052,1260,1259,982,983,1261,981,1123,1122,1193,1192,1054,1124,1053,1194,1121,1055,1052,1263,1191,985,1262,986,1264,1125,1126,1196,1125,1127,1057,1195,1056,1197,1058,1124,1266,1055,1128,988,1267,989,1194,1265,1129,1199,1130,1128,1060,1200,1198,1059,1061,1131,1269,1270,1127,992,1058,991,1201,1197,1132,1133,1202,1203,1063,1131,1062,1201,1064,1134,1273,1204,1272,995,994,1061,1130,1065,1135,1136,1205,1206,1066,1134,1067,1137,1065,1204,1207,1276,998,1275,997,1068,1277,1064,1139,1138,1209,1208,1069,1140,1070,1210,1137,1068,1207,1279,1001,1071,1280,1000,1278,1002,1142,1212,1141,1211,1143,1072,1073,1213,1071,1140,1282,1074,1210,1283,1004,1144,1003,1005,1145,1215,1144,1146,1075,1076,1216,1214,1077,1074,1286,1285,1147,1143,1007,1217,1213,1006,1148,1218,1149,1219,1147,1079,1078,1217,1080,1150,1289,1077,1220,1288,1010,1146,1011,1009,1151,1152,1221,1222,1082,1150,1081,1220,1153,1083,1223,1292,1013,1080,1291,1014,1293,1012,1155,1154,1225,1224,1085,1156,1084,1153,1086,1226,1223,1295,1016,1296,1017,1083,1294,1087,1158,1157,1228,1227,1088,1159,1089,1229,1087,1156,1298,1226,1299,1019,1020,1090,1160,1086,1161,1231,1160,1162,1091,1230,1232,1092,1090,1159,1302,1301,1163,1022,1093,1023,1229,1233,1164,1234,1165,1163,1094,1235,1095,1233,1093,1166,1305,1096,1162,1026,1304,1025,1236,1306,1167,1168,1237,1238,1097,1166,1098,1236,1169,1096,1099,1308,1239,1029,1309,1028,1307,1165,1170,1171,1240,1241,1101,1100,1169,1172,1239,1242,1102,1099,1311,1312,1032,1031,1310,1033,1174,1173,1244,1243,1104,1103,1175,1245,1172,1105,1242,1315,1314,1102,1035,1034,1036,1176,1177,1247,1176,1246,1107,1178,1106,1248,1108,1175,1318,1245,1038,1317,1105,1179,1037,1039,1321,1393,1322,1392,1464,1394,1250,1251,1320,1465,1323,1391,1537,1466,1395,1463,1180,1319,1324,1396,1325,1397,1323,1253,1395,1254,1252,1468,1326,1469,1398,1467,1322,1183,1255,1394,1327,1399,1328,1400,1326,1256,1398,1257,1255,1471,1329,1472,1401,1186,1258,1470,1325,1187,1330,1331,1402,1403,1259,1329,1260,1401,1332,1404,1258,1475,1474,1261,1189,1190,1476,1473,1334,1333,1406,1405,1262,1263,1335,1332,1407,1404,1478,1261,1477,1264,1192,1479,1193,1191,1337,1409,1336,1408,1265,1338,1266,1410,1335,1481,1407,1264,1480,1267,1482,1195,1196,1339,1340,1412,1339,1411,1341,1269,1268,1413,1484,1338,1270,1410,1267,1485,1483,1198,1342,1199,1343,1415,1342,1414,1344,1416,1272,1271,1487,1273,1488,1341,1270,1413,1345,1486,1201,1417,1346,1418,1347,1345,1419,1417,1275,1274,1490,1276,1491,1348,1344,1273,1420,1416,1204,1205,1349,1421,1350,1422,1348,1278,1420,1277,1279,1494,1493,1351,1423,1276,1347,1207,1208,1495,1352,1424,1353,1425,1281,1351,1423,1280,1282,1354,1497,1426,1496,1498,1210,1279,1211,1350,1355,1356,1427,1428,1284,1354,1357,1283,1426,1285,1500,1429,1499,1501,1213,1214,1282,1286,1359,1358,1431,1430,1287,1360,1357,1288,1432,1286,1503,1429,1504,1502,1217,1216,1289,1285,1362,1434,1361,1433,1290,1363,1435,1291,1289,1360,1506,1432,1507,1505,1220,1292,1219,1364,1365,1437,1364,1436,1366,1293,1438,1294,1292,1509,1510,1363,1435,1295,1367,1223,1222,1508,1368,1440,1367,1369,1439,1441,1296,1297,1513,1295,1512,1366,1370,1298,1438,1442,1226,1225,1371,1443,1372,1444,1370,1442,1299,1300,1516,1298,1515,1373,1301,1445,1369,1517,1229,1441,1374,1446,1375,1447,1373,1302,1303,1445,1519,1376,1301,1448,1304,1518,1520,1232,1372,1231,1377,1449,1378,1450,1306,1376,1305,1448,1379,1522,1451,1307,1523,1304,1521,1235,1234,1375,1380,1381,1452,1453,1309,1308,1379,1382,1451,1454,1525,1310,1526,1307,1238,1524,1237,1239,1384,1383,1456,1455,1312,1385,1311,1457,1382,1454,1313,1528,1529,1310,1241,1240,1527,1530,1387,1459,1386,1458,1388,1315,1460,1314,1316,1532,1385,1531,1457,1244,1313,1533,1389,1243,1390,1462,1389,1461,1391,1318,1463,1317,1319,1535,1388,1534,1460,1536,1392,1247,1316,1464,1611,1538,1539,1610,1612,1683,1465,1684,1466,1537,1685,1757,1540,1609,1613,1682,1393,1467,1614,1541,1542,1615,1540,1613,1468,1687,1469,1688,1467,1543,1616,1686,1539,1470,1612,1396,1617,1544,1618,1545,1543,1616,1471,1472,1690,1691,1546,1619,1470,1473,1689,1692,1399,1542,1621,1548,1620,1547,1475,1474,1549,1694,1546,1622,1619,1693,1476,1473,1695,1402,1692,1403,1624,1551,1623,1550,1552,1625,1478,1697,1477,1549,1696,1622,1479,1698,1476,1406,1553,1405,1627,1554,1553,1626,1555,1628,1481,1700,1480,1482,1701,1552,1699,1625,1556,1629,1479,1409,1630,1557,1558,1631,1556,1629,1484,1703,1485,1704,1483,1559,1702,1632,1555,1628,1412,1486,1633,1560,1634,1561,1559,1632,1487,1707,1488,1706,1562,1486,1635,1708,1489,1705,1558,1415,1636,1563,1637,1564,1562,1490,1635,1491,1710,1565,1638,1709,1489,1711,1492,1418,1708,1561,1640,1567,1639,1566,1494,1568,1713,1493,1641,1565,1638,1712,1714,1495,1492,1421,1422,1569,1643,1570,1642,1569,1571,1644,1497,1716,1496,1717,1568,1641,1498,1715,1495,1572,1424,1645,1646,1573,1572,1645,1574,1647,1500,1719,1720,1499,1501,1571,1644,1575,1718,1648,1721,1498,1649,1576,1577,1650,1575,1648,1503,1723,1722,1504,1502,1578,1651,1574,1724,1647,1721,1505,1652,1579,1653,1580,1578,1651,1506,1726,1507,1725,1581,1654,1505,1727,1508,1577,1434,1650,1655,1582,1656,1583,1509,1581,1729,1510,1654,1584,1657,1730,1728,1508,1511,1437,1436,1580,1659,1586,1658,1585,1587,1513,1660,1512,1732,1584,1657,1733,1514,1731,1511,1440,1734,1588,1662,1589,1661,1588,1590,1663,1516,1735,1515,1736,1587,1517,1660,1734,1514,1737,1591,1443,1665,1592,1591,1664,1593,1666,1519,1739,1518,1738,1520,1590,1740,1663,1594,1667,1446,1517,1668,1595,1596,1669,1594,1667,1522,1742,1523,1521,1741,1597,1743,1670,1593,1666,1524,1449,1671,1598,1672,1599,1597,1670,1525,1745,1526,1600,1746,1673,1524,1744,1527,1452,1596,1453,1674,1601,1675,1602,1528,1529,1600,1748,1603,1673,1676,1749,1527,1530,1747,1456,1750,1455,1678,1605,1677,1604,1606,1679,1532,1531,1752,1751,1603,1676,1533,1530,1753,1750,1459,1607,1681,1608,1607,1680,1609,1682,1535,1755,1534,1754,1536,1606,1679,1756,1610,1533,1683,1462,1832,1758,1833,1905,1759,1831,1906,1684,1978,1907,1685,1757,1834,1904,1830,1760,1611,1756,1835,1761,1836,1762,1834,1760,1909,1687,1910,1688,1837,1908,1763,1686,1759,1833,1689,1911,1838,1839,1764,1765,1912,1837,1913,1763,1690,1840,1691,1766,1911,1689,1692,1914,1617,1618,1842,1841,1768,1767,1843,1916,1915,1769,1694,1693,1840,1766,1695,1917,1914,1692,1770,1844,1845,1771,1844,1770,1846,1772,1919,1918,1697,1696,1698,1843,1769,1920,1773,1847,1917,1695,1848,1774,1849,1775,1847,1773,1922,1700,1921,1701,1923,1699,1850,1776,1772,1846,1702,1627,1851,1777,1852,1778,1925,1850,1776,1703,1704,1926,1853,1924,1779,1702,1705,1775,1849,1630,1855,1854,1781,1780,1928,1856,1853,1782,1929,1707,1779,1706,1927,1708,1705,1930,1633,2001,1858,1784,1857,1783,1859,1785,1931,1932,1710,1709,1856,1782,1711,1930,1933,1708,1786,1860,1861,1787,1860,1862,1786,1788,1935,1934,1713,1712,1714,1859,1785,1936,1789,1863,1933,1711,1864,1790,1865,1791,1863,1789,1938,1716,1937,1717,1866,1792,1715,1939,1788,1862,1936,1718,1867,1868,1793,1794,1941,1866,1792,1719,1720,1869,1940,1795,1942,1718,1721,1646,1791,1865,1871,1870,1797,1796,1944,1872,1798,1723,1722,1869,1945,1795,1943,1724,1721,1649,1799,1873,1874,1800,1873,1799,1875,1801,1947,1726,1948,1725,1872,1798,1727,1946,1802,1876,1949,1724,1877,1803,1878,1876,1804,1802,1950,1951,1729,1730,1728,1879,1805,1949,1801,1875,1952,1731,1880,1806,1881,1807,1879,1805,1954,1953,1732,1733,1882,1808,1731,1955,1952,1734,1804,1878,1883,1884,1809,1810,1957,1882,1885,1808,1956,1735,1811,1736,1958,1734,1737,1955,1662,2030,1887,1813,1886,1812,1960,1888,1814,1739,1738,1959,1885,1961,1811,1740,1737,1815,1889,1665,1890,1816,1889,1815,1891,1817,1963,1742,1964,1741,1962,1743,1888,1814,1818,1892,1740,1668,1893,1819,1894,1820,1892,1818,1966,1967,1745,1746,1744,1895,1821,1965,1817,1891,1968,1747,1896,1897,1822,1823,1895,1969,1970,1821,1748,1749,1898,1824,1747,1968,1971,1750,1820,1894,1900,1899,1826,1825,1973,1901,1972,1827,1752,1898,1751,1824,1974,1753,1750,1971,1678,1677,1903,1829,1902,1828,1904,1830,1976,1755,1975,1754,1901,1977,1827,1756,1831,1905,1753,1974,2052,1979,2053,2124,2125,1980,2051,2126,2196,1906,1907,1978,2054,2123,2050,1981,2197,2127,2055,1982,2056,1983,2128,2054,1981,2129,1909,2127,1910,2057,1984,1908,2053,2200,1980,2130,2058,2059,1985,1986,2131,2057,2132,1984,1912,2060,1913,2130,1987,1911,2133,1914,2203,2204,2062,2061,1989,1988,2134,2135,2063,2060,1990,1987,1916,1915,2133,2136,1917,1914,2206,2207,2065,2064,1992,1991,2138,2137,2066,1993,1919,2063,1918,1990,2139,2136,1920,1917,2210,2209,2068,1995,2067,1994,2069,2141,2140,1996,1922,1921,2142,2066,1923,1993,2139,2070,1997,2213,2071,1998,2072,2070,2144,1999,1997,2143,1925,2145,1926,1924,2073,2000,2069,1996,2142,2216,2074,2075,2001,2002,2147,2073,2000,2146,2148,1928,1929,2076,2003,1927,2219,2072,1999,1930,2077,2078,2004,2005,2150,2076,2151,2003,2149,2079,1931,1932,2006,1930,1933,2222,2152,2075,2081,2080,2008,2007,2153,2154,2082,2079,2009,1935,2152,2006,1934,1936,1933,2225,2155,2226,2084,2083,2011,2010,2156,2085,2157,2012,1938,2082,1937,2155,2009,1939,2158,2228,2086,1936,2087,2014,2086,2088,2013,2159,2160,2015,1941,1940,2158,1942,2085,2012,2161,2089,2016,2231,2090,2017,2091,2089,2018,2163,2162,2016,1944,1945,2164,1943,2092,2019,2161,2088,2015,2235,2093,2094,2020,2021,2166,2092,2165,2019,1947,2095,1948,2167,2022,1946,2164,2238,2091,1949,2096,2097,2023,2024,2169,2168,2095,2098,2022,1950,2170,2025,1951,1949,1952,2241,2167,2240,2100,2099,2027,2026,2172,2101,2171,2028,2173,2098,1954,1953,2025,1955,1952,2244,2170,2102,2103,2102,2030,2029,2175,2104,2031,2176,2174,1957,1956,2101,2028,1958,2247,2105,2032,1955,2106,2033,2105,2107,2178,2032,2034,2179,1960,2177,1959,1961,2104,2031,2108,2035,2180,2250,2109,2036,2110,2037,2108,2181,2182,2035,1963,1964,2180,2111,1962,2038,2183,2107,2034,2253,2112,2113,2039,2040,2184,2185,2111,2038,1966,2114,1967,2041,2183,2186,1965,1968,2256,2257,2115,2116,2042,2043,2188,2187,2114,2117,2041,2044,1969,1970,2189,2186,1968,1971,2260,2259,2119,2118,2046,2045,2191,2120,2190,2047,1973,2117,1972,2192,2044,1974,2189,1971,2263,2262,2122,2049,2121,2048,2194,2123,2050,2193,1976,2195,1975,2120,2047,1977,2124,2266,2051,2192,2269,2197,-1,-1,2270,2339,-1,2198,2268,-1,2125,-1,-1,2126,2196,-1,2338,2271,2272,2200,2273,-1,-1,2271,2201,2199,-1,-1,2128,-1,-1,2129,2274,2202,2127,2270,2275,2276,-1,2203,2204,2274,-1,-1,2202,2131,-1,2132,2277,2205,-1,-1,-1,2130,2278,2279,2206,-1,-1,2207,2277,-1,2205,-1,2134,2280,2208,2135,-1,-1,2133,-1,2281,2282,-1,2210,2209,-1,-1,2280,2211,2283,2208,2138,2137,-1,-1,-1,-1,-1,2284,2285,-1,2213,-1,2212,2283,-1,2214,2286,2141,-1,-1,2140,2211,-1,2142,-1,2288,2287,-1,2216,2215,-1,-1,2217,2289,2286,2144,-1,2143,-1,2214,-1,2145,-1,2291,2290,2219,-1,-1,2218,2220,2292,-1,2289,2147,-1,-1,-1,2146,2148,2217,-1,2294,2293,2222,-1,-1,2223,2295,2221,-1,2150,2292,-1,-1,-1,2151,2149,2224,-1,2297,2296,2225,-1,-1,2226,2298,2224,-1,2153,-1,2295,-1,2154,-1,2227,2152,-1,2300,2299,-1,2228,-1,2229,2301,-1,2227,2156,-1,-1,2157,2230,2298,-1,2155,2302,2303,-1,2302,2231,2232,2304,-1,-1,2230,2233,2159,-1,2160,-1,-1,2301,2305,-1,2306,-1,2307,2235,2234,2305,-1,-1,2236,2233,2163,-1,2162,-1,-1,2308,2304,2164,2309,2310,-1,2238,2237,2308,-1,-1,2239,2166,-1,2165,2236,2311,-1,-1,-1,2167,2312,2313,2241,-1,-1,2240,2311,2242,-1,-1,2169,2314,-1,-1,2168,2239,2170,-1,2315,2316,2244,-1,-1,2243,-1,2314,2245,2172,2317,-1,2171,2173,-1,-1,-1,2242,2318,2319,2247,-1,-1,2248,2246,2317,-1,2320,-1,2175,-1,-1,2176,2174,2249,2245,2321,2322,-1,2250,2251,-1,-1,2249,2320,2323,2178,-1,2179,2252,-1,-1,-1,-1,2325,2324,2253,-1,-1,2254,2326,2252,2323,-1,-1,2181,2182,2255,-1,-1,2180,-1,2328,2327,-1,2256,2257,-1,-1,2329,2255,2326,2258,2184,2185,-1,-1,-1,-1,-1,2331,2330,2260,-1,-1,2259,2332,-1,2261,-1,2188,2329,2258,2187,-1,-1,2189,-1,2334,2333,-1,2263,2262,2335,-1,-1,2264,2191,-1,2190,2332,2261,-1,-1,2192,-1,2337,2266,2336,-1,-1,2338,2265,2267,-1,2194,-1,-1,-1,2193,2335,2264,2195,2339]},"4":{"rings":56,"count":4187,"defaultK":17,"kMax":32,"geodesic":[0,5,4,1,2,6,3,7,14,9,19,16,12,17,11,10,18,15,13,8,24,34,21,37,31,27,36,22,29,28,30,32,38,60,39,20,61,88,62,21,37,59,40,8,89,87,63,90,120,22,36,19,9,91,119,64,86,41,58,1,121,122,157,92,42,43,41,66,23,65,24,67,22,64,40,44,10,95,94,68,25,96,11,93,9,21,63,97,39,45,69,92,127,2,128,126,46,47,45,71,26,70,27,72,25,69,44,48,100,12,101,28,99,73,13,102,11,68,24,98,43,49,134,74,133,3,29,103,49,50,48,74,29,75,28,73,76,30,51,47,27,104,14,105,13,103,72,106,77,15,31,102,52,46,26,107,139,138,4,12,53,52,54,79,32,80,31,78,33,81,55,51,110,16,109,30,111,77,15,108,17,82,34,112,56,50,145,76,146,6,29,107,57,58,56,84,35,85,34,83,36,86,59,55,18,115,116,82,33,114,17,117,19,37,87,113,60,54,81,118,152,7,151,153,158,198,159,121,199,200,243,157,122,197,160,89,244,201,242,245,291,156,123,120,90,290,246,196,161,241,202,61,292,119,91,293,162,163,161,203,125,204,124,202,126,205,123,164,160,92,249,248,93,250,91,201,247,206,127,122,94,251,165,159,297,64,90,298,166,165,167,208,128,207,129,209,127,206,164,168,95,253,254,130,96,210,252,94,126,255,205,97,163,169,251,302,131,66,67,303,170,169,171,212,132,213,131,211,133,172,168,214,258,98,99,130,259,257,210,134,97,260,100,256,215,173,167,307,69,129,308,209,217,218,216,263,174,175,264,262,173,176,219,215,265,313,136,312,135,314,261,137,311,172,134,315,177,266,214,220,366,102,138,367,179,178,180,222,140,223,139,221,141,181,177,269,105,268,224,106,220,138,142,270,267,104,107,225,182,176,271,319,219,75,318,266,226,225,227,273,183,182,272,274,184,181,224,228,271,323,143,324,144,322,275,142,325,185,145,321,180,270,229,223,377,108,141,376,187,186,188,231,147,230,148,232,146,185,189,229,278,112,111,149,277,279,233,145,113,276,110,280,228,184,190,329,81,150,328,234,191,192,190,235,151,236,150,234,152,237,193,189,115,283,282,149,114,233,284,116,153,281,238,113,194,188,285,334,148,84,83,333,195,194,196,240,154,239,155,241,153,238,156,193,197,118,287,288,117,286,119,242,289,237,152,157,116,285,192,198,339,86,120,338,399,400,456,344,457,517,458,345,398,401,455,292,518,516,459,581,519,293,343,346,397,580,520,342,294,402,454,244,582,515,460,583,403,402,404,461,348,462,347,460,349,405,401,463,522,296,523,346,295,459,521,350,297,524,294,464,406,400,345,247,520,587,586,248,407,406,408,465,352,466,351,464,353,467,350,409,405,527,299,526,300,528,298,463,525,354,468,301,349,529,404,410,591,297,251,250,411,410,412,470,355,469,356,471,354,468,357,409,413,531,303,532,302,530,304,472,533,353,301,467,358,529,408,414,254,596,595,305,416,415,417,475,360,474,361,476,359,414,418,537,307,473,536,308,362,477,538,358,306,535,309,539,472,413,419,258,601,602,305,363,420,421,419,479,364,480,363,478,365,422,418,541,311,481,542,310,362,477,540,312,366,543,309,539,423,417,482,606,313,261,262,605,424,423,425,483,368,484,367,482,369,485,422,426,366,546,314,545,315,547,481,313,544,370,316,486,365,421,427,265,548,610,611,264,428,427,429,487,488,371,372,486,489,370,373,426,430,318,550,549,551,317,319,485,490,369,374,548,552,316,320,425,431,268,615,614,432,431,433,492,375,491,376,493,374,490,430,434,377,554,322,555,321,553,494,323,556,373,320,489,378,429,435,271,552,620,619,272,436,435,437,496,379,495,380,497,378,434,438,559,325,494,558,326,381,498,560,324,377,557,327,561,433,439,493,624,323,275,274,625,440,439,441,500,383,501,382,499,384,438,442,563,329,502,564,328,381,498,562,385,330,565,327,561,503,443,437,278,629,628,331,380,445,446,444,505,388,506,387,504,389,507,386,447,443,569,333,568,334,570,332,503,567,390,335,508,385,571,442,448,282,634,635,331,449,448,450,510,391,509,392,511,390,508,393,447,451,573,337,574,336,572,338,512,575,389,507,335,394,571,446,452,639,339,285,286,453,452,454,514,395,513,396,515,394,451,455,512,578,340,577,397,341,516,579,393,339,576,342,511,450,456,398,289,580,643,644,288,648,649,716,582,717,787,718,647,583,650,715,518,788,719,786,789,860,581,519,646,584,790,859,580,520,651,714,457,861,785,720,862,652,651,653,721,586,585,722,720,587,650,654,792,522,723,584,521,793,719,791,523,588,794,520,790,655,649,724,865,583,461,460,866,657,656,658,726,591,590,727,725,592,589,728,655,659,526,798,797,527,724,525,799,796,528,593,588,729,654,660,465,871,870,800,524,661,660,662,730,594,595,731,729,593,732,596,663,659,530,802,801,531,529,803,728,800,592,733,597,532,528,804,664,658,875,468,469,665,664,666,598,734,735,599,597,733,736,663,667,806,534,600,533,805,807,535,596,732,737,532,804,808,601,662,668,472,879,536,880,670,669,671,603,740,739,604,602,741,738,668,672,811,538,539,812,605,601,810,537,742,540,813,737,667,673,809,885,476,477,884,606,674,673,675,607,744,743,606,608,745,672,676,742,542,816,815,605,543,541,609,746,817,814,544,741,540,677,671,480,889,604,890,818,678,679,677,748,611,610,747,749,612,680,676,609,546,820,746,819,545,750,547,821,613,818,544,608,822,681,675,745,548,894,484,483,683,684,682,753,615,616,754,752,614,617,685,681,825,550,551,755,751,826,824,549,552,613,618,827,823,686,680,488,899,756,750,900,687,688,686,757,619,620,758,756,618,685,689,621,554,829,759,830,555,755,553,828,617,831,556,622,827,684,690,760,552,903,491,492,691,692,690,623,761,762,624,622,760,693,689,763,558,833,834,625,557,559,621,759,832,835,556,764,560,694,688,495,908,626,907,831,695,694,696,627,765,766,626,628,764,767,693,697,838,562,561,837,625,629,839,563,763,560,836,768,692,698,840,912,499,498,913,624,700,699,701,632,771,770,631,633,772,769,698,702,843,566,630,567,844,842,565,634,773,768,568,845,841,629,697,703,503,918,564,917,704,705,703,775,636,635,774,776,637,773,634,706,702,570,847,848,569,571,846,777,849,638,772,633,568,572,845,707,701,922,507,506,708,709,707,779,639,640,778,780,638,641,777,710,706,574,851,852,573,781,575,850,853,572,637,642,776,711,705,510,926,927,849,576,713,714,712,784,644,645,783,785,643,715,711,857,578,782,646,579,856,786,858,577,642,855,580,859,716,710,781,932,647,514,515,931,936,937,1012,861,1013,1014,1091,862,935,938,1011,788,1092,1090,1015,1172,1093,789,860,863,934,1171,1094,790,859,1010,939,717,1173,1016,1089,1254,940,941,939,1017,865,1018,864,1016,866,942,938,1096,792,1019,1097,863,791,1015,1095,867,793,1098,790,1094,943,937,1020,1177,794,721,720,1178,945,946,944,1022,870,1023,869,1021,871,947,943,1024,868,1101,797,1102,796,1020,1100,872,1103,798,795,1025,867,948,942,725,1183,1182,726,1099,949,950,948,1026,874,1027,873,1025,875,1028,872,951,947,1106,800,1105,801,1107,799,1024,876,1104,802,1029,871,952,946,729,1187,1108,798,1186,953,954,952,1030,878,1031,877,1029,879,1032,876,955,951,1110,804,1109,805,1111,803,1028,880,1033,1108,875,806,1112,802,956,950,1191,733,732,957,958,956,1035,881,1034,882,1036,880,1033,883,959,955,1114,808,1115,807,1113,809,1037,879,1032,1116,884,806,1112,810,954,960,1195,736,1196,962,963,961,1040,886,1039,887,1041,885,1038,888,964,960,1119,813,1120,812,1118,814,1042,884,1121,811,1037,889,965,959,741,1201,1117,1200,815,966,965,967,1044,890,1043,891,1045,889,968,964,1042,1124,816,892,1123,817,1046,1125,888,815,1122,818,1041,893,963,969,1205,745,744,1126,1204,970,971,969,1048,894,1047,895,1049,893,972,968,1128,820,1046,1127,896,821,1050,1129,892,819,1126,822,1130,973,967,1045,1209,748,818,897,749,975,976,974,1053,899,1054,1052,898,900,977,973,1133,825,1055,1134,1051,1132,824,897,826,901,1135,1131,823,827,978,972,753,1215,1214,1056,1050,979,978,980,1057,903,1058,902,1056,904,977,981,1137,829,1059,1138,901,828,1055,1136,905,830,1139,827,1135,976,982,1060,1219,757,831,900,756,983,984,982,1061,907,1062,906,1060,908,985,981,1063,1141,833,905,1142,832,1059,1140,909,834,1143,831,1064,904,986,980,1223,760,761,1139,1224,987,986,988,1065,911,1066,910,1064,912,1067,909,985,989,1146,836,1145,837,1147,835,1063,913,1144,838,1068,908,984,990,764,1227,1148,1228,834,992,991,993,1070,916,1071,915,1069,917,1072,914,990,994,1151,841,1150,842,1152,840,1068,918,1073,1149,913,843,1153,839,989,995,1233,769,1232,996,997,995,1075,919,1074,920,1076,918,1073,921,994,998,1155,845,1156,844,1154,846,1077,917,1072,1157,922,843,1153,847,993,999,1237,772,773,1000,1001,999,1079,923,1078,924,1080,922,1077,925,998,1002,1159,849,1160,848,1158,850,1081,921,1161,847,1076,926,1003,997,776,1241,1157,851,1242,1004,1005,1003,1083,927,1082,928,1084,926,1006,1002,1081,929,1164,852,1163,853,1085,1165,925,1162,851,854,1080,930,1007,1001,780,1245,1246,779,1166,1009,1010,1008,1088,932,1087,933,1089,931,1011,1007,1169,857,1086,1168,934,858,1090,1170,930,856,1167,859,1171,1012,1006,1085,1251,855,784,785,1250,1255,1338,1256,1339,1173,1340,1423,1254,1174,1337,1257,1092,1424,1341,1422,1425,1509,1172,1093,1253,1175,1508,1426,1171,1094,1336,1258,1013,1510,1342,1421,1511,1259,1260,1258,1343,1177,1176,1344,1342,1178,1261,1257,1428,1096,1175,1345,1095,1429,1341,1427,1097,1179,1094,1430,1426,1098,1262,1256,1514,1017,1346,1174,1016,1263,1264,1262,1347,1181,1180,1348,1346,1182,1265,1261,1432,1100,1179,1099,1349,1433,1345,1431,1101,1183,1098,1434,1430,1266,1260,1178,1518,1350,1021,1020,1102,1268,1269,1267,1352,1186,1185,1353,1351,1187,1184,1270,1266,1437,1105,1104,1354,1438,1350,1436,1106,1188,1103,1439,1183,1271,1265,1355,1025,1524,1435,1523,1026,1272,1271,1273,1356,1190,1189,1357,1355,1191,1188,1270,1274,1358,1108,1441,1442,1109,1354,1440,1107,1443,1110,1192,1187,1359,1269,1275,1029,1528,1439,1527,1106,1276,1275,1277,1360,1193,1194,1361,1359,1192,1195,1274,1278,1362,1112,1446,1445,1113,1111,1358,1444,1447,1114,1191,1196,1363,1279,1273,1532,1033,1110,1032,1533,1280,1281,1279,1364,1197,1198,1365,1363,1196,1199,1366,1278,1282,1116,1450,1449,1117,1115,1451,1362,1448,1195,1118,1200,1367,1114,1277,1283,1536,1037,1036,1452,1284,1283,1285,1201,1368,1369,1202,1200,1367,1370,1203,1282,1286,1120,1454,1453,1119,1121,1455,1366,1199,1452,1371,1118,1122,1204,1287,1281,1040,1540,1456,1541,1289,1288,1290,1206,1373,1374,1207,1205,1372,1375,1287,1291,1459,1125,1208,1124,1458,1460,1126,1204,1371,1457,1123,1376,1461,1286,1292,1209,1127,1045,1546,1545,1293,1292,1294,1210,1377,1378,1211,1209,1376,1379,1291,1295,1463,1129,1128,1212,1462,1464,1208,1130,1127,1375,1380,1461,1465,1290,1296,1550,1049,1213,1048,1549,1297,1298,1296,1214,1382,1381,1215,1213,1383,1380,1295,1299,1467,1132,1133,1468,1466,1212,1216,1131,1134,1384,1379,1469,1465,1294,1300,1554,1053,1052,1553,1555,1301,1302,1300,1218,1386,1385,1217,1219,1387,1384,1303,1299,1471,1136,1137,1216,1472,1470,1220,1135,1138,1388,1383,1473,1469,1304,1298,1558,1056,1215,1057,1559,1305,1306,1304,1222,1390,1389,1221,1223,1391,1388,1307,1303,1475,1140,1220,1141,1476,1474,1139,1224,1392,1477,1142,1387,1473,1308,1302,1219,1138,1060,1562,1563,1310,1311,1309,1227,1395,1394,1226,1228,1396,1393,1225,1312,1308,1145,1480,1481,1146,1144,1479,1397,1229,1482,1392,1147,1143,1224,1313,1307,1065,1568,1478,1567,1314,1313,1315,1399,1231,1230,1398,1400,1232,1229,1397,1312,1316,1149,1484,1485,1148,1150,1483,1401,1486,1233,1147,1228,1396,1151,1311,1317,1572,1068,1069,1482,1318,1317,1319,1403,1234,1235,1402,1404,1233,1236,1316,1320,1401,1153,1488,1489,1152,1154,1405,1490,1487,1151,1232,1237,1400,1315,1321,1576,1072,1155,1073,1575,1322,1323,1321,1407,1238,1239,1406,1408,1237,1240,1324,1320,1405,1157,1493,1492,1156,1409,1494,1158,1491,1155,1236,1241,1404,1325,1319,1076,1580,1495,1581,1159,1326,1325,1327,1411,1242,1243,1410,1412,1241,1244,1328,1324,1497,1160,1161,1409,1496,1413,1498,1159,1240,1162,1495,1245,1329,1323,1408,1080,1584,1499,1585,1079,1331,1330,1332,1416,1247,1248,1415,1417,1246,1329,1333,1502,1165,1249,1166,1414,1501,1418,1503,1164,1245,1167,1500,1504,1328,1334,1250,1590,1413,1084,1085,1163,1335,1336,1334,1420,1251,1252,1419,1421,1250,1333,1337,1506,1169,1253,1418,1170,1505,1422,1507,1168,1249,1171,1504,1508,1167,1332,1338,1594,1088,1417,1254,1089,1687,1776,1688,1777,1598,1778,1867,1686,1599,1775,1689,1868,1510,1779,1866,1959,1869,1685,1600,1511,1597,1958,1870,1596,1512,1690,1774,1424,1960,1780,1865,2052,1691,1692,1690,1781,1602,1782,1601,1780,1603,1689,1693,1872,1514,1783,1873,1600,1513,1779,1871,1604,1515,1874,1512,1870,1516,1688,1694,1964,1428,1784,1427,1965,1696,1695,1697,1786,1607,1787,1606,1785,1608,1694,1698,1877,1519,1788,1605,1878,1518,1784,1876,1609,1520,1879,1517,1875,1521,1693,1699,1969,1433,1789,1432,1604,1700,1699,1701,1790,1611,1791,1610,1789,1612,1698,1702,1881,1523,1792,1609,1882,1522,1788,1613,1880,1524,1883,1521,1697,1703,1793,1879,1608,1973,1436,1525,1974,1704,1703,1705,1794,1615,1795,1614,1793,1616,1702,1706,1885,1527,1796,1613,1886,1526,1792,1617,1884,1528,1887,1525,1797,1612,1701,1707,1440,1978,1977,1883,1441,1708,1709,1707,1798,1619,1799,1618,1797,1620,1710,1706,1800,1617,1889,1531,1890,1530,1796,1621,1888,1532,1891,1529,1801,1616,1711,1705,1444,1982,1981,1887,1445,1713,1714,1712,1803,1624,1804,1623,1802,1625,1805,1622,1711,1715,1895,1535,1894,1536,1896,1534,1801,1626,1893,1537,1806,1621,1710,1716,1987,1449,1897,1986,1448,1717,1718,1716,1807,1628,1808,1627,1806,1629,1809,1626,1719,1715,1899,1539,1898,1540,1900,1538,1805,1630,1897,1541,1810,1625,1714,1720,1991,1453,1901,1452,1537,1721,1720,1722,1811,1632,1812,1631,1810,1633,1813,1630,1719,1723,1903,1543,1902,1544,1904,1542,1809,1634,1901,1545,1814,1629,1905,1718,1724,1995,1541,1456,1457,1726,1727,1725,1816,1637,1817,1636,1815,1638,1818,1635,1728,1724,1908,1548,1907,1549,1909,1547,1814,1639,1906,1819,1550,1634,1910,1546,1729,1723,1461,2000,2001,1730,1729,1731,1820,1641,1821,1640,1819,1642,1822,1639,1728,1732,1912,1552,1911,1553,1913,1551,1818,1643,1823,1638,1910,1554,1914,1550,1727,1733,1465,2004,2005,1734,1735,1733,1825,1644,1824,1645,1826,1643,1823,1646,1736,1732,1916,1556,1917,1555,1915,1557,1827,1642,1822,1647,1918,1554,1914,1558,1737,1731,1469,2009,2008,1738,1737,1739,1829,1648,1828,1649,1830,1647,1827,1650,1736,1740,1920,1560,1921,1559,1919,1561,1831,1646,1922,1826,1558,1651,1918,1562,1735,1741,1473,2013,2012,1743,1744,1742,1834,1653,1833,1654,1835,1652,1832,1655,1745,1741,1925,1565,1926,1564,1924,1566,1836,1651,1927,1563,1831,1656,1923,1746,1740,2018,1567,1478,1477,1747,1748,1746,1838,1657,1837,1658,1839,1656,1836,1659,1749,1745,1929,1569,1930,1568,1928,1570,1840,1655,1931,1567,1835,1660,1750,1744,2022,1481,1927,1482,1571,1751,1750,1752,1842,1661,1841,1662,1843,1660,1840,1663,1753,1749,1933,1573,1934,1572,1932,1574,1844,1659,1935,1571,1839,1664,1748,1754,2026,1485,1931,2027,1486,1756,1755,1757,1847,1666,1846,1667,1848,1665,1754,1758,1845,1668,1939,1577,1938,1578,1849,1664,1940,1576,1937,1579,1844,1669,1753,1759,1490,2031,2032,1941,1489,1760,1759,1761,1851,1670,1850,1671,1852,1669,1758,1762,1943,1581,1849,1672,1942,1582,1853,1668,1944,1580,1941,1583,1848,1673,1757,1763,1494,2035,2036,1945,1493,1764,1763,1765,1855,1674,1854,1675,1856,1673,1766,1762,1947,1585,1853,1676,1946,1586,1857,1672,1948,1584,1945,1587,1767,1761,1852,1949,1677,2040,1498,1583,2039,1768,1769,1767,1859,1678,1858,1679,1860,1677,1770,1766,1951,1589,1857,1680,1950,1590,1861,1952,1676,1588,1949,1591,1953,1587,1765,1771,2044,1501,1856,1502,1681,1773,1774,1772,1864,1683,1863,1684,1865,1682,1771,1775,1956,1594,1862,1955,1685,1595,1866,1957,1681,1593,1954,1596,1958,1592,1770,1776,2049,1506,1861,1507,2048,2053,2146,2054,2147,1960,2240,2148,2052,1961,2145,2055,1868,2241,2239,2149,2242,2335,2051,1962,1959,1869,2243,2334,1958,1870,2144,2056,1777,2336,2238,2150,2050,2057,2056,2058,2151,1964,1963,2152,2150,1965,2059,2055,2245,1872,1962,1871,2246,2149,2153,2244,1966,1873,1870,2247,2243,1874,2054,2060,2340,1781,1961,1780,2341,2062,2061,2063,2156,1969,1968,2155,2157,1970,2060,2064,2250,1877,1967,1876,2251,2154,2158,2249,1971,1878,1875,2252,2248,1879,2065,2059,2345,1786,1966,1785,2346,2066,2065,2067,2160,1973,1972,2159,2161,1974,2064,2068,2254,1881,1971,1880,2255,2158,2162,2253,1975,1882,1879,2256,2252,2063,2069,2349,1970,1790,1883,1789,2350,2070,2071,2069,2164,1977,1976,2165,2163,1978,2072,2068,2258,1885,1975,1884,2259,2166,2162,2257,1979,1886,1883,2260,2256,2067,2073,1974,2353,1793,1794,2354,1887,2074,2073,2075,2168,1981,1980,2167,2169,1982,2072,2076,2262,1979,1889,1888,2263,2166,2170,2261,1983,1890,1887,2264,1978,2260,2071,2077,1797,2357,2358,1798,2165,2079,2080,2078,2173,1986,1985,2174,2172,1987,2081,2077,1984,2267,1893,1894,2268,2175,2171,2266,1892,1988,1895,2269,1983,2082,2076,1802,2265,2363,2362,1803,2176,2083,2082,2084,2177,1990,1989,2176,2178,1991,1988,2081,2085,2271,1897,1898,2272,2179,2175,2270,1896,1992,1899,2273,1987,2080,2086,1806,2367,2269,2366,1895,2174,2087,2086,2088,2181,1994,1993,2180,2182,1995,1992,2089,2085,1901,2275,2276,1902,2183,2179,1900,2274,1996,2277,1903,1991,2090,2084,1810,2371,1899,2273,2370,1809,2091,2092,2090,2185,1998,1997,2186,2184,1999,1996,2089,2093,1905,2279,2280,1906,2183,2187,1904,2278,2281,2000,1907,1995,1903,2088,2094,2375,1814,2374,1813,2277,2096,2097,2095,2190,2003,2002,2191,2189,2004,2001,2098,2094,1910,2284,2285,1911,2192,2188,1909,2283,2286,2005,2000,1912,1908,2093,2099,2380,1819,1818,2379,2282,2100,2101,2099,2194,2007,2006,2195,2193,2008,2005,2102,2098,1914,2289,2288,2196,2192,1915,1913,2290,2287,2009,2004,1916,1912,2103,2097,2384,1823,1822,2197,2191,2104,2105,2103,2198,2010,2011,2199,2197,2009,2012,2106,2102,1918,2293,2292,1917,2200,2196,1919,2294,2291,2008,2013,1916,1920,2107,2101,2388,1826,1827,2389,2295,2109,2108,2110,2203,2015,2016,2202,2204,2014,2017,2111,2107,1923,2298,2297,1922,2205,2201,1924,2299,2296,2013,1921,2018,1925,2112,2106,2393,1831,2394,1832,2300,2113,2112,2114,2207,2019,2020,2206,2208,2018,2021,2111,2115,1927,2302,2301,1926,2205,2209,1928,2303,2017,2300,1925,2022,2110,2116,1835,2397,1929,2304,2398,1836,2117,2118,2116,2211,2023,2024,2212,2210,2022,2025,2119,2115,2306,1931,1930,2305,2213,2209,2307,1932,2021,1929,2304,2026,2120,2114,1839,2401,2308,2402,1933,2214,2121,2122,2120,2215,2027,2028,2216,2214,2026,2123,2119,2029,2310,1935,1934,2309,2217,2213,2311,1936,2025,1933,2308,2030,2124,2118,1843,2312,2405,2406,1842,2218,2126,2125,2127,2220,2032,2033,2219,2221,2031,2124,2128,2315,2034,1939,1940,2314,2218,2222,2316,2030,1938,1941,2313,2035,2317,2123,2129,1848,2411,2410,1847,2217,2130,2131,2129,2224,2036,2037,2225,2223,2035,2132,2128,2319,1943,2038,1944,2318,2226,2222,2320,2034,1942,1945,2317,2321,2133,2127,2039,2415,1852,1851,2414,1941,2134,2133,2135,2228,2040,2041,2227,2229,2039,2132,2136,2323,1947,2042,1948,2322,2226,2230,2324,2038,1946,1949,2321,2325,2131,2137,2419,2043,1855,1945,1856,2418,2138,2139,2137,2232,2044,2045,2233,2231,2043,2140,2136,2327,1951,2046,1952,2326,2234,2230,2328,2042,1950,1953,2325,2329,1949,2135,2141,2423,1859,2047,1860,2422,2143,2142,2144,2237,2049,2050,2236,2238,2048,2141,2145,2332,1956,2051,1957,2331,2235,2239,2333,2047,1955,1958,2330,2334,1954,2146,2140,2428,1864,2052,1865,2427,2432,2527,2433,2336,2528,2624,2529,2431,2337,2434,2526,2241,2625,2623,2530,2338,2430,2721,2626,2335,2242,2720,2627,2243,2334,2525,2435,2147,2722,2622,2531,2429,2436,2437,2435,2340,2532,2533,2339,2341,2531,2434,2438,2245,2629,2534,2630,2244,2338,2342,2628,2246,2530,2631,2243,2627,2247,2433,2439,2726,2151,2535,2727,2150,2440,2439,2441,2344,2536,2537,2343,2345,2535,2442,2438,2633,2249,2538,2634,2248,2342,2346,2632,2250,2534,2635,2247,2631,2251,2437,2443,2730,2155,2539,2731,2154,2445,2444,2446,2349,2541,2542,2348,2350,2540,2443,2447,2638,2254,2543,2639,2253,2347,2351,2637,2255,2539,2640,2252,2636,2256,2442,2448,2544,2735,2160,2736,2159,2449,2450,2448,2353,2545,2546,2352,2354,2544,2447,2451,2642,2258,2547,2643,2257,2351,2355,2641,2259,2543,2644,2256,2640,2260,2548,2446,2452,2739,2164,2740,2163,2453,2454,2452,2357,2549,2550,2358,2356,2548,2455,2451,2646,2262,2551,2647,2261,2359,2355,2645,2263,2547,2648,2260,2552,2644,2264,2456,2450,2743,2168,2744,2167,2457,2458,2456,2361,2553,2554,2362,2360,2552,2555,2455,2459,2650,2266,2651,2265,2359,2363,2649,2267,2551,2652,2264,2556,2454,2460,2648,2268,2748,2171,2747,2172,2461,2460,2462,2365,2557,2558,2364,2366,2556,2559,2463,2459,2654,2270,2655,2269,2367,2363,2653,2271,2555,2656,2268,2560,2464,2458,2752,2175,2652,2272,2751,2176,2465,2466,2464,2369,2561,2562,2370,2368,2560,2563,2467,2463,2658,2274,2659,2273,2371,2367,2657,2275,2559,2660,2272,2564,2468,2462,2756,2179,2656,2755,2180,2276,2470,2469,2471,2374,2566,2567,2373,2375,2565,2568,2468,2472,2663,2279,2664,2278,2372,2376,2662,2280,2665,2277,2564,2569,2467,2473,2761,2184,2760,2185,2661,2281,2474,2475,2473,2378,2570,2571,2379,2377,2569,2572,2476,2472,2667,2283,2668,2282,2380,2376,2666,2284,2669,2281,2568,2573,2477,2471,2765,2188,2764,2189,2665,2381,2478,2479,2477,2382,2574,2575,2383,2381,2573,2576,2476,2480,2671,2287,2672,2286,2380,2384,2670,2288,2673,2285,2572,2577,2475,2481,2769,2192,2768,2379,2385,2193,2482,2481,2483,2386,2579,2578,2385,2387,2580,2577,2480,2484,2676,2290,2675,2291,2388,2384,2677,2289,2674,2292,2581,2576,2485,2479,2773,2196,2774,2383,2389,2195,2486,2485,2487,2390,2583,2582,2389,2391,2584,2581,2484,2488,2680,2294,2679,2295,2388,2392,2681,2293,2678,2296,2585,2580,2483,2489,2777,2200,2778,2199,2682,2387,2490,2491,2489,2394,2587,2586,2395,2393,2588,2585,2492,2488,2684,2298,2683,2299,2396,2392,2685,2297,2682,2300,2589,2584,2493,2487,2781,2204,2782,2203,2686,2296,2495,2496,2494,2399,2592,2591,2400,2398,2593,2590,2497,2493,2689,2303,2688,2304,2401,2397,2690,2302,2594,2687,2305,2589,2492,2498,2786,2209,2691,2787,2208,2301,2499,2498,2500,2403,2596,2595,2402,2404,2597,2594,2501,2497,2693,2307,2692,2308,2405,2401,2694,2306,2598,2691,2309,2593,2502,2496,2790,2213,2695,2305,2791,2212,2503,2504,2502,2407,2600,2599,2408,2406,2601,2598,2501,2505,2697,2311,2696,2312,2405,2409,2698,2310,2602,2695,2313,2597,2506,2500,2699,2309,2794,2217,2795,2216,2507,2506,2508,2411,2604,2603,2410,2412,2605,2505,2509,2701,2315,2602,2700,2316,2409,2413,2702,2314,2606,2699,2317,2601,2703,2313,2510,2504,2799,2220,2798,2221,2511,2512,2510,2415,2608,2607,2416,2414,2609,2509,2513,2705,2319,2606,2704,2320,2413,2417,2706,2318,2610,2703,2321,2707,2317,2605,2514,2508,2803,2224,2802,2225,2515,2514,2516,2419,2612,2611,2418,2420,2613,2513,2517,2709,2323,2610,2708,2324,2417,2421,2710,2322,2614,2707,2325,2711,2321,2512,2518,2609,2807,2228,2806,2229,2520,2521,2519,2424,2617,2616,2425,2423,2618,2522,2518,2714,2328,2615,2713,2329,2426,2422,2715,2327,2619,2712,2330,2716,2326,2523,2517,2812,2233,2614,2811,2234,2524,2523,2525,2428,2621,2620,2427,2429,2622,2526,2522,2332,2718,2619,2717,2333,2430,2426,2719,2331,2623,2716,2334,2720,2330,2521,2527,2816,2237,2618,2815,2238,2820,2917,2821,2722,2918,2819,2723,3015,2919,2916,2822,2625,3016,2818,2724,3014,2920,3113,3017,2721,2626,3112,3018,2720,2627,2915,2823,3114,2528,2817,2725,3013,2824,2825,2823,2726,2922,2727,2725,2923,2921,2826,2822,3020,2629,2628,2728,2724,2924,2920,3019,3021,2630,2627,3022,3018,2631,2827,2821,3118,2532,2729,2723,3119,2829,2830,2828,2731,2927,2730,2732,2928,2926,2827,2831,3025,2634,2633,2729,2733,2925,2929,3026,3024,2635,2632,3027,3023,2636,2826,2832,3123,2537,3124,2536,2728,2833,2832,2834,2735,2931,2734,2736,2930,2932,2831,2835,3029,2638,2637,2733,2737,2929,2933,3028,3030,2639,2636,3027,3031,2640,2830,2836,3127,2541,3128,2540,2732,2837,2836,2838,2739,2935,2740,2738,2934,2936,2835,2839,3033,2642,2641,2737,2741,2933,2937,3032,3034,2643,2640,3031,3035,2644,2834,2840,3131,2545,3132,2544,2736,2841,2842,2840,2743,2939,2742,2744,2938,2940,2843,2839,3037,2646,2645,2745,2741,2937,2941,3038,3036,2647,2644,3039,3035,2838,2844,2648,3135,2549,3136,2548,2746,2846,2847,2845,2748,2944,2749,2747,2945,2943,2848,2844,3042,2651,2650,2750,2746,2946,2942,3043,3041,2652,2649,3044,3040,2849,2843,3140,2554,2653,3141,2553,2751,2850,2849,2851,2752,2948,2753,2751,2947,2949,2848,2852,3046,2655,2654,2750,2754,2950,2946,3045,3047,2656,2653,3044,3048,2847,2853,3144,2558,2657,3145,2557,2749,2854,2853,2855,2756,2952,2755,2757,2951,2953,2852,2856,3050,2659,2658,2754,2758,2950,2954,3049,3051,2660,2657,3048,3052,2851,2857,3148,2562,3149,2561,2661,2753,2858,2857,2859,2760,2956,2759,2761,2955,2957,2856,2860,3054,2663,2662,2758,2762,2954,2958,3055,3053,2664,2661,3052,3056,2855,2861,3152,2566,3153,2565,2665,2757,2863,2864,2862,2765,2961,2766,2764,2962,2960,2865,2861,3059,2668,2667,2767,2763,2963,2959,3058,3060,2669,2666,3061,3057,2860,2866,3157,2571,3158,2570,2762,2768,2867,2866,2868,2769,2965,2768,2770,2966,2964,2869,2865,3063,2672,2671,2771,2767,2967,2963,3062,3064,2673,2670,3065,3061,2870,2864,3161,2575,3162,2574,2772,2766,2871,2872,2870,2773,2969,2774,2772,2968,2970,2873,2869,3067,2675,2676,2775,2771,2971,2967,3068,3066,2674,2677,3069,3065,2874,2868,3166,2578,3165,2579,2776,2770,2875,2876,2874,2777,2973,2778,2776,2972,2974,2873,2877,3071,2679,2680,2775,2779,2971,2975,3070,3072,2678,2681,3069,3073,2872,2878,3170,2582,3169,2583,2774,2780,2880,2881,2879,2782,2978,2781,2783,2977,2979,2878,2882,3076,2684,2685,2780,2784,2976,2980,3077,3075,2683,2686,3074,3078,2877,2883,3175,2587,3174,2588,2682,2785,2884,2885,2883,2786,2982,2787,2785,2983,2981,2886,2882,3080,2688,2689,2788,2784,2984,2980,3081,3079,2687,2690,3082,3078,2887,2881,3179,2591,3178,2592,2686,2789,2888,2887,2889,2790,2986,2791,2789,2985,2987,2886,2890,3084,2692,2693,2788,2792,2984,2988,3083,3085,2691,2694,3082,3086,2885,2891,3183,2595,2690,3182,2596,2787,2892,2893,2891,2794,2990,2793,2795,2991,2989,2894,2890,3088,2696,2697,2796,2792,2992,2988,3089,3087,2695,2698,3090,3086,2895,2889,3187,2599,2694,3186,2600,2797,2897,2896,2898,2799,2995,2798,2800,2994,2996,2895,2899,3093,2701,2702,2797,2801,2993,2997,3092,3094,2700,2703,3091,3095,2894,2900,2699,3192,2604,3191,2605,2796,2901,2900,2902,2803,2999,2802,2804,2998,3000,2903,2899,3097,2705,2706,2805,2801,3001,2997,3096,3098,2704,2707,3099,3095,2703,2904,2898,3196,2608,3195,2609,2806,2905,2904,2906,3003,2807,2806,2808,3002,3004,2903,2907,3101,2709,2710,2805,2809,3005,3001,3102,3100,2708,2711,3103,3099,2707,2908,2902,3200,2612,3199,2613,2810,2909,2910,2908,2811,3007,2812,2810,3008,3006,2907,2911,3105,2713,2714,2809,2813,3005,3009,3106,3104,2712,2715,3103,3107,2711,2906,2912,3204,2616,3203,2617,2808,2914,2915,2913,3012,2816,2817,2815,3013,3011,2916,2912,3110,2718,2719,2818,2814,3014,3010,3109,3111,2717,2720,3112,3108,2716,2917,2911,3209,2621,2819,2813,3208,3312,3410,3313,3411,3213,3214,3311,3508,3412,3409,3314,3509,3114,3310,3215,3212,3115,3606,3510,3507,3413,3211,3116,3605,3511,3408,3315,3607,3016,3309,3216,3608,3316,3317,3315,3217,3415,3414,3218,3216,3416,3318,3314,3118,3513,3413,3512,3219,3215,3117,3119,3514,3417,3511,3120,3116,3515,3319,3313,3611,3020,3412,3214,3220,3321,3320,3322,3222,3420,3419,3221,3223,3421,3323,3319,3123,3518,3418,3517,3224,3220,3124,3122,3519,3422,3516,3125,3121,3520,3318,3324,3616,3025,3417,3615,3024,3325,3324,3326,3226,3424,3423,3227,3225,3425,3327,3323,3127,3522,3422,3521,3228,3224,3128,3126,3523,3426,3520,3129,3125,3524,3328,3322,3620,3029,3421,3619,3028,3329,3328,3330,3230,3428,3427,3229,3231,3429,3331,3327,3131,3526,3426,3525,3232,3228,3130,3132,3527,3430,3524,3133,3129,3528,3326,3332,3425,3624,3033,3623,3032,3334,3333,3335,3235,3433,3432,3234,3236,3434,3332,3336,3136,3531,3431,3530,3233,3237,3135,3137,3532,3435,3529,3134,3138,3430,3331,3337,3533,3629,3038,3628,3037,3338,3339,3337,3239,3437,3436,3240,3238,3438,3340,3336,3140,3435,3535,3534,3241,3237,3141,3139,3536,3439,3533,3142,3138,3434,3341,3335,3633,3042,3537,3632,3041,3342,3341,3343,3243,3441,3440,3242,3244,3442,3439,3340,3344,3144,3539,3538,3241,3245,3143,3145,3540,3443,3537,3142,3146,3438,3339,3345,3637,3046,3541,3636,3045,3346,3347,3345,3247,3445,3444,3248,3246,3446,3443,3348,3344,3148,3543,3542,3249,3245,3149,3147,3544,3447,3541,3150,3146,3442,3349,3343,3641,3050,3640,3049,3545,3351,3350,3352,3252,3450,3449,3251,3253,3451,3448,3349,3353,3153,3548,3547,3250,3254,3152,3154,3549,3546,3452,3447,3151,3155,3348,3354,3646,3055,3645,3054,3550,3355,3356,3354,3256,3454,3453,3257,3255,3455,3452,3357,3353,3157,3552,3551,3258,3254,3158,3156,3553,3550,3456,3451,3159,3155,3358,3352,3650,3059,3649,3058,3259,3359,3360,3358,3260,3458,3457,3259,3261,3459,3456,3357,3361,3161,3556,3555,3258,3262,3162,3160,3557,3554,3460,3455,3159,3163,3356,3362,3654,3063,3653,3062,3257,3364,3365,3363,3265,3462,3463,3266,3264,3461,3464,3366,3362,3166,3560,3561,3267,3263,3167,3165,3559,3562,3460,3465,3168,3164,3367,3361,3658,3067,3659,3068,3268,3368,3369,3367,3269,3466,3467,3270,3268,3465,3468,3370,3366,3170,3564,3565,3271,3267,3171,3169,3563,3566,3464,3469,3172,3168,3371,3365,3662,3071,3663,3072,3272,3372,3371,3373,3273,3470,3471,3274,3272,3469,3472,3374,3370,3174,3568,3569,3275,3271,3175,3173,3567,3570,3468,3473,3176,3172,3375,3369,3666,3075,3667,3076,3566,3377,3376,3378,3278,3475,3476,3277,3279,3474,3477,3375,3379,3179,3573,3574,3276,3280,3178,3180,3572,3473,3575,3177,3181,3478,3374,3380,3671,3080,3672,3081,3571,3381,3382,3380,3282,3479,3480,3283,3281,3478,3481,3383,3379,3183,3577,3578,3280,3284,3184,3182,3576,3477,3579,3185,3181,3482,3384,3378,3675,3084,3575,3676,3085,3385,3384,3386,3286,3483,3484,3285,3287,3482,3383,3387,3187,3485,3581,3582,3284,3288,3186,3188,3580,3481,3583,3185,3189,3486,3382,3388,3679,3088,3579,3680,3089,3389,3390,3388,3290,3487,3488,3291,3289,3486,3391,3387,3191,3585,3489,3586,3292,3288,3192,3190,3584,3485,3587,3193,3189,3490,3386,3392,3583,3683,3092,3684,3093,3394,3395,3393,3295,3492,3493,3296,3294,3491,3392,3396,3196,3590,3494,3591,3297,3293,3197,3195,3589,3490,3592,3198,3194,3588,3397,3391,3495,3688,3097,3689,3098,3398,3397,3399,3299,3496,3497,3298,3300,3495,3400,3396,3200,3594,3498,3595,3301,3297,3201,3199,3593,3494,3596,3202,3198,3592,3401,3395,3692,3101,3499,3693,3102,3402,3401,3403,3303,3500,3501,3302,3304,3499,3400,3404,3204,3598,3502,3599,3301,3305,3203,3205,3597,3498,3600,3202,3206,3596,3399,3405,3696,3105,3503,3697,3106,3407,3408,3406,3308,3505,3506,3309,3307,3504,3409,3405,3209,3603,3507,3604,3310,3306,3210,3208,3602,3503,3605,3211,3207,3601,3410,3404,3701,3110,3508,3311,3305,3705,3802,3706,3803,3607,3704,3608,3899,3804,3801,3707,3900,3509,3703,3609,3606,3510,3898,3805,3995,3901,3605,3511,3994,3902,3800,3708,3996,3411,3702,3610,3897,3709,3708,3710,3611,3807,3806,3610,3612,3808,3711,3707,3513,3904,3805,3903,3609,3613,3512,3514,3809,3905,3902,3515,3511,3906,3706,3712,3415,4000,3804,3999,3608,3714,3713,3715,3616,3812,3811,3615,3617,3813,3712,3716,3518,3909,3810,3908,3614,3618,3519,3517,3814,3910,3907,3516,3520,3911,3717,3711,3420,4005,3809,4004,3619,3718,3717,3719,3620,3816,3815,3619,3621,3817,3716,3720,3522,3913,3814,3912,3618,3622,3523,3521,3818,3914,3911,3524,3520,3715,3721,3424,4009,3915,3813,4008,3617,3722,3721,3723,3624,3820,3819,3623,3625,3821,3720,3724,3526,3917,3818,3916,3622,3626,3525,3527,3822,3918,3915,3524,3528,3719,3725,3817,3428,4013,4012,3919,3621,3726,3727,3725,3628,3824,3823,3629,3627,3825,3728,3724,3530,3822,3921,3920,3630,3626,3531,3529,3826,3922,3919,3532,3528,3821,3723,3729,3432,4017,4016,3631,3625,3731,3732,3730,3633,3829,3828,3634,3632,3830,3733,3729,3535,3827,3925,3926,3635,3631,3536,3534,3831,3924,3927,3537,3533,3826,3734,3728,3437,4021,4022,3636,3630,3735,3734,3736,3637,3833,3832,3636,3638,3834,3831,3733,3737,3539,3929,3930,3635,3639,3540,3538,3928,3835,3931,3541,3537,3830,3732,3738,3441,4025,4026,3927,3634,3739,3738,3740,3641,3837,3836,3640,3642,3838,3835,3737,3741,3543,3933,3934,3639,3643,3544,3542,3932,3839,3935,3541,3545,3834,3736,3742,3445,4029,3931,4030,3638,3743,3742,3744,3645,3841,3840,3644,3646,3842,3839,3741,3745,3547,3937,3938,3643,3647,3546,3548,3936,3843,3939,3838,3545,3549,3740,3746,3449,3935,4033,4034,3642,3748,3747,3749,3650,3846,3845,3649,3651,3847,3844,3750,3746,3552,3942,3943,3652,3648,3553,3551,3941,3848,3843,3944,3554,3550,3940,3745,3751,3454,4038,4039,3647,3752,3751,3753,3654,3850,3849,3653,3655,3851,3848,3754,3750,3556,3946,3947,3656,3652,3555,3557,3945,3852,3847,3948,3554,3558,3944,3755,3749,3458,4042,3657,3651,3756,3757,3755,3658,3853,3854,3659,3657,3852,3855,3758,3754,3560,3950,3949,3660,3656,3561,3559,3951,3851,3856,3948,3562,3558,3952,3759,3753,3462,4046,3661,3655,3760,3761,3759,3662,3857,3858,3663,3661,3856,3859,3758,3762,3564,3954,3953,3660,3664,3565,3563,3955,3855,3860,3952,3562,3566,3956,3757,3763,3466,4050,4049,3659,3765,3764,3766,3667,3862,3863,3666,3668,3861,3864,3763,3767,3569,3959,3958,3665,3669,3568,3570,3960,3860,3957,3865,3567,3571,3762,3768,3471,3961,4055,4054,3664,3769,3770,3768,3671,3866,3867,3672,3670,3865,3868,3771,3767,3573,3963,3962,3673,3669,3574,3572,3964,3864,3961,3571,3575,3869,3772,3766,3475,4059,3965,4058,3674,3773,3772,3774,3675,3870,3871,3676,3674,3869,3872,3771,3775,3577,3967,3966,3673,3677,3578,3576,3968,3868,3965,3575,3579,3873,3770,3776,3479,4063,4062,3969,3672,3777,3776,3778,3679,3874,3875,3680,3678,3873,3779,3775,3581,3876,3971,3970,3681,3677,3582,3580,3872,3972,3969,3579,3583,3877,3780,3774,3483,4067,4066,3682,3676,3782,3781,3783,3684,3879,3880,3683,3685,3878,3780,3784,3586,3881,3975,3976,3682,3686,3585,3587,3877,3974,3977,3588,3584,3882,3779,3785,3488,4071,4072,3681,3687,3786,3785,3787,3688,3883,3884,3687,3689,3882,3788,3784,3590,3979,3885,3980,3690,3686,3591,3589,3881,3978,3981,3592,3588,3789,3783,3886,3492,4075,4076,3977,3691,3790,3791,3789,3692,3887,3888,3691,3693,3886,3792,3788,3594,3983,3889,3984,3694,3690,3595,3593,3885,3982,3985,3596,3592,3793,3787,3496,4079,3981,3890,4080,3695,3794,3793,3795,3696,3891,3892,3695,3697,3890,3792,3796,3598,3987,3893,3988,3694,3698,3599,3597,3889,3986,3989,3596,3600,3985,3791,3797,3500,4083,3894,4084,3693,3799,3798,3800,3701,3896,3897,3702,3700,3895,3801,3797,3603,3992,3898,3993,3703,3699,3604,3602,3894,3991,3994,3605,3601,3990,3796,3802,3505,4088,3899,4089,3704,4092,-1,4093,4186,3996,-1,-1,4091,3997,-1,-1,-1,-1,4094,4185,3900,-1,3998,4090,3995,3901,-1,-1,-1,-1,-1,-1,3902,3994,-1,4095,4184,4096,4095,4097,4000,-1,-1,4001,3999,-1,-1,-1,-1,4094,4098,3904,4002,3905,-1,3998,3903,-1,-1,-1,-1,-1,3906,-1,3902,-1,-1,4093,4099,4100,-1,4099,4101,4004,-1,-1,4005,4003,-1,-1,4098,4102,3908,-1,-1,-1,4006,3909,3907,4002,-1,-1,-1,-1,3910,-1,-1,-1,3906,4097,4103,4104,4103,4105,-1,4008,-1,4009,4007,-1,-1,-1,-1,4106,4102,3912,4010,3913,-1,-1,3911,-1,4006,-1,-1,3914,-1,-1,3910,-1,-1,4107,4101,4109,-1,4108,4110,4013,-1,4014,-1,4012,-1,-1,-1,4107,4111,3917,4015,-1,3918,-1,3916,-1,4011,-1,3919,-1,-1,-1,-1,3915,4016,-1,4106,4113,-1,4114,4112,4017,-1,4018,-1,4016,-1,-1,-1,4115,4111,3921,4019,-1,-1,3922,3920,4015,-1,-1,-1,3923,-1,-1,-1,-1,4020,3919,4116,4117,4116,4118,-1,4021,-1,4022,-1,4020,-1,-1,-1,4023,4115,4119,3925,3926,-1,-1,-1,3924,4019,-1,3927,-1,-1,-1,4024,-1,-1,4114,4120,4121,-1,4122,4120,4025,4026,-1,-1,4024,-1,-1,4027,4119,4123,-1,3929,-1,-1,3930,3928,-1,4023,-1,3931,-1,-1,-1,-1,4028,-1,4118,4124,4125,4124,4126,-1,-1,4029,4030,-1,-1,4028,-1,-1,4031,4123,4127,3933,3934,-1,-1,-1,-1,3932,4027,3935,-1,-1,4032,-1,-1,-1,4122,4128,4129,-1,4130,4128,4033,4034,-1,-1,4032,-1,4035,-1,-1,4127,4131,-1,-1,3937,3938,3936,-1,-1,3939,4031,-1,4036,-1,-1,-1,-1,4126,4132,4133,4132,4134,-1,-1,4037,4038,-1,-1,4036,4039,-1,-1,4135,4131,3941,3942,-1,-1,-1,-1,3940,3943,4035,-1,4040,-1,-1,-1,-1,4136,4130,4137,-1,4136,4138,4041,4042,-1,-1,4040,4043,-1,-1,4135,4139,-1,-1,3945,3946,-1,3944,-1,3947,-1,4039,4044,-1,-1,-1,-1,-1,4134,4140,4142,-1,4141,4143,4047,4046,-1,-1,4048,-1,4045,-1,-1,4140,4144,3951,3950,-1,-1,-1,3952,3949,-1,4049,-1,4044,-1,-1,-1,-1,4139,4145,4146,-1,4147,4145,4051,-1,4050,-1,4052,-1,4049,-1,-1,4148,4144,3955,3954,-1,-1,-1,3956,-1,3953,4053,-1,-1,4048,-1,-1,-1,4143,4149,4150,-1,4151,4149,4055,4054,-1,-1,4056,-1,-1,4053,-1,4152,4148,3959,3958,-1,-1,3960,-1,3957,4057,-1,-1,-1,4052,-1,-1,-1,4153,4147,4154,4155,4153,-1,4059,-1,4058,-1,4060,-1,-1,4057,-1,4156,4152,3963,3962,-1,-1,-1,3964,-1,4061,3961,-1,-1,-1,4056,-1,-1,4157,4151,4158,-1,4157,4159,4063,4062,-1,-1,4064,-1,-1,4061,4156,4160,-1,3967,-1,-1,3966,3968,-1,4065,-1,3965,-1,-1,-1,-1,4060,-1,4155,4161,4162,4163,4161,-1,4067,-1,4066,-1,4068,-1,-1,-1,4065,4164,4160,3971,3970,-1,-1,-1,3972,-1,4069,3969,-1,-1,-1,-1,4064,-1,4165,4159,4166,-1,4165,4167,4071,4070,-1,-1,4072,-1,-1,-1,4164,4168,3975,4069,-1,-1,3974,3976,4073,-1,-1,3973,-1,-1,-1,-1,-1,4068,3977,4163,4170,4169,4171,4075,-1,-1,4074,4076,-1,-1,-1,-1,4168,4172,3979,4073,3978,-1,-1,3980,-1,4077,-1,3977,-1,-1,-1,-1,3981,4072,-1,4167,4175,-1,4176,4174,4080,-1,4079,-1,4081,-1,-1,-1,4177,4173,3984,4078,-1,-1,3983,3985,4082,-1,-1,-1,-1,3982,-1,-1,3986,-1,4178,4172,4179,-1,4178,4180,4084,-1,4083,-1,4085,-1,-1,-1,4177,4181,3988,-1,4082,-1,3987,3989,4086,-1,-1,-1,-1,3986,-1,3990,-1,-1,4182,4176,4183,-1,4184,4182,4088,-1,4087,4089,-1,-1,-1,-1,4185,4181,3992,-1,4086,3991,-1,4090,3993,-1,-1,-1,-1,-1,3990,3994,-1,-1,4186,4180],"visual":[0,7,4,2,1,3,6,5,9,10,16,15,8,18,19,17,11,12,13,14,31,20,21,22,23,24,25,26,27,28,29,30,38,61,60,39,20,88,62,21,37,89,59,40,63,87,120,90,8,22,36,19,9,91,119,64,86,41,58,1,121,157,122,118,42,66,41,65,43,23,67,24,22,64,40,94,95,10,44,93,68,96,25,21,9,11,63,39,92,2,127,97,45,128,69,126,46,45,70,71,26,47,69,27,25,44,72,100,99,12,101,68,48,98,28,24,13,11,73,43,102,3,133,97,134,67,4,49,50,49,75,29,74,76,48,51,30,28,105,73,77,106,104,14,31,27,52,47,15,13,107,103,78,72,139,140,4,5,108,102,53,54,80,79,32,52,81,33,31,55,78,110,111,16,109,82,51,112,34,30,15,17,77,56,108,6,146,113,145,83,5,50,57,84,58,85,56,35,83,36,34,86,59,116,115,18,55,117,82,114,33,37,17,19,87,60,118,7,152,113,54,151,81,153,158,199,198,159,200,243,121,244,157,122,245,291,201,242,197,160,89,156,123,290,246,120,90,292,293,343,241,202,196,161,91,119,162,204,203,163,161,125,202,205,124,249,248,126,164,250,160,123,92,247,93,201,206,91,251,127,297,298,165,296,94,122,159,64,166,208,167,209,207,165,128,129,254,253,168,127,206,210,255,130,164,252,95,96,94,302,126,169,303,256,97,205,211,131,251,301,170,212,213,171,169,132,211,214,258,133,259,172,131,257,260,168,99,134,98,215,210,130,173,100,308,307,256,97,261,309,306,69,217,174,175,218,216,136,173,135,263,176,264,137,262,219,215,134,102,265,172,101,177,138,103,261,313,312,220,214,314,100,133,72,178,179,222,221,139,140,177,180,220,223,268,267,269,141,138,105,224,219,176,181,266,270,104,106,318,137,142,319,317,103,107,75,226,183,182,227,225,143,184,144,273,181,272,142,274,228,224,145,108,271,185,109,180,141,107,275,323,324,229,223,322,110,146,78,187,231,230,186,188,147,229,232,278,146,277,185,148,279,276,189,111,145,112,228,233,149,184,110,328,329,280,113,275,327,330,81,191,235,190,234,236,192,151,150,282,283,189,152,237,233,281,149,193,284,115,114,116,334,153,188,333,280,113,238,232,148,285,335,195,240,239,194,196,154,241,238,155,287,288,153,193,286,197,156,118,289,117,242,237,119,285,152,339,338,192,340,116,157,198,86,399,344,400,456,398,345,457,292,517,458,293,343,455,401,397,346,516,459,518,244,294,342,581,519,245,291,402,454,347,396,580,520,403,348,404,347,402,349,461,462,296,295,405,460,346,297,463,401,350,294,523,247,522,248,459,298,406,524,246,521,249,464,345,351,407,352,408,351,406,353,466,465,299,300,409,467,350,298,464,354,301,405,527,251,528,250,468,410,526,252,297,349,302,463,529,249,411,412,356,355,470,357,410,413,303,471,469,304,354,302,358,472,409,305,468,532,254,414,531,255,301,533,253,353,530,256,473,306,416,415,360,359,474,361,417,475,414,307,306,358,473,308,476,362,418,305,536,258,413,537,257,309,357,472,535,259,477,538,256,304,420,364,419,363,421,479,365,478,311,310,418,362,480,312,477,309,422,366,541,261,481,540,262,361,417,542,260,313,308,476,539,263,424,368,367,423,425,483,369,484,314,366,315,482,422,313,426,485,316,370,545,481,265,546,264,365,312,421,544,266,547,263,317,427,428,372,371,429,427,487,488,318,373,370,317,319,430,426,486,489,550,268,316,320,374,369,549,551,267,269,490,485,431,425,548,552,432,375,376,433,431,492,374,491,322,377,321,493,434,323,430,490,320,373,555,494,271,554,272,378,324,435,556,270,553,273,319,429,436,379,437,380,435,496,378,497,325,326,438,381,495,324,498,327,434,377,559,275,494,560,274,382,439,558,276,323,328,499,561,273,440,441,383,384,501,382,439,500,442,329,330,385,502,328,499,381,438,331,564,278,443,563,279,327,386,503,565,277,498,562,280,332,445,444,387,388,505,386,446,443,333,504,506,332,389,334,385,503,447,331,507,568,282,442,569,281,335,567,283,390,570,280,502,330,449,391,448,392,450,390,509,510,337,336,447,508,393,338,511,389,335,451,573,285,572,286,507,446,574,284,339,394,334,512,571,287,453,395,452,396,454,394,514,513,340,341,451,515,397,339,512,455,393,342,577,289,578,288,516,338,450,576,290,579,287,511,398,392,648,582,649,716,717,647,583,787,718,518,650,715,581,519,584,646,788,786,719,789,860,520,580,457,517,458,651,714,859,790,645,585,652,653,586,721,587,722,651,585,654,522,720,723,588,521,523,793,584,792,650,794,655,520,524,719,461,791,724,460,462,589,583,459,657,656,590,726,591,658,725,589,727,655,526,592,525,527,724,797,659,798,588,728,796,654,524,528,465,464,593,799,466,723,795,463,661,660,594,662,595,730,731,593,729,530,596,659,732,663,531,529,802,801,592,728,803,528,532,468,597,469,800,658,733,664,467,470,665,666,599,598,735,664,734,736,600,597,667,534,533,535,733,806,663,807,737,805,596,601,532,536,472,668,473,808,471,732,474,804,670,669,603,602,739,740,671,668,604,738,538,601,537,539,741,811,810,672,737,605,812,667,536,540,476,600,477,809,475,742,813,478,674,673,607,675,606,744,743,608,745,542,672,605,742,543,541,676,815,816,609,814,746,544,540,480,817,479,671,604,741,481,677,478,678,679,611,748,677,610,612,749,747,680,546,609,545,547,676,820,750,613,746,819,821,548,544,484,483,681,818,608,485,822,675,482,683,682,615,753,752,616,614,684,681,550,751,754,549,551,617,613,825,824,685,680,548,552,826,823,487,488,750,755,486,489,618,612,687,686,619,757,688,620,618,756,758,685,554,621,553,555,689,829,755,617,759,830,828,556,552,491,492,684,831,622,490,827,690,493,691,692,623,690,624,761,762,622,760,558,693,625,763,557,559,689,834,833,621,835,759,560,556,495,832,496,694,626,764,494,688,497,695,696,627,628,766,765,694,697,626,767,562,629,563,561,764,838,839,693,768,625,837,698,564,560,499,630,498,840,500,763,836,497,700,699,631,632,770,701,771,769,630,633,698,566,565,567,772,843,702,842,768,844,634,629,568,564,503,697,502,841,504,773,501,845,704,705,636,703,635,775,774,637,776,570,634,706,773,702,571,569,847,848,638,777,846,572,568,507,633,506,849,707,772,701,508,505,708,709,640,779,639,707,780,641,778,710,574,638,575,573,781,852,706,851,642,777,853,711,576,572,510,511,637,850,509,782,854,512,713,712,644,784,643,783,714,645,711,578,785,782,642,579,577,856,646,857,715,855,710,580,576,786,514,858,781,515,513,641,647,516,936,1013,937,1012,861,1014,1091,935,862,1092,938,1011,788,1090,1015,1172,1093,789,860,863,934,790,859,1171,1094,717,1010,939,787,718,1173,864,940,941,1017,1018,865,939,866,864,1016,942,1019,1097,1096,792,867,793,938,791,863,1095,1098,1015,943,794,1020,790,721,868,720,722,1178,1177,945,944,1022,869,1021,870,946,1023,943,868,1101,871,1020,796,797,1100,1102,795,1024,947,867,942,798,1099,1103,872,794,725,1019,724,726,1182,949,948,1026,950,1027,874,873,1025,947,875,872,1106,1105,800,1028,951,801,799,1024,1107,1104,876,871,802,946,729,798,1029,728,730,1187,952,953,954,1031,1030,952,878,877,1032,879,1029,955,1110,876,804,951,805,1109,1111,803,880,1033,806,1028,1108,1112,875,956,733,802,732,950,1191,957,958,1035,882,1034,1036,881,956,883,959,1114,1115,808,880,1033,809,1037,807,955,884,1113,1116,960,810,737,736,879,806,1032,1196,738,1038,962,961,1039,1040,886,963,887,885,1038,960,1041,1119,812,813,1118,1120,888,884,964,811,1037,814,959,1042,1117,1121,741,740,810,1200,889,883,966,1044,965,967,890,1043,891,1045,889,964,1042,1124,1123,968,816,817,892,888,815,1046,1122,1125,818,1041,745,963,744,893,969,814,1205,746,970,971,1048,894,969,1049,895,1047,893,972,1128,896,820,1050,821,1129,1127,968,1046,819,822,892,973,1130,1126,897,749,748,1051,818,1209,1210,975,974,1052,1053,898,899,973,976,1051,1054,897,900,1132,1133,825,824,1131,1134,972,977,826,823,1050,1055,896,901,752,753,1214,827,822,1130,979,978,1057,903,980,1056,902,1058,904,977,1137,901,829,1055,828,1136,1138,981,1059,830,827,905,976,1135,1139,900,756,757,1054,831,1219,1218,983,1061,984,982,907,1062,906,1060,908,985,1063,1142,1141,981,833,832,905,909,834,1059,1140,1143,831,1064,760,986,761,904,980,835,1223,759,987,988,1066,1065,911,986,910,912,1067,989,1064,1146,837,836,1145,1147,913,909,985,838,1068,835,990,1063,1144,1148,764,765,839,1228,914,908,992,991,1070,915,1071,1069,916,993,914,990,1150,1151,841,917,1072,840,1068,842,994,913,1149,1152,989,839,768,769,918,843,1073,1232,767,1067,996,995,1074,1075,997,919,920,1073,918,1076,994,1155,921,845,998,844,1154,1156,846,917,1072,843,1077,1153,1157,922,993,772,847,773,999,1237,1000,1001,1079,999,1078,924,923,1080,1002,922,925,1159,1160,849,1077,998,848,850,1081,1161,1158,921,926,847,1003,776,851,1076,777,775,1241,997,1004,1005,1083,928,1084,927,1003,1082,1006,929,1164,926,1085,853,852,1163,1165,854,1081,1002,930,1007,851,1162,1166,925,855,780,1086,781,779,1246,1009,1008,1088,1087,932,1010,931,933,1089,1007,1086,1169,1168,857,930,856,1011,858,934,1167,1170,1090,1006,855,1085,859,784,929,785,783,1250,1251,1255,1339,1338,1256,1340,1423,1173,1174,1254,1424,1425,1509,1257,1337,1341,1422,1092,1175,1253,1172,1093,1508,1426,1510,1171,1094,1258,1336,1511,1597,1013,1342,1259,1343,1260,1344,1258,1177,1342,1178,1176,1428,1261,1429,1345,1427,1257,1096,1179,1341,1097,1175,1095,1430,1262,1346,1514,1515,1098,1426,1094,1017,1180,1256,1263,1264,1347,1348,1181,1262,1182,1265,1346,1349,1433,1180,1432,1183,1434,1100,1431,1101,1261,1099,1179,1266,1350,1345,1519,1102,1518,1098,1435,1184,1021,1520,1268,1352,1267,1351,1185,1353,1269,1186,1266,1437,1184,1350,1436,1438,1187,1104,1354,1105,1270,1103,1265,1435,1183,1439,1523,1106,1349,1188,1524,1102,1025,1522,1272,1356,1271,1357,1355,1273,1189,1190,1441,1270,1442,1188,1191,1440,1354,1358,1274,1108,1109,1107,1443,1187,1269,1110,1439,1192,1528,1527,1106,1029,1353,1359,1276,1360,1361,1277,1275,1359,1194,1193,1446,1445,1362,1192,1195,1274,1278,1112,1444,1447,1113,1358,1111,1191,1196,1114,1532,1363,1279,1273,1533,1531,1110,1033,1280,1365,1364,1281,1279,1198,1197,1366,1363,1450,1282,1449,1199,1196,1451,1278,1116,1117,1448,1115,1362,1367,1200,1118,1283,1452,1195,1536,1537,1037,1114,1036,1284,1369,1285,1368,1202,1370,1283,1201,1286,1454,1203,1367,1455,1453,1200,1120,1121,1371,1282,1119,1287,1456,1204,1122,1452,1541,1366,1199,1540,1542,1041,1040,1289,1373,1288,1374,1372,1206,1290,1205,1287,1458,1207,1459,1375,1371,1204,1457,1124,1125,1460,1291,1208,1286,1123,1126,1545,1546,1456,1203,1376,1370,1544,1045,1293,1377,1292,1378,1294,1210,1376,1209,1211,1463,1291,1462,1379,1464,1295,1128,1208,1129,1375,1212,1461,1127,1130,1290,1380,1550,1549,1465,1049,1207,1048,1296,1297,1382,1381,1296,1298,1214,1383,1380,1215,1213,1467,1466,1468,1295,1299,1132,1133,1212,1216,1384,1379,1131,1134,1465,1469,1554,1294,1300,1553,1555,1052,1053,1301,1386,1302,1385,1300,1218,1387,1219,1217,1471,1303,1472,1384,1470,1299,1137,1220,1136,1388,1216,1473,1138,1135,1304,1383,1558,1559,1469,1056,1221,1057,1298,1305,1390,1306,1391,1389,1222,1304,1223,1307,1476,1221,1475,1392,1388,1224,1477,1141,1140,1474,1303,1220,1308,1142,1139,1563,1562,1478,1225,1393,1387,1564,1060,1310,1394,1309,1395,1226,1393,1311,1227,1308,1480,1225,1396,1479,1481,1228,1145,1144,1392,1312,1146,1307,1478,1224,1143,1482,1567,1397,1229,1568,1566,1064,1065,1314,1399,1398,1313,1315,1230,1231,1397,1400,1484,1312,1485,1229,1232,1483,1316,1149,1148,1486,1150,1396,1401,1228,1147,1311,1482,1233,1572,1571,1068,1151,1069,1318,1403,1402,1317,1319,1404,1234,1235,1488,1489,1401,1233,1236,1316,1320,1153,1490,1487,1152,1405,1154,1232,1237,1151,1576,1400,1315,1321,1577,1575,1155,1072,1322,1407,1323,1408,1406,1321,1239,1238,1493,1324,1492,1240,1237,1494,1409,1405,1320,1157,1156,1158,1491,1241,1325,1155,1495,1236,1580,1581,1159,1076,1410,1404,1326,1411,1327,1412,1243,1410,1325,1242,1328,1497,1244,1413,1498,1496,1241,1161,1409,1160,1324,1162,1329,1499,1245,1495,1585,1159,1414,1240,1584,1163,1080,1586,1331,1330,1416,1415,1247,1332,1246,1329,1417,1414,1501,1248,1502,1245,1500,1165,1503,1164,1333,1166,1249,1328,1418,1413,1589,1163,1590,1167,1499,1244,1084,1588,1335,1420,1334,1419,1336,1251,1421,1250,1252,1506,1333,1505,1418,1507,1337,1169,1249,1422,1168,1253,1170,1504,1332,1417,1594,1593,1167,1508,1171,1088,1248,1338,1687,1598,1688,1776,1599,1686,1777,1510,1867,1778,1597,1511,1689,1775,1685,1600,1424,1512,1596,1779,1866,1868,1425,1509,1959,1869,1684,1601,1690,1774,1508,1426,1691,1602,1692,1603,1690,1601,1781,1514,1782,1515,1693,1604,1513,1780,1783,1600,1516,1689,1428,1429,1872,1512,1873,1427,1694,1605,1779,1871,1430,1874,1784,1517,1696,1695,1606,1607,1786,1697,1605,1518,1785,1608,1694,1519,1787,1517,1520,1784,1432,1698,1604,1433,1609,1877,1693,1431,1876,1516,1788,1878,1521,1434,1783,1875,1700,1611,1610,1699,1701,1612,1790,1523,1522,1791,1789,1609,1698,1524,1521,1702,1613,1436,1792,1788,1437,1881,1882,1435,1608,1525,1880,1697,1520,1438,1703,1883,1704,1615,1705,1614,1616,1703,1794,1527,1795,1526,1706,1528,1793,1613,1617,1702,1796,1525,1440,1441,1886,1885,1529,1439,1792,1442,1707,1612,1887,1884,1618,1524,1708,1619,1709,1620,1618,1799,1707,1531,1798,1710,1530,1532,1621,1800,1617,1797,1529,1444,1706,1445,1533,1890,1711,1889,1443,1801,1891,1622,1446,1796,1616,1528,1713,1623,1712,1624,1714,1803,1622,1535,1625,1536,1711,1802,1804,1534,1715,1537,1621,1449,1448,1805,1801,1533,1894,1626,1895,1710,1450,1447,1893,1896,1538,1363,1717,1628,1627,1718,1716,1629,1807,1539,1808,1540,1626,1806,1538,1719,1715,1541,1809,1630,1453,1452,1899,1898,1625,1537,1454,1805,1451,1900,1542,1714,1720,1810,1721,1632,1722,1631,1633,1720,1812,1811,1544,1543,1723,1630,1813,1545,1542,1634,1810,1719,1457,1456,1903,1458,1904,1724,1902,1814,1546,1541,1629,1455,1635,1809,1726,1636,1725,1637,1635,1816,1727,1548,1724,1547,1815,1817,1638,1549,1634,1546,1461,1728,1818,1814,1460,1907,1723,1908,1462,1550,1639,1906,1459,1545,1909,1633,1730,1640,1641,1729,1731,1820,1639,1552,1821,1642,1551,1553,1728,1819,1732,1822,1550,1638,1465,1554,1912,1464,1466,1643,1911,1818,1913,1727,1463,1823,1467,1549,1734,1645,1644,1735,1733,1825,1646,1556,1824,1643,1557,1555,1736,1826,1732,1823,1558,1647,1469,1554,1916,1470,1468,1642,1917,1827,1915,1737,1471,1822,1467,1559,1738,1649,1739,1648,1650,1829,1737,1560,1740,1561,1830,1828,1647,1559,1651,1562,1473,1736,1831,1827,1474,1921,1741,1920,1472,1558,1646,1922,1475,1563,1919,1652,1743,1653,1742,1654,1652,1744,1833,1834,1564,1565,1741,1655,1832,1563,1566,1651,1835,1745,1477,1478,1925,1476,1924,1740,1926,1831,1562,1567,1656,1479,1650,1836,1747,1657,1658,1748,1746,1656,1838,1569,1837,1568,1659,1839,1570,1749,1745,1567,1836,1655,1481,1482,1929,1930,1660,1571,1480,1840,1483,1928,1566,1750,1744,1835,1751,1662,1752,1661,1750,1842,1663,1573,1660,1572,1753,1843,1841,1574,1749,1571,1664,1485,1486,1844,1840,1575,1934,1659,1933,1754,1484,1487,1935,1932,1570,1400,1756,1666,1755,1665,1667,1846,1757,1577,1847,1754,1578,1576,1664,1845,1668,1848,1579,1490,1758,1489,1575,1938,1753,1939,1491,1844,1937,1663,1488,1849,1669,1580,1760,1670,1759,1671,1669,1761,1851,1581,1850,1582,1758,1580,1852,1672,1668,1762,1849,1583,1494,1493,1942,1943,1579,1495,1853,1492,1757,1673,1941,1944,1667,1584,1764,1674,1675,1765,1763,1673,1855,1585,1586,1856,1854,1676,1766,1584,1587,1762,1672,1498,1857,1853,1497,1947,1946,1499,1677,1583,1948,1767,1588,1496,1761,1945,1768,1769,1679,1678,1859,1767,1680,1590,1860,1677,1770,1589,1858,1591,1588,1861,1502,1766,1681,1501,1676,1951,1771,1503,1952,1592,1857,1950,1587,1500,1862,1953,1773,1683,1772,1682,1774,1684,1864,1594,1863,1593,1771,1681,1595,1865,1862,1685,1592,1775,1506,1505,1956,1596,1955,1507,1770,1680,1866,1957,1504,1954,1861,1591,2053,1960,2054,2146,2147,2052,1961,2148,2240,1868,1869,1959,2145,2055,2051,1962,2241,2239,2149,2335,2242,1870,1958,1777,1778,1867,2144,2056,2050,1963,2334,2243,2057,2058,1964,1965,2151,2056,2152,1963,2059,1872,2150,1873,1966,1871,2153,2055,2245,1962,2246,1874,1781,2149,2244,1870,2060,1782,1780,1967,2247,2154,1783,1875,2062,2061,1968,1969,2156,2155,2063,2060,1967,1970,1876,1877,2157,2154,1875,2250,1878,2249,2064,1966,2059,1971,1785,2251,1786,2158,1874,2248,1784,2153,1879,1787,2066,2065,1973,1972,2067,2160,2159,1974,2161,1881,1880,2064,1971,2068,2158,1882,1879,2254,1975,2253,2255,2162,1789,1790,1970,2063,1883,1788,1878,1791,2252,2157,2070,1977,2071,2069,2164,1976,1978,2165,2163,1885,1884,2072,1975,2068,1886,1979,2166,2258,1883,2259,2162,1794,2257,1793,1887,2073,2260,1795,1974,1792,2067,1980,2074,2075,1981,1982,2168,2169,2073,1980,2076,1889,2167,1888,1983,1890,2170,1979,2263,2072,2262,1887,1798,2077,1891,1797,2166,2264,2261,1799,1984,2171,1796,1978,2079,2078,1985,1986,2173,2172,2080,1984,2077,1893,1987,2174,1894,1892,2171,2267,2081,1983,2266,1895,2268,1802,2076,1891,1988,2175,1801,1803,2170,2265,1800,2269,2083,1990,2082,1989,2084,2177,2176,1991,2178,1988,1897,1898,2081,2085,1896,2271,2175,1899,2272,2179,1992,1806,2270,1987,1805,1895,1807,2080,2273,2086,1900,1804,2087,2088,1994,1993,2086,2181,1995,2182,2180,1901,1902,2089,1992,2085,2183,1900,1996,1903,2276,2275,2179,1810,1811,2277,1809,2274,2090,1991,1899,1904,2184,1812,2091,2092,1998,1999,2185,1997,2186,2090,2093,1906,1905,2184,2187,2000,1996,1907,2280,1904,2089,2279,2094,2281,1814,1815,2183,1908,1813,2188,2001,2278,1903,1995,2096,2095,2002,2003,2190,2097,2189,2001,2094,1910,2191,2004,1909,1911,2188,2098,2284,2000,2285,1908,2283,2192,1818,1819,1912,2093,2005,1817,2286,1820,2187,1907,2100,2007,2006,2101,2099,2194,2195,2193,2005,2008,1914,1913,1915,2098,2102,2289,2288,2192,2196,2009,2004,1916,1912,1822,1823,2287,2290,1824,1821,2097,2103,2191,2104,2105,2011,2010,2198,2103,2199,2012,2106,1918,2197,2009,1919,1917,2200,2102,2293,2013,2292,1920,2294,2196,1827,1826,1916,2107,2008,1828,2291,1825,2201,1921,2109,2108,2015,2014,2203,2016,2202,2110,2107,1922,1923,2204,2201,2013,2017,1921,2297,1924,2111,2298,2106,2296,1831,1830,2205,1920,1832,2200,2012,2299,1925,2018,2113,2112,2019,2020,2114,2207,2018,2206,2208,1927,1926,2111,2021,2115,2205,1928,2017,1925,2301,2302,2209,1835,1834,2300,1836,2303,2110,2022,1929,1924,2204,1833,2117,2023,2118,2024,2116,2211,2212,2022,2210,2025,1931,1930,2119,2115,1932,2306,2213,1929,2305,2209,2021,1839,2307,2026,1840,1933,1838,2120,2304,2114,1928,1841,2121,2122,2028,2027,2215,2216,2120,2029,2123,1935,2026,2214,1934,1936,2217,2310,2119,2030,2311,1933,2309,1843,2124,1937,2025,2213,1844,1842,2218,2312,1845,2308,2126,2125,2032,2031,2220,2219,2127,2033,2124,1939,2221,1940,2030,1938,2218,2034,2314,2128,2315,1941,1847,2123,1937,1848,2222,2313,2316,1846,2029,2217,1849,2035,2130,2036,2129,2131,2224,2037,2035,2223,2225,1943,1944,2128,2038,2132,1942,2034,2222,2319,1945,2318,2226,1851,2320,1852,1941,2127,2317,1850,2039,1853,2133,2033,2134,2135,2040,2041,2133,2228,2229,2039,2227,1947,1948,2136,2042,2132,2230,1946,1949,2323,2038,2324,2322,2226,1856,1855,2043,2137,1945,1857,1950,1854,2325,2231,2138,2139,2045,2044,2232,2233,2137,2140,2046,2043,1952,1951,2231,2234,1953,2327,1950,2328,2136,2047,2141,2042,1860,2326,1859,2230,1954,2329,1861,2235,1949,1858,2143,2142,2049,2048,2237,2144,2236,2050,2141,1956,2238,1955,2047,1957,2235,2145,2332,2051,2331,1954,1864,2239,2333,1958,2140,1863,1865,2046,2330,2234,1862,1953,2432,2528,2527,2433,2336,2529,2624,2337,2431,2241,2434,2526,2625,2242,2335,2338,2430,2623,2530,2626,2721,2334,2243,2147,2720,2627,2240,2148,2435,2525,2429,2339,2436,2437,2532,2340,2435,2533,2341,2339,2531,2438,2245,2629,2342,2534,2246,2434,2630,2244,2338,2628,2530,2247,2631,2151,2243,2439,2152,2343,2150,2535,2627,2726,2440,2441,2536,2344,2537,2345,2439,2442,2343,2535,2538,2346,2249,2250,2633,2634,2248,2438,2342,2632,2251,2635,2443,2534,2347,2539,2155,2247,2156,2154,2731,2730,2445,2444,2541,2349,2348,2540,2446,2443,2542,2350,2347,2539,2253,2254,2638,2637,2252,2639,2255,2447,2442,2543,2351,2346,2636,2159,2538,2160,2251,2158,2256,2735,2449,2448,2545,2353,2352,2544,2450,2546,2354,2447,2351,2258,2257,2642,2543,2641,2451,2643,2547,2259,2256,2355,2446,2350,2163,2640,2164,2644,2260,2162,2255,2542,2453,2452,2549,2357,2454,2550,2356,2548,2358,2451,2262,2646,2261,2355,2455,2551,2647,2359,2645,2263,2547,2260,2167,2168,2648,2450,2264,2354,2644,2166,2552,2456,2457,2458,2553,2361,2456,2554,2362,2360,2552,2266,2459,2555,2650,2455,2265,2651,2363,2359,2267,2649,2551,2264,2652,2172,2171,2268,2556,2460,2364,2454,2173,2358,2461,2462,2365,2558,2557,2460,2366,2364,2559,2463,2556,2270,2367,2655,2654,2269,2271,2459,2363,2656,2653,2268,2560,2555,2272,2464,2176,2175,2368,2177,2752,2174,2465,2466,2562,2369,2370,2561,2464,2563,2467,2368,2371,2274,2560,2659,2275,2658,2273,2463,2660,2564,2367,2468,2276,2657,2372,2272,2180,2179,2559,2181,2661,2756,2470,2469,2566,2374,2373,2565,2567,2471,2468,2375,2372,2278,2663,2279,2564,2277,2662,2568,2664,2472,2467,2376,2280,2371,2184,2276,2661,2183,2665,2185,2563,2760,2474,2473,2570,2378,2377,2571,2475,2569,2379,2472,2282,2376,2667,2283,2572,2668,2476,2281,2666,2568,2380,2284,2471,2669,2188,2375,2187,2280,2189,2573,2665,2765,2478,2477,2574,2382,2479,2575,2381,2383,2573,2576,2476,2286,2287,2671,2480,2672,2380,2384,2285,2288,2670,2572,2673,2192,2577,2475,2191,2193,2379,2284,2481,2289,2482,2483,2579,2386,2481,2578,2387,2385,2580,2577,2484,2291,2290,2676,2480,2675,2388,2384,2292,2289,2677,2581,2674,2196,2576,2485,2197,2195,2389,2293,2479,2288,2486,2487,2583,2390,2391,2582,2485,2584,2389,2488,2295,2392,2680,2294,2581,2679,2484,2296,2681,2585,2388,2293,2489,2678,2200,2393,2201,2297,2199,2580,2682,2777,2490,2491,2587,2394,2395,2588,2586,2489,2492,2393,2396,2299,2684,2298,2589,2300,2685,2585,2683,2488,2493,2392,2297,2397,2204,2301,2686,2205,2682,2203,2590,2782,2495,2494,2591,2399,2398,2592,2496,2590,2493,2400,2397,2303,2593,2688,2302,2689,2304,2497,2687,2589,2401,2492,2301,2690,2396,2305,2208,2209,2594,2207,2686,2786,2499,2498,2403,2595,2596,2500,2402,2404,2594,2497,2597,2307,2401,2692,2693,2308,2306,2501,2405,2691,2694,2309,2593,2598,2305,2496,2212,2213,2400,2211,2790,2214,2503,2502,2600,2407,2504,2599,2406,2408,2601,2311,2501,2598,2697,2505,2312,2696,2405,2409,2310,2698,2602,2313,2695,2216,2217,2309,2597,2500,2404,2506,2215,2410,2507,2508,2604,2411,2506,2603,2412,2605,2410,2509,2315,2701,2316,2413,2505,2602,2700,2409,2702,2314,2606,2317,2221,2220,2699,2510,2313,2414,2703,2222,2601,2504,2511,2512,2608,2415,2416,2609,2510,2607,2414,2513,2417,2319,2320,2705,2610,2706,2509,2704,2606,2318,2321,2413,2514,2418,2225,2707,2224,2703,2317,2226,2322,2611,2515,2516,2612,2419,2420,2613,2514,2517,2611,2418,2421,2614,2324,2323,2709,2710,2325,2708,2322,2513,2518,2610,2417,2422,2711,2229,2615,2228,2326,2230,2321,2807,2520,2519,2617,2424,2616,2423,2521,2518,2425,2618,2615,2422,2328,2327,2714,2713,2329,2522,2426,2715,2326,2712,2517,2619,2421,2614,2233,2330,2232,2234,2811,2812,2524,2523,2621,2428,2525,2620,2427,2429,2622,2522,2332,2718,2426,2619,2331,2526,2717,2333,2430,2719,2623,2330,2716,2237,2334,2521,2236,2425,2238,2618,2720,2816,2820,2918,2821,2917,3015,2919,2722,2819,2723,3016,2916,2822,3113,3017,2625,3014,2920,2724,2818,2626,2721,3112,3018,2720,2627,3114,2528,2915,2823,3212,3115,2624,2824,2922,2825,2923,2726,2823,2727,2921,2725,2826,3020,2924,3021,2728,2629,3019,2630,2822,2628,2920,2724,3022,2631,2827,3118,2925,2729,3018,3119,2532,2627,2533,2829,2828,2927,2926,2731,2730,2830,2827,2928,2925,3025,3024,2732,2729,2633,2634,3026,3023,2831,2826,2632,2635,2929,2924,2733,2728,3123,3122,2536,2537,2631,3027,2833,2931,2832,2930,2834,2735,2932,2734,2736,3029,2831,3028,2929,2733,2638,3030,2637,2835,2933,2737,2639,3027,2636,2830,3127,3031,2928,2732,2541,2540,3126,2640,2837,2935,2838,2836,2936,2739,2934,2740,2738,3033,2839,3034,2835,3032,2937,2642,2933,2741,2641,2737,2643,3035,2640,3031,3131,2644,2840,2545,3132,2834,2544,2742,2841,2842,2939,2940,2743,2840,2744,2938,2843,2742,3037,2941,3038,2745,2646,3036,2647,2839,2645,2937,3039,2741,2844,2648,2942,2746,2644,3136,3135,2549,3035,2550,2846,2845,2944,2943,2748,2747,2847,2844,2945,2942,3042,3041,2749,2746,2650,2651,3043,3040,2848,2649,2843,2946,2750,2652,2941,2745,3140,2553,3139,2554,2648,3044,2850,2948,2849,2947,2851,2752,2949,2751,2753,3046,2848,3045,2946,3047,2750,2655,2852,2654,2950,2754,2656,2653,3044,2847,3144,3048,2945,2749,2558,2557,3145,3143,2854,2952,2855,2853,2953,2756,2951,2757,2755,3050,2856,3051,2954,2852,3049,2659,2758,2658,2950,2754,2660,3052,2657,3048,2857,3148,3149,2562,2661,2561,2955,2759,2858,2859,2956,2957,2760,2857,2761,2955,2860,3054,2759,2958,3055,2762,2663,3053,2662,2664,2856,3056,2954,2758,2861,2959,2661,2763,2665,3153,2566,3152,3052,2565,2863,2862,2961,2960,2765,2764,2864,2962,2861,2959,3059,2766,3058,2763,2667,2668,3060,2865,2666,3057,2963,2860,2767,2669,2958,2762,3157,2665,2570,3158,2571,3061,2867,2965,2866,2964,2868,2769,2966,2768,2770,3063,2865,3062,2963,3064,2869,2671,2767,2672,2967,2771,2670,2673,3061,3065,2864,3161,3162,2574,2575,2962,2766,2669,2871,2969,2872,2970,2870,2773,2968,2774,2772,3067,2873,3068,2971,3066,2869,2676,2775,2675,2967,2771,2677,2674,3069,3065,2874,3166,3165,2579,2578,2972,2776,2678,2875,2876,2973,2974,2777,2778,2874,2972,2877,2975,3071,2776,3072,2779,2680,2679,3070,2873,2681,3073,2971,2878,2775,2678,2976,2780,3170,2682,2583,3169,2582,3069,2880,2879,2978,2977,2782,2881,2781,2979,2878,3076,2783,2976,3075,2780,2684,3077,2685,2683,2882,3074,2980,2784,2877,2975,2686,2779,2682,3174,2587,3175,3078,2588,2884,2982,2883,2885,2981,2786,2983,2785,2787,3080,2882,3079,2980,2886,3081,2688,2784,2689,2984,2788,2687,3078,2690,3082,2881,3179,3178,2591,2686,2592,2979,2783,2888,2986,2889,2987,2887,2790,2985,2791,2789,3084,2890,3085,2988,3083,2792,2692,2886,2693,2984,2788,2691,2694,3086,2891,3183,3082,2989,2793,2595,2596,3182,3184,2892,2893,2990,2991,2794,2795,2891,2894,2989,2992,3088,3089,2793,2796,2697,2696,3087,3090,2890,2698,2895,2988,2792,2695,2993,2797,3187,2600,3188,2599,2699,3086,2897,2896,2995,2994,2799,2898,2798,2996,2895,2800,3093,2993,3092,2797,2701,3094,2700,2899,2702,2997,3091,2801,2894,2699,2992,2796,2703,3191,3192,2604,3095,2603,2901,2999,2900,2902,2998,2803,3000,2802,2804,3097,2899,3096,2903,3098,2997,2705,3001,2801,2706,2805,2704,3095,2707,3099,3196,2703,2898,2608,3195,2904,2609,2800,2905,3003,2906,3004,2904,2807,3002,2808,2806,3101,2907,3102,3005,2809,2709,3100,2710,2903,3001,2805,2708,3103,2711,2908,3200,3099,3006,2810,2612,2613,3201,2707,2909,2910,3007,3008,2811,2812,2908,2911,3006,3009,3105,3106,2810,2813,2714,2713,3104,3107,2907,2912,2715,2712,3005,3010,2809,2814,3204,3205,2617,2616,2716,3103,2914,3012,2913,3011,2816,2915,2815,3013,2817,2912,3110,3010,3109,2814,2718,3111,2717,2916,2719,3014,2818,3108,2716,2911,3209,3009,2813,3112,3208,2621,2720,2620,3312,3213,3311,3214,3410,3313,3114,3411,3212,3115,3412,3508,3215,3310,3314,3409,3016,3211,3116,3113,3017,3509,3507,3413,3606,3510,3112,3018,3216,3309,3408,3315,3316,3217,3317,3218,3216,3315,3118,3415,3119,3416,3219,3318,3117,3414,3120,3020,3215,3417,3314,3021,3019,3513,3116,3514,3220,3319,3413,3022,3512,3121,3018,2922,3321,3222,3320,3221,3223,3123,3322,3122,3420,3419,3220,3319,3124,3121,3421,3418,3025,3024,3224,3323,3219,3518,3517,3026,3318,3125,3023,3120,3422,3519,3417,3516,3325,3226,3324,3225,3227,3326,3127,3424,3126,3423,3128,3224,3425,3323,3228,3327,3029,3125,3422,3028,3129,3030,3522,3521,3426,3027,3523,3223,3322,3229,3031,2931,3329,3230,3330,3231,3229,3328,3131,3428,3132,3429,3232,3130,3427,3331,3133,3228,3327,3033,3034,3032,3430,3129,3526,3426,3527,3233,3525,3332,3035,3031,3134,2935,3334,3333,3235,3234,3136,3135,3432,3236,3335,3233,3332,3433,3137,3431,3134,3037,3434,3038,3237,3232,3336,3530,3331,3036,3531,3138,3039,3133,3430,3529,2939,3035,3338,3239,3337,3238,3240,3339,3140,3437,3436,3139,3141,3237,3336,3438,3241,3435,3340,3138,3042,3041,3142,3535,3534,3043,3040,3236,3335,3439,3536,3137,3533,3434,3342,3243,3343,3244,3242,3341,3144,3441,3145,3440,3143,3245,3442,3344,3241,3340,3146,3046,3045,3439,3142,3047,3539,3538,3443,3044,3246,3540,3345,3048,3147,2948,3346,3247,3347,3248,3445,3148,3246,3345,3149,3249,3348,3446,3444,3147,3150,3050,3245,3051,3447,3344,3049,3543,3250,3349,3443,3146,3544,3542,3151,3052,3048,2952,3351,3252,3350,3251,3253,3352,3153,3449,3152,3450,3250,3349,3154,3448,3151,3254,3451,3054,3353,3055,3155,3547,3053,3548,3249,3056,3348,3447,3546,3150,2956,3549,3355,3256,3356,3257,3255,3354,3157,3454,3453,3158,3156,3258,3357,3254,3455,3353,3452,3059,3159,3058,3155,3552,3060,3551,3057,3456,3259,3553,3358,3253,3550,3352,3359,3260,3360,3261,3259,3358,3161,3458,3162,3262,3361,3457,3459,3160,3163,3063,3258,3357,3062,3456,3064,3556,3159,3263,3460,3362,3555,3557,3061,3164,3065,2965,3364,3265,3363,3264,3266,3365,3166,3462,3165,3263,3362,3463,3461,3167,3164,3067,3267,3366,3068,3464,3066,3560,3168,3262,3460,3361,3561,3559,3069,3163,3065,2969,3368,3269,3367,3268,3270,3369,3170,3466,3467,3169,3171,3267,3366,3271,3465,3370,3468,3071,3168,3072,3172,3564,3070,3565,3073,3464,3266,3563,3365,3272,3566,3371,3372,3273,3373,3274,3272,3371,3174,3471,3175,3470,3275,3374,3173,3472,3176,3271,3469,3076,3370,3075,3172,3569,3077,3568,3276,3074,3375,3473,3570,3177,2978,3567,3377,3278,3376,3277,3475,3179,3279,3378,3178,3276,3375,3474,3476,3180,3177,3080,3280,3079,3473,3379,3081,3573,3275,3374,3477,3181,3572,3574,3176,3078,3082,2982,3381,3282,3380,3281,3283,3382,3183,3479,3182,3480,3184,3280,3478,3379,3284,3383,3181,3084,3085,3481,3185,3083,3577,3578,3477,3086,3279,3576,3378,3082,3180,2986,3385,3286,3386,3287,3285,3384,3187,3483,3484,3188,3186,3288,3387,3482,3284,3485,3383,3189,3088,3089,3185,3581,3582,3087,3090,3289,3388,3481,3580,3190,3583,3486,3389,3390,3290,3291,3191,3192,3488,3289,3388,3292,3391,3487,3190,3489,3193,3093,3486,3092,3288,3293,3387,3586,3392,3094,3585,3189,3091,3194,3490,3587,2995,3095,3394,3295,3393,3294,3296,3395,3196,3492,3195,3491,3293,3197,3493,3392,3194,3297,3396,3097,3096,3098,3490,3198,3590,3494,3589,3292,3591,3391,3095,3099,3193,2999,3398,3299,3399,3300,3298,3397,3200,3496,3201,3497,3199,3301,3495,3400,3297,3396,3101,3202,3498,3102,3198,3100,3594,3595,3494,3103,3593,3302,3401,3296,3099,3003,3402,3303,3403,3304,3302,3204,3401,3205,3500,3501,3305,3404,3203,3206,3499,3502,3105,3106,3301,3400,3306,3598,3599,3104,3405,3202,3107,3207,3498,3597,3503,3600,3407,3308,3406,3307,3309,3408,3209,3505,3208,3504,3306,3405,3210,3506,3207,3110,3310,3503,3409,3109,3111,3603,3211,3602,3305,3404,3507,3108,3604,3206,3112,3012,3705,3607,3706,3802,3803,3704,3608,3509,3899,3804,3606,3510,3801,3707,3703,3609,3900,3898,3805,3411,3605,3511,3995,3901,3508,3412,3702,3610,3800,3708,3413,3507,3709,3611,3710,3612,3807,3708,3610,3808,3513,3514,3806,3711,3613,3512,3809,3904,3707,3515,3609,3905,3415,3416,3903,3805,3511,3414,3712,3614,3417,3906,3516,3810,3714,3713,3616,3615,3811,3812,3715,3712,3617,3614,3518,3517,3810,3813,3519,3516,3908,3909,3420,3419,3716,3618,3711,3613,3907,3421,3418,3809,3520,3515,3910,3814,3718,3620,3717,3619,3719,3816,3621,3815,3522,3521,3716,3817,3618,3523,3814,3720,3622,3913,3520,3912,3424,3423,3524,3425,3818,3914,3911,3617,3715,3422,3813,3519,3722,3624,3723,3721,3625,3820,3623,3819,3526,3821,3527,3525,3724,3626,3720,3622,3917,3818,3916,3428,3528,3524,3822,3429,3427,3918,3915,3627,3725,3430,3621,3426,3726,3727,3628,3629,3824,3725,3627,3825,3530,3823,3728,3531,3630,3529,3921,3532,3724,3826,3626,3432,3920,3822,3433,3922,3528,3431,3729,3631,3434,3533,3919,3430,3731,3730,3633,3632,3828,3829,3732,3634,3729,3535,3534,3631,3827,3536,3830,3533,3925,3437,3733,3436,3635,3926,3924,3728,3630,3826,3438,3537,3435,3532,3831,3927,3735,3637,3734,3636,3736,3833,3832,3638,3539,3538,3733,3635,3540,3834,3831,3737,3639,3929,3537,3930,3441,3440,3541,3928,3442,3634,3732,3835,3830,3439,3931,3536,3739,3641,3740,3738,3642,3837,3640,3836,3543,3838,3544,3542,3741,3643,3737,3639,3835,3933,3934,3545,3445,3541,3446,3444,3839,3932,3935,3644,3742,3447,3443,3638,3743,3744,3645,3646,3841,3742,3644,3840,3547,3842,3745,3548,3647,3546,3549,3938,3937,3741,3839,3643,3449,3843,3450,3746,3648,3448,3545,3939,3936,3451,3550,3351,3748,3747,3650,3649,3845,3749,3846,3651,3746,3552,3551,3844,3648,3553,3550,3847,3942,3941,3750,3652,3454,3453,3843,3745,3943,3647,3455,3554,3452,3549,3940,3848,3752,3654,3751,3653,3753,3849,3655,3850,3556,3555,3848,3750,3557,3652,3851,3754,3656,3946,3554,3458,3945,3947,3457,3558,3459,3847,3651,3749,3456,3852,3944,3460,3756,3658,3757,3659,3755,3854,3657,3853,3560,3561,3855,3758,3559,3660,3852,3754,3656,3950,3562,3462,3951,3949,3463,3558,3461,3856,3661,3759,3464,3851,3952,3460,3760,3761,3662,3663,3858,3759,3857,3661,3762,3564,3565,3859,3664,3563,3566,3856,3954,3955,3758,3660,3466,3467,3860,3763,3953,3665,3465,3562,3468,3567,3956,3855,3765,3764,3667,3666,3862,3766,3668,3863,3569,3861,3763,3568,3665,3570,3567,3958,3959,3767,3864,3669,3471,3860,3470,3762,3664,3472,3571,3957,3960,3469,3566,3372,3769,3671,3768,3770,3670,3866,3672,3867,3573,3865,3572,3574,3767,3669,3771,3673,3868,3963,3962,3571,3475,3575,3474,3476,3864,3964,3961,3668,3766,3473,3477,3674,3773,3675,3774,3676,3772,3870,3871,3674,3577,3578,3775,3677,3576,3869,3872,3771,3673,3967,3579,3966,3479,3480,3575,3968,3478,3678,3776,3868,3873,3481,3965,3580,3777,3778,3679,3680,3875,3874,3776,3678,3779,3581,3582,3681,3876,3580,3873,3583,3971,3483,3775,3484,3677,3970,3972,3780,3682,3877,3482,3579,3485,3584,3872,3969,3782,3781,3684,3683,3879,3783,3685,3878,3586,3880,3780,3585,3682,3587,3975,3584,3784,3877,3686,3488,3976,3881,3487,3974,3588,3489,3779,3681,3486,3583,3977,3490,3786,3688,3785,3787,3687,3883,3689,3884,3590,3882,3589,3591,3784,3686,3788,3690,3979,3885,3980,3492,3588,3592,3881,3491,3493,3978,3981,3685,3783,3490,3691,3494,3790,3692,3791,3693,3789,3887,3691,3888,3594,3595,3792,3886,3694,3593,3889,3788,3690,3983,3596,3984,3496,3497,3592,3495,3885,3982,3985,3695,3793,3498,3890,3597,3794,3795,3696,3697,3892,3891,3793,3796,3695,3698,3598,3599,3893,3890,3597,3600,3988,3987,3500,3501,3792,3694,3797,3699,3989,3499,3502,3894,3596,3601,3986,3889,3799,3701,3798,3700,3896,3800,3702,3895,3603,3602,3897,3797,3699,3604,3894,3992,3801,3601,3703,3991,3505,3504,3993,3898,3605,3506,3796,3698,3503,3990,3600,3893,4092,3996,-1,4093,4186,-1,-1,4091,3997,3900,-1,-1,-1,3995,3901,-1,4094,4185,-1,4090,3998,-1,3803,3902,3994,-1,-1,3899,3804,-1,-1,-1,4096,4097,4000,-1,-1,4095,4001,3999,-1,3904,-1,-1,4098,-1,3905,4002,3903,4094,-1,3998,-1,-1,3906,3807,-1,3808,3902,-1,-1,3806,-1,4003,4100,4101,4004,-1,-1,4005,4099,-1,4003,-1,4102,3908,-1,4006,3909,-1,3907,-1,4098,3910,-1,-1,4002,3811,-1,3812,-1,4007,-1,4103,3906,3810,4104,4105,-1,4009,4008,-1,-1,4103,4106,4010,4007,-1,3913,3912,-1,-1,-1,-1,3914,3911,4102,3816,-1,4011,3815,4006,4107,-1,-1,3817,-1,-1,4109,4108,-1,4013,4012,-1,-1,4110,4107,4014,3917,-1,-1,3916,4011,-1,3918,-1,-1,3915,4015,-1,4111,3820,4106,3819,-1,-1,3821,4010,-1,-1,4113,4112,4017,-1,-1,4016,4114,4018,-1,4111,-1,3921,-1,-1,3920,4015,3922,-1,4019,-1,4115,-1,3919,-1,3824,3923,3825,4110,-1,3823,-1,-1,4117,4116,4021,-1,-1,4118,4022,4020,-1,3925,-1,4115,-1,3926,-1,3924,-1,4023,-1,4019,4119,-1,3927,3828,3923,3829,-1,-1,-1,3827,-1,4114,4121,-1,4025,4120,4122,-1,4026,-1,4024,3929,-1,3930,-1,4119,-1,4027,3928,-1,4123,-1,4023,3931,-1,3833,3832,-1,3927,-1,-1,-1,4028,3834,4125,4126,4029,-1,-1,4124,4030,4028,-1,-1,3933,4031,3934,-1,-1,4127,4123,3932,-1,-1,3935,-1,-1,4027,3837,3836,4032,-1,-1,3838,3931,-1,4129,4130,-1,4034,4033,-1,4128,-1,4035,4032,3938,-1,3937,4131,-1,-1,-1,4127,3939,-1,3936,-1,4036,3841,4031,3840,-1,3842,-1,-1,-1,4132,4133,4134,-1,4038,4037,-1,4132,-1,4039,4135,3942,-1,3941,4036,-1,-1,-1,3943,-1,4131,4040,3940,-1,3845,3846,-1,-1,4136,3844,3944,-1,4035,4137,4138,4042,-1,-1,4041,4043,4136,-1,4139,-1,3946,-1,-1,3945,3947,4040,4044,-1,-1,-1,4135,3944,-1,3849,3850,4140,3948,-1,-1,3848,-1,4142,4141,4046,-1,-1,4047,4045,4143,-1,4140,3950,-1,-1,-1,3951,3949,4048,-1,4044,-1,-1,4144,3952,3854,3853,4139,3948,-1,-1,-1,-1,3855,4146,4145,-1,4050,4051,-1,-1,4147,4049,4144,3954,-1,3955,4052,-1,-1,-1,-1,3953,4148,4048,3956,3858,-1,-1,3857,-1,4143,3859,3952,4053,-1,4150,4149,-1,4054,4055,-1,4151,-1,4053,-1,4056,3958,3959,-1,4148,-1,-1,4152,3957,3960,-1,-1,4052,3862,-1,4057,3863,-1,3861,-1,-1,4147,4154,-1,4153,4059,4155,4058,-1,-1,4060,-1,3963,4057,-1,3962,-1,4152,4156,3964,-1,3961,-1,-1,4061,3866,-1,3867,4056,-1,-1,3865,-1,3965,4158,-1,4063,4159,4157,4062,-1,-1,4064,3967,-1,3966,4160,4061,-1,-1,-1,-1,3968,4156,4065,3965,3870,3871,-1,-1,-1,3969,-1,4060,-1,3869,4162,4163,4067,-1,-1,4161,4066,4068,-1,3971,-1,4164,-1,-1,3970,3972,4065,-1,4069,4160,-1,-1,3969,3875,3973,3874,-1,-1,-1,3876,-1,4165,4166,4167,4071,-1,-1,4072,4165,4070,-1,4168,-1,3975,-1,-1,3976,4073,3974,-1,4069,-1,-1,4164,3977,3879,-1,3973,3878,4169,-1,3880,-1,-1,4170,4171,-1,4075,4076,-1,-1,4169,4172,4074,3979,-1,3980,4077,-1,-1,-1,-1,3978,3981,4073,4168,3883,-1,4173,3884,-1,-1,3882,4078,3977,-1,4175,4174,-1,4079,4080,-1,4176,-1,4173,4078,4081,3983,-1,3984,-1,-1,-1,3982,-1,3985,4177,-1,3887,4077,3888,4082,4172,-1,-1,-1,-1,3886,4179,4178,4084,-1,-1,4083,4180,4085,-1,-1,4177,3988,-1,4082,3987,-1,3989,-1,4181,-1,3986,-1,4086,-1,3892,3891,-1,-1,4081,4176,3990,3893,4183,4182,-1,4088,4184,-1,4087,-1,4089,3992,-1,4181,3991,-1,-1,4086,3993,-1,4185,-1,4090,3990,-1,3896,3895,-1,3994,-1,-1,3897,-1,4085]}}} diff --git a/docs/source/_static/css/foveation-viewer.css b/docs/source/_static/css/foveation-viewer.css deleted file mode 100644 index 8d12840598d8..000000000000 --- a/docs/source/_static/css/foveation-viewer.css +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright (c) 2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). - * All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -/* Interactive sampling-grid and pooling viewers on the Foveated Camera page. */ - -.fovi-viewer { - --fovi-ink: #1f2a37; - --fovi-muted: #8a96a8; - --fovi-faint: #d7dee8; - --fovi-surface: #ffffff; - --fovi-panel: #f6f8fb; - --fovi-border: #dfe5ec; - --fovi-accent: #2458d3; - --fovi-camera: #167d72; - --fovi-highlight: #d47b00; - --fovi-body: #29364b; - margin: 1.25rem 0 1.75rem; - padding: 1rem; - border: 1px solid var(--fovi-border); - border-radius: 8px; - background: var(--fovi-panel); - color: var(--fovi-ink); -} - -html[data-theme="dark"] .fovi-viewer { - --fovi-ink: #e3e8ef; - --fovi-muted: #7d8899; - --fovi-faint: #3a4556; - --fovi-surface: #11161d; - --fovi-panel: #1a2029; - --fovi-border: #343d4b; - --fovi-accent: #6d9cff; - --fovi-camera: #3cc2ad; - --fovi-highlight: #f0a33a; - --fovi-body: #5b6f8c; -} - -.fovi-controls { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); - gap: 0.6rem 1.2rem; - align-items: end; -} - -.fovi-control { - display: grid; - grid-template-columns: 1fr auto; - gap: 0.15rem 0.5rem; - margin: 0; - font-size: 0.85rem; -} - -.fovi-viewer [hidden] { - display: none; -} - -.fovi-control-name { - grid-column: 1 / -1; -} - -.fovi-control input[type="range"], -.fovi-control select { - width: 100%; - min-width: 0; - accent-color: var(--fovi-accent); -} - -.fovi-control select { - padding: 0.15rem 0.3rem; - border: 1px solid var(--fovi-border); - border-radius: 4px; - background: var(--fovi-surface); - color: var(--fovi-ink); -} - -.fovi-control-value { - min-width: 3.5rem; - font-variant-numeric: tabular-nums; - text-align: right; -} - -.fovi-reset { - justify-self: start; - padding: 0.25rem 0.9rem; - border: 1px solid var(--fovi-border); - border-radius: 4px; - background: var(--fovi-surface); - color: var(--fovi-ink); - font-size: 0.85rem; - cursor: pointer; -} - -.fovi-summary { - margin: 0.9rem 0 0.6rem; - font-size: 0.9rem; -} - -.fovi-panels { - display: grid; - grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); - gap: 1rem; -} - -.fovi-panels-stacked { - grid-template-columns: 1fr; -} - -.fovi-panels-three { - grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); -} - -.fovi-panel { - margin: 0; - padding: 0.6rem; - border: 1px solid var(--fovi-border); - border-radius: 6px; - background: var(--fovi-surface); -} - -.fovi-panel-control { - max-width: 22rem; - margin-bottom: 0.4rem; -} - -.fovi-panel figcaption { - margin-bottom: 0.4rem; - font-weight: 600; - font-size: 0.9rem; -} - -.fovi-views { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 0.4rem; -} - -.fovi-canvas { - display: block; - width: 100%; - aspect-ratio: 1; - touch-action: none; -} - -.fovi-sphere { - cursor: grab; -} - -.fovi-panel-labels { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 0.4rem; - color: var(--fovi-muted); - font-size: 0.75rem; - text-align: center; -} - -.fovi-panel-note { - margin: 0.4rem 0 0; - font-size: 0.8rem; -} - -.fovi-legend { - display: flex; - flex-wrap: wrap; - align-items: center; - gap: 0.3rem 0.5rem; - margin: 0.7rem 0 0; - font-size: 0.8rem; -} - -.fovi-key { - display: inline-block; - width: 0.7rem; - height: 0.7rem; - margin-left: 0.6rem; - border-radius: 50%; -} - -.fovi-key:first-child { - margin-left: 0; -} - -.fovi-key-accent { - background: var(--fovi-accent); -} - -.fovi-key-muted { - background: var(--fovi-muted); -} - -.fovi-key-camera { - background: var(--fovi-camera); -} - -.fovi-key-highlight { - background: var(--fovi-highlight); -} - -.fovi-legend-note { - margin-left: auto; - color: var(--fovi-muted); -} diff --git a/docs/source/_static/css/foveation-viewer.js b/docs/source/_static/css/foveation-viewer.js deleted file mode 100644 index 1e7bdda1d9b3..000000000000 --- a/docs/source/_static/css/foveation-viewer.js +++ /dev/null @@ -1,987 +0,0 @@ -/* - * Copyright (c) 2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). - * All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -// Interactive sampling-grid and pooling viewers for the Foveated Camera page. -// The sampling follows fovi's SamplingCoords with spherical field geometry, as the camera configures it. -(() => { - "use strict"; - - const DEG = Math.PI / 180; - const TAU = 2 * Math.PI; - // fovi's isotropic pooling neighbourhoods for the pooling viewer, beside this script; fetched only when used. - const SCRIPT_URL = typeof document !== "undefined" && document.currentScript ? document.currentScript.src : null; - const TABLES_URL = SCRIPT_URL ? new URL("foveation-pooling-isotropic.json", SCRIPT_URL).href : null; - - // -- Sampling geometry ------------------------------------------------------------------------------------------- - - // Warped Cartesian grid: an N x N lattice in the native plane, mapped radially by the integrated CMF. - // Returns samples in canonical order (x index major), each with normalized visual coordinates s = (x, y) / r_max. - const warpedGrid = (fov, a, res) => { - const half = fov / 2; - const growth = 1 + half / a; - const samples = []; - for (let i = 0; i < res; i++) { - for (let j = 0; j < res; j++) { - const cx = -1 + (2 * i + 1) / res; - const cy = -1 + (2 * j + 1) / res; - const rho = Math.hypot(cx, cy); - const r = a * (Math.pow(growth, rho) - 1); - const theta = Math.atan2(cy, cx); - samples.push({i, j, native: [cx, cy], s: [(r / half) * Math.cos(theta), (r / half) * Math.sin(theta)], valid: rho <= 1 + 1e-12}); - } - } - return samples; - }; - - // Isotropic rings: radii even in cortical distance w = log(r + a), angles per ring matched to the radial step. - const isotropicRings = (fov, a, res) => { - if (res === 1) { - return {radius: [0], count: [1]}; - } - const half = fov / 2; - const wMin = Math.log(a); - const wDelta = (Math.log(half + a) - wMin) / (res - 1); - const radius = Array.from({length: res + 1}, (_, k) => Math.exp(wMin + k * wDelta) - a); - const count = [1]; - for (let k = 1; k < res; k++) { - const step = (radius[k + 1] - radius[k - 1]) / 2; - const tangential = Math.sin(radius[k] * DEG) / DEG; // spherical field geometry - count.push(Math.ceil((TAU * tangential) / step)); - } - return {radius: radius.slice(0, res).map((r) => r / half), count}; - }; - - const isotropicCount = (fov, a, res) => isotropicRings(fov, a, res).count.reduce((sum, n) => sum + n, 0); - - // The camera matches an isotropic retina to foveated_res^2 samples (fovi's auto_match_num_coords). - const matchedIsotropicRes = (fov, a, target) => { - let left = 1; - let right = 1000; - let best = 1; - let bestDiff = Infinity; - while (left <= right) { - const mid = (left + right) >> 1; - const n = isotropicCount(fov, a, mid); - const diff = Math.abs(n - target); - if (diff < bestDiff) { - bestDiff = diff; - best = mid; - } - if (n < target) { - left = mid + 1; - } else { - right = mid - 1; - } - } - while (best > 1 && isotropicCount(fov, a, best) > target) { - best -= 1; - } - return best; - }; - - const isotropicSamples = (fov, a, rings) => { - const {radius, count} = isotropicRings(fov, a, rings); - const samples = []; - radius.forEach((r, ring) => { - for (let k = 0; k < count[ring]; k++) { - const angle = (k * TAU) / count[ring]; - samples.push({ring, s: [r * Math.cos(angle), r * Math.sin(angle)], valid: true}); - } - }); - return samples; - }; - - // Unit ray of a normalized visual coordinate, in the image frame: x right, y down, z forward. - const ray = (s, fov) => { - const e = Math.hypot(s[0], s[1]) * (fov / 2) * DEG; - const theta = Math.atan2(s[1], s[0]); - return [Math.sin(e) * Math.cos(theta), -Math.sin(e) * Math.sin(theta), Math.cos(e)]; - }; - - // Pan-then-tilt gaze rotation (row-major), as isaaclab_fovi's gaze kernels: positive tilt looks up, pan left. - const gazeRotation = (tilt, pan) => { - const x = -Math.cos(tilt * DEG) * Math.sin(pan * DEG); - const y = -Math.sin(tilt * DEG); - const z = Math.cos(tilt * DEG) * Math.cos(pan * DEG); - const pitch = Math.atan2(x, z); - const roll = Math.atan2(-y, Math.hypot(x, z)); - const [cp, sp, cr, sr] = [Math.cos(pitch), Math.sin(pitch), Math.cos(roll), Math.sin(roll)]; - return [[cp, sp * sr, sp * cr], [0, cr, -sr], [-sp, cp * sr, cp * cr]]; - }; - - const rotate = (m, v) => m.map((row) => row[0] * v[0] + row[1] * v[1] + row[2] * v[2]); - - // An ideal square camera whose field of view spans its side; the retina spans the same angle. - const SIDE = 1000; - const cameraModels = { - fisheye: { - label: "Equidistant fisheye", - fov: {min: 40, max: 240, initial: 180}, - focal: (fov) => SIDE / 2 / ((fov / 2) * DEG), - project(d, f) { - const lateral = Math.hypot(d[0], d[1]); - const theta = Math.atan2(lateral, d[2]); - if (lateral < 1e-12) { - return [SIDE / 2, SIDE / 2]; - } - return [SIDE / 2 + (f * theta * d[0]) / lateral, SIDE / 2 + (f * theta * d[1]) / lateral]; - }, - unproject(p, f) { - const dx = p[0] - SIDE / 2; - const dy = p[1] - SIDE / 2; - const theta = Math.hypot(dx, dy) / f; - const lateral = Math.hypot(dx, dy) || 1; - return [(Math.sin(theta) * dx) / lateral, (Math.sin(theta) * dy) / lateral, Math.cos(theta)]; - }, - }, - pinhole: { - label: "Pinhole", - fov: {min: 20, max: 170, initial: 80}, - focal: (fov) => SIDE / 2 / Math.tan((fov / 2) * DEG), - project(d, f) { - if (d[2] <= 1e-9) { - return null; - } - return [SIDE / 2 + (f * d[0]) / d[2], SIDE / 2 + (f * d[1]) / d[2]]; - }, - unproject(p, f) { - return normalize([(p[0] - SIDE / 2) / f, (p[1] - SIDE / 2) / f, 1]); - }, - }, - }; - - const normalize = (v) => { - const n = Math.hypot(v[0], v[1], v[2]); - return [v[0] / n, v[1] / n, v[2] / n]; - }; - - const inImage = (p) => p !== null && p[0] >= 0 && p[0] < SIDE && p[1] >= 0 && p[1] < SIDE; - - const imageBorder = (model, f) => { - const points = []; - const corners = [[0, 0], [SIDE, 0], [SIDE, SIDE], [0, SIDE], [0, 0]]; - for (let k = 0; k < 4; k++) { - for (let t = 0; t < 40; t++) { - const [a, b] = [corners[k], corners[k + 1]]; - points.push(model.unproject([a[0] + ((b[0] - a[0]) * t) / 40, a[1] + ((b[1] - a[1]) * t) / 40], f)); - } - } - points.push(points[0]); - return points; - }; - - // Spacing of neighbouring samples [deg] at the fixation and at the edge of the field. - const spacing = (style, fov, a, res) => { - const half = fov / 2; - if (style === "isotropic") { - const step = (Math.log(half + a) - Math.log(a)) / Math.max(res - 1, 1); - return [a * (Math.exp(step) - 1), (half + a) * (1 - Math.exp(-step))]; - } - const rate = Math.log(1 + half / a) * (2 / res); - return [a * rate, (half + a) * rate]; - }; - - // -- Drawing helpers --------------------------------------------------------------------------------------------- - - const palette = (element) => { - const style = getComputedStyle(element); - const get = (name, fallback) => style.getPropertyValue(name).trim() || fallback; - return { - ink: get("--fovi-ink", "#1f2a37"), - muted: get("--fovi-muted", "#8a96a8"), - faint: get("--fovi-faint", "#d7dee8"), - surface: get("--fovi-surface", "#ffffff"), - accent: get("--fovi-accent", "#2458d3"), - camera: get("--fovi-camera", "#167d72"), - highlight: get("--fovi-highlight", "#d47b00"), - body: get("--fovi-body", "#29364b"), - }; - }; - - const fitCanvas = (canvas) => { - const box = canvas.getBoundingClientRect(); - const ratio = Math.min(window.devicePixelRatio || 1, 2); - canvas.width = Math.max(1, Math.round(box.width * ratio)); - canvas.height = Math.max(1, Math.round(box.height * ratio)); - const ctx = canvas.getContext("2d"); - ctx.setTransform(ratio, 0, 0, ratio, 0, 0); - return {ctx, w: box.width, h: box.height}; - }; - - const polyline = (ctx, points, color, width, dash = []) => { - if (points.length < 2) { - return; - } - ctx.beginPath(); - ctx.setLineDash(dash); - ctx.strokeStyle = color; - ctx.lineWidth = width; - points.forEach((p, k) => (k === 0 ? ctx.moveTo(p[0], p[1]) : ctx.lineTo(p[0], p[1]))); - ctx.stroke(); - ctx.setLineDash([]); - }; - - const dots = (ctx, points, color, radius, alpha = 1) => { - ctx.globalAlpha = alpha; - ctx.fillStyle = color; - ctx.beginPath(); - for (const p of points) { - ctx.moveTo(p[0] + radius, p[1]); - ctx.arc(p[0], p[1], radius, 0, TAU); - } - ctx.fill(); - ctx.globalAlpha = 1; - }; - - // Orbiting orthographic view of the viewing sphere; the camera sits at its centre looking along +z. - const sphereProjector = (view, w, h) => { - const scale = Math.min(w, h) * 0.4; - const [cy, sy, cp, sp] = [Math.cos(view.yaw), Math.sin(view.yaw), Math.cos(view.pitch), Math.sin(view.pitch)]; - return ([x, y, z]) => { - const rx = cy * x - sy * z; - const rz = sy * x + cy * z; - const ry = cp * y - sp * rz; - const depth = sp * y + cp * rz; - return [w / 2 + rx * scale, h / 2 + ry * scale, depth]; - }; - }; - - const bindOrbit = (canvas, view, redraw, initial) => { - let last = null; - canvas.addEventListener("pointerdown", (event) => { - last = [event.clientX, event.clientY]; - canvas.setPointerCapture(event.pointerId); - }); - canvas.addEventListener("pointermove", (event) => { - if (!last) { - return; - } - view.yaw += (event.clientX - last[0]) * 0.01; - view.pitch = Math.max(-1.5, Math.min(1.5, view.pitch - (event.clientY - last[1]) * 0.01)); - last = [event.clientX, event.clientY]; - redraw(); - }); - for (const name of ["pointerup", "pointercancel"]) { - canvas.addEventListener(name, () => (last = null)); - } - canvas.addEventListener("dblclick", () => { - Object.assign(view, initial); - redraw(); - }); - }; - - const drawSphere = (canvas, view, scene, colors) => { - const {ctx, w, h} = fitCanvas(canvas); - const project = sphereProjector(view, w, h); - // The viewer looks from behind the camera, so smaller depths are nearer; nothing is opaque but the camera. - const segment = (points, color, width) => polyline(ctx, points.map(project), color, width); - const circle = (polar) => Array.from({length: 121}, (_, k) => { - const az = (k * TAU) / 120; - return [Math.sin(polar) * Math.cos(az), Math.sin(polar) * Math.sin(az), Math.cos(polar)]; - }); - for (const polar of [30, 60, 90, 120, 150]) { - segment(circle(polar * DEG), colors.faint, polar === 90 ? 1.2 : 0.7); - } - for (let k = 0; k < 12; k++) { - const az = (k * TAU) / 12; - segment(Array.from({length: 61}, (_, t) => { - const polar = (t * Math.PI) / 60; - return [Math.sin(polar) * Math.cos(az), Math.sin(polar) * Math.sin(az), Math.cos(polar)]; - }), colors.faint, 0.7); - } - segment(scene.border, colors.camera, 2); - const radius = scene.dotRadius; - dots(ctx, scene.rays.filter((r) => !r.valid).map((r) => project(r.dir)), colors.muted, radius, 0.5); - dots(ctx, scene.rays.filter((r) => r.valid).map((r) => project(r.dir)), colors.accent, radius, 0.7); - for (const line of scene.lines) { - segment(line, colors.accent, 0.8); - } - segment(scene.retinaEdge, colors.accent, 1.6); - const gaze = project(scene.gaze); - dots(ctx, [gaze], colors.surface, 4.5); - ctx.beginPath(); - ctx.arc(gaze[0], gaze[1], 4.5, 0, TAU); - ctx.strokeStyle = colors.accent; - ctx.lineWidth = 2; - ctx.stroke(); - // Camera housing at the centre. - const body = [[-0.09, -0.06, -0.22], [0.09, -0.06, -0.22], [0.09, 0.06, -0.22], [-0.09, 0.06, -0.22], - [-0.09, -0.06, -0.06], [0.09, -0.06, -0.06], [0.09, 0.06, -0.06], [-0.09, 0.06, -0.06]]; - const faces = [[0, 1, 2, 3], [4, 5, 6, 7], [0, 1, 5, 4], [1, 2, 6, 5], [2, 3, 7, 6], [3, 0, 4, 7]] - .map((face) => face.map((k) => project(body[k]))) - .sort((a, b) => b.reduce((s, p) => s + p[2], 0) - a.reduce((s, p) => s + p[2], 0)); - for (const face of faces) { - ctx.beginPath(); - face.forEach((p, k) => (k === 0 ? ctx.moveTo(p[0], p[1]) : ctx.lineTo(p[0], p[1]))); - ctx.closePath(); - ctx.fillStyle = colors.body; - ctx.fill(); - ctx.strokeStyle = colors.faint; - ctx.lineWidth = 0.6; - ctx.stroke(); - } - }; - - // -- Sampling viewer --------------------------------------------------------------------------------------------- - - const control = (label, input, output) => { - const wrapper = document.createElement("label"); - wrapper.className = "fovi-control"; - const name = document.createElement("span"); - name.className = "fovi-control-name"; - name.innerHTML = label; - wrapper.append(name, input); - if (output) { - wrapper.append(output); - } - return wrapper; - }; - - const slider = (min, max, step, value) => { - const input = document.createElement("input"); - Object.assign(input, {type: "range", min, max, step, value}); - return input; - }; - - const select = (options, value) => { - const input = document.createElement("select"); - for (const [key, text] of options) { - input.append(new Option(text, key)); - } - input.value = value; - return input; - }; - - const readout = () => { - const output = document.createElement("output"); - output.className = "fovi-control-value"; - return output; - }; - - const formatA = (a) => (a >= 100 ? a.toFixed(0) : a >= 10 ? a.toFixed(1) : a >= 1 ? a.toFixed(2) : a.toFixed(3)); - - const initSamplingViewer = (root) => { - const defaults = {style: "warped_cartesian_as_grid", logA: Math.log10(0.591), res: 32, tilt: 0, pan: 0}; - const state = {...defaults}; - const inputs = { - style: select([["warped_cartesian_as_grid", "warped_cartesian_as_grid"], ["isotropic", "isotropic"]], state.style), - logA: slider(-2, 3, 0.01, state.logA), - res: slider(8, 128, 1, state.res), - tilt: slider(-60, 60, 1, state.tilt), - pan: slider(-60, 60, 1, state.pan), - }; - const outputs = {logA: readout(), res: readout(), tilt: readout(), pan: readout()}; - const controls = document.createElement("div"); - controls.className = "fovi-controls"; - controls.append( - control("foveated_style", inputs.style), - control("cmf_a_deg", inputs.logA, outputs.logA), - control("foveated_res", inputs.res, outputs.res), - control("Gaze tilt", inputs.tilt, outputs.tilt), - control("Gaze pan", inputs.pan, outputs.pan), - ); - const reset = document.createElement("button"); - reset.type = "button"; - reset.className = "fovi-reset"; - reset.textContent = "Reset"; - controls.append(reset); - const summary = document.createElement("p"); - summary.className = "fovi-summary"; - summary.setAttribute("aria-live", "polite"); - const panels = document.createElement("div"); - panels.className = "fovi-panels fovi-panels-stacked"; - const initialView = {yaw: -0.6, pitch: 0.35}; - const cameras = Object.entries(cameraModels).map(([key, model]) => { - const panel = document.createElement("figure"); - panel.className = "fovi-panel"; - const title = document.createElement("figcaption"); - title.textContent = model.label; - const sphere = document.createElement("canvas"); - sphere.className = "fovi-canvas fovi-sphere"; - sphere.setAttribute("aria-label", `${model.label}: the retina's rays on the viewing sphere. Drag to rotate; double-click to reset.`); - const image = document.createElement("canvas"); - image.className = "fovi-canvas fovi-image"; - image.setAttribute("aria-label", `${model.label}: where the retina's samples land in the camera image.`); - const labels = document.createElement("div"); - labels.className = "fovi-panel-labels"; - labels.innerHTML = "Viewing sphere (drag to rotate)Camera image"; - const views = document.createElement("div"); - views.className = "fovi-views"; - views.append(sphere, image); - const note = document.createElement("p"); - note.className = "fovi-panel-note"; - // Each camera has its own field of view; the retina spans it. - const fovInput = slider(model.fov.min, model.fov.max, 1, model.fov.initial); - const fovOutput = readout(); - const fovControl = control("Field of view", fovInput, fovOutput); - fovControl.classList.add("fovi-panel-control"); - panel.append(title, fovControl, views, labels, note); - panels.append(panel); - const view = {...initialView}; - const camera = {key, model, sphere, image, note, view, fov: model.fov.initial, fovInput, fovOutput}; - fovInput.addEventListener("input", () => { - camera.fov = Number(fovInput.value); - sync(); - }); - return camera; - }); - const legend = document.createElement("p"); - legend.className = "fovi-legend"; - legend.innerHTML = 'retinal sample' - + 'outside the camera image (masked with mask_to_sensor_fov)' - + 'camera image border'; - root.append(controls, summary, panels, legend); - - const samplesCache = new Map(); - const samplesFor = (fov) => { - const a = Math.pow(10, state.logA); - const key = `${state.style}/${a}/${state.res}/${fov}`; - if (samplesCache.has(key)) { - return samplesCache.get(key); - } - let samples; - let description; - let resolution = state.res; - if (state.style === "isotropic") { - resolution = matchedIsotropicRes(fov, a, state.res * state.res); - samples = isotropicSamples(fov, a, resolution); - description = `${samples.length.toLocaleString("en-US")} samples on ${resolution} rings, published as (num_envs, ${samples.length}, 1, C)`; - } else { - samples = warpedGrid(fov, a, state.res); - const valid = samples.filter((s) => s.valid).length; - description = `${state.res} × ${state.res} grid, ${valid.toLocaleString("en-US")} samples inside the circular field, published as (num_envs, ${state.res}, ${state.res}, C)`; - } - const [centre, edge] = spacing(state.style, fov, a, resolution); - const entry = {samples: samples.filter((s) => s.valid), all: samples, description, centre, edge}; - samplesCache.set(key, entry); - if (samplesCache.size > 4) { - samplesCache.delete(samplesCache.keys().next().value); // keep the recent settings of both cameras - } - return entry; - }; - - // The retina's rays, outline and warped-grid lattice lines (every few rows and columns) for a field of view. - const retinaFor = (fov, rotation) => { - const data = samplesFor(fov); - const rays = data.samples.map((s) => rotate(rotation, ray(s.s, fov))); - const edge = Array.from({length: 181}, (_, k) => rotate(rotation, ray([Math.cos((k * TAU) / 180), Math.sin((k * TAU) / 180)], fov))); - const lines = []; - if (state.style !== "isotropic") { - const every = Math.max(1, Math.round(state.res / 16)); - const index = new Map(data.all.map((s) => [s.i * state.res + s.j, s])); - for (let fixed = Math.floor(every / 2); fixed < state.res; fixed += every) { - for (const transpose of [false, true]) { - let run = []; - for (let moving = 0; moving < state.res; moving++) { - const s = index.get(transpose ? moving * state.res + fixed : fixed * state.res + moving); - if (s && s.valid) { - run.push(rotate(rotation, ray(s.s, fov))); - } else if (run.length) { - lines.push(run); - run = []; - } - } - if (run.length) { - lines.push(run); - } - } - } - } - return {data, rays, edge, lines}; - }; - - const redraw = () => { - const colors = palette(root); - const rotation = gazeRotation(state.tilt, state.pan); - const gaze = rotate(rotation, [0, 0, 1]); - summary.textContent = "Each camera's retina spans that camera's field of view; move its slider to compare fields."; - for (const camera of cameras) { - const {data, rays, edge, lines} = retinaFor(camera.fov, rotation); - const count = rays.length; - const dotRadius = Math.max(0.6, Math.min(2.4, 70 / Math.sqrt(count))); - const f = camera.model.focal(camera.fov); - const projected = rays.map((d) => camera.model.project(d, f)); - const valid = projected.map(inImage); - const inside = valid.filter(Boolean).length; - drawSphere(camera.sphere, camera.view, { - rays: rays.map((dir, k) => ({dir, valid: valid[k]})), - border: imageBorder(camera.model, f), - lines, - retinaEdge: edge, - gaze, - dotRadius, - }, colors); - drawImagePlane(camera.image, projected, valid, edge.map((d) => camera.model.project(d, f)), camera.model.project(gaze, f), dotRadius, colors); - camera.note.innerHTML = `${data.description}. Sample spacing: ${data.centre.toPrecision(2)}° at the fixation, ` - + `${data.edge.toPrecision(2)}° at the edge of the ${camera.fov}° field. ` - + `${inside.toLocaleString("en-US")} of ${count.toLocaleString("en-US")} samples inside the image (${((100 * inside) / count).toFixed(0)}%).`; - } - }; - - const drawImagePlane = (canvas, projected, valid, edge, gaze, radius, colors) => { - const {ctx, w, h} = fitCanvas(canvas); - const margin = 0.18; - const scale = Math.min(w, h) / (SIDE * (1 + 2 * margin)); - const ox = (w - SIDE * scale) / 2; - const oy = (h - SIDE * scale) / 2; - const map = (p) => [ox + p[0] * scale, oy + p[1] * scale]; - ctx.fillStyle = colors.surface; - ctx.fillRect(ox, oy, SIDE * scale, SIDE * scale); - ctx.strokeStyle = colors.camera; - ctx.lineWidth = 2; - ctx.strokeRect(ox, oy, SIDE * scale, SIDE * scale); - polyline(ctx, [map([SIDE / 2, 0]), map([SIDE / 2, SIDE])], colors.faint, 0.7); - polyline(ctx, [map([0, SIDE / 2]), map([SIDE, SIDE / 2])], colors.faint, 0.7); - const visible = (p) => p !== null && p[0] > -SIDE && p[0] < 2 * SIDE && p[1] > -SIDE && p[1] < 2 * SIDE; - ctx.save(); - ctx.beginPath(); - ctx.rect(0, 0, w, h); - ctx.clip(); - dots(ctx, projected.filter((p, k) => !valid[k] && visible(p)).map(map), colors.muted, radius, 0.5); - dots(ctx, projected.filter((p, k) => valid[k]).map(map), colors.accent, radius, 0.75); - const edgeRuns = []; - let run = []; - for (const p of edge) { - if (visible(p)) { - run.push(map(p)); - } else if (run.length) { - edgeRuns.push(run); - run = []; - } - } - edgeRuns.push(run); - for (const r of edgeRuns) { - polyline(ctx, r, colors.accent, 1.4); - } - if (gaze && visible(gaze)) { - const g = map(gaze); - ctx.beginPath(); - ctx.arc(g[0], g[1], 4.5, 0, TAU); - ctx.fillStyle = colors.surface; - ctx.fill(); - ctx.strokeStyle = colors.accent; - ctx.lineWidth = 2; - ctx.stroke(); - } - ctx.restore(); - }; - - const sync = () => { - const a = Math.pow(10, state.logA); - outputs.logA.textContent = `${formatA(a)}°`; - outputs.res.textContent = state.res; - for (const camera of cameras) { - camera.fovOutput.textContent = `${camera.fov}°`; - } - outputs.tilt.textContent = `${state.tilt}°`; - outputs.pan.textContent = `${state.pan}°`; - redraw(); - }; - for (const [name, input] of Object.entries(inputs)) { - input.addEventListener("input", () => { - state[name] = name === "style" ? input.value : Number(input.value); - sync(); - }); - } - reset.addEventListener("click", () => { - Object.assign(state, defaults); - for (const [name, input] of Object.entries(inputs)) { - input.value = state[name]; - } - for (const camera of cameras) { - Object.assign(camera.view, initialView); - camera.fov = camera.model.fov.initial; - camera.fovInput.value = camera.fov; - } - sync(); - }); - for (const camera of cameras) { - bindOrbit(camera.sphere, camera.view, redraw, initialView); - } - new ResizeObserver(() => redraw()).observe(panels); - sync(); - }; - - // -- Pooling viewer ---------------------------------------------------------------------------------------------- - - // Upright layout of a canonical warped grid (fovi's sampling_as_grid): row = res - 1 - j, column = i. - // Pooling windows follow fovi's GridPoolingLayer: stride = resolution multiple, SAME-style padding. - const poolingWindow = (lowRes, mult, side, row, col) => { - const stride = mult; - const before = Math.floor((side - stride) / 2); - const cells = []; - for (let dr = 0; dr < side; dr++) { - for (let dc = 0; dc < side; dc++) { - const r = row * stride - before + dr; - const c = col * stride - before + dc; - if (r >= 0 && r < lowRes * mult && c >= 0 && c < lowRes * mult) { - cells.push([r, c]); - } - } - } - return cells; - }; - - const initPoolingViewer = (root) => { - const FOV = Number(root.dataset.fov || 90); - const A = Number(root.dataset.cmfA || 2); - const LOW = Number(root.dataset.res || 16); - const defaults = {style: "warped_cartesian_as_grid", mult: 2, side: 2, row: 8, col: 11, k: 4, space: "geodesic", unit: 120}; - const state = {...defaults}; - const inputs = { - style: select([["warped_cartesian_as_grid", "warped_cartesian_as_grid"], ["isotropic", "isotropic"]], state.style), - mult: select([["2", "2"], ["3", "3"], ["4", "4"]], String(state.mult)), - side: slider(1, 9, 1, state.side), - row: slider(0, LOW - 1, 1, state.row), - col: slider(0, LOW - 1, 1, state.col), - k: slider(1, 32, 1, state.k), - space: select([["geodesic", "geodesic (default)"], ["visual", "visual field (False)"]], state.space), - unit: slider(0, 1, 1, state.unit), - }; - const outputs = {side: readout(), row: readout(), col: readout(), k: readout(), unit: readout()}; - const controls = document.createElement("div"); - controls.className = "fovi-controls"; - const gridControls = [ - control("Window side (pool_k = side²)", inputs.side, outputs.side), - control("Pooled sample row", inputs.row, outputs.row), - control("Pooled sample column", inputs.col, outputs.col), - ]; - const isotropicControls = [ - control("pool_k (neighbours)", inputs.k, outputs.k), - control("pool_sample_cortex", inputs.space), - control("Pooled sample", inputs.unit, outputs.unit), - ]; - controls.append(control("foveated_style", inputs.style), control("pool_res_mult", inputs.mult), ...gridControls, ...isotropicControls); - const reset = document.createElement("button"); - reset.type = "button"; - reset.className = "fovi-reset"; - reset.textContent = "Reset"; - controls.append(reset); - const summary = document.createElement("p"); - summary.className = "fovi-summary"; - summary.setAttribute("aria-live", "polite"); - const panels = document.createElement("div"); - panels.className = "fovi-panels fovi-panels-three"; - const makePanel = (title, label) => { - const panel = document.createElement("figure"); - panel.className = "fovi-panel"; - const caption = document.createElement("figcaption"); - caption.textContent = title; - const canvas = document.createElement("canvas"); - canvas.className = "fovi-canvas fovi-square"; - canvas.setAttribute("aria-label", label); - panel.append(caption, canvas); - panels.append(panel); - return {panel, canvas}; - }; - const nativeView = makePanel("Published grid (click a sample)", "The pooled grid and its photoreceptor grid in the published image layout. Click a pooled sample to select it."); - const fieldView = makePanel("Visual field (click a sample)", "Photoreceptor and pooled samples by visual angle. Click a pooled sample to select it."); - const zoomView = makePanel("Around the selected sample", "The selected pooled sample's neighbourhood, enlarged."); - const legend = document.createElement("p"); - legend.className = "fovi-legend"; - legend.innerHTML = 'photoreceptor' - + 'pooled into the selected sample' - + 'pooled sample' - + `Fixed: ${FOV}° field, cmf_a_deg=${A}, foveated_res=${LOW}.`; - root.append(controls, summary, panels, legend); - - // fovi's pooling neighbourhoods for the isotropic retina, exported with the camera's own helpers. - let isotropicTables = null; - if (TABLES_URL) { - fetch(TABLES_URL) - .then((response) => (response.ok ? response.json() : Promise.reject(new Error(response.statusText)))) - .then((data) => { - if (data.fov !== FOV || data.cmfA !== A || data.res !== LOW) { - throw new Error("the exported tables describe another retina"); - } - isotropicTables = data; - if (state.style === "isotropic") { - sync(); - } - }) - .catch((error) => { - isotropicTables = {error: String(error.message || error)}; - if (state.style === "isotropic") { - sync(); - } - }); - } - - // Grid retina: samples keyed by their upright (row, column) in the published image. - const gridLayout = (res) => { - const samples = warpedGrid(FOV, A, res).map((s) => ({...s, row: res - 1 - s.j, col: s.i})); - return {samples, at: new Map(samples.map((s) => [`${s.row},${s.col}`, s]))}; - }; - const layouts = new Map(); - const layoutFor = () => { - const key = `${state.style}/${state.mult}`; - if (layouts.has(key)) { - return layouts.get(key); - } - let layout; - if (state.style === "isotropic") { - const rings = matchedIsotropicRes(FOV, A, LOW * LOW); - const highRings = Math.round(state.mult * rings); - layout = { - rings, - highRings, - low: isotropicSamples(FOV, A, rings), - high: isotropicSamples(FOV, A, highRings), - }; - } else { - layout = {low: gridLayout(LOW), high: gridLayout(LOW * state.mult)}; - } - layouts.set(key, layout); - return layout; - }; - - // The selected pooled sample, the photoreceptors it pools, and a description, for the current style. - const selection = (layout) => { - if (state.style !== "isotropic") { - const unit = layout.low.at.get(`${state.row},${state.col}`); - const cells = poolingWindow(LOW, state.mult, state.side, state.row, state.col); - const members = cells.map(([r, c]) => layout.high.at.get(`${r},${c}`)).filter((s) => s.valid); - const k = state.side * state.side; - const text = `pool_k=${k} (window side ${state.side}, stride ${state.mult}); the photoreceptor grid is ` - + `${LOW * state.mult} × ${LOW * state.mult}` - + (k < state.mult * state.mult ? "; a window smaller than the stride skips photoreceptors." : "."); - return {unit, members, valid: unit.valid && members.length > 0, text, label: `(${state.row}, ${state.col})`}; - } - const unit = layout.low[state.unit]; - const table = isotropicTable(layout); - if (!table) { - return {unit, members: [], valid: false, pending: true, text: "", label: `${state.unit}`}; - } - const members = table.slice(0, state.k).filter((index) => index >= 0).map((index) => layout.high[index]); - const text = `pool_k=${state.k} nearest photoreceptors ${state.space === "geodesic" ? "along the cortex" : "in the visual field"}; ` - + `${layout.high.length.toLocaleString("en-US")} photoreceptors on ${layout.highRings} rings pool into ${layout.low.length} samples on ${layout.rings} rings` - + ` (default pool_k ${Math.round(layout.high.length / layout.low.length)}).`; - return {unit, members, valid: members.length > 0, text, label: `${state.unit}`}; - }; - - // The selected sample's neighbours, nearest first, from fovi's table for the chosen space. - const isotropicTable = (layout) => { - const entry = isotropicTables && !isotropicTables.error && isotropicTables.mult[String(state.mult)]; - if (!entry) { - return null; - } - if (entry.count !== layout.high.length || isotropicTables.count !== layout.low.length) { - isotropicTables = {error: "the exported tables do not match this retina"}; - return null; - } - return entry[state.space].slice(state.unit * entry.kMax, (state.unit + 1) * entry.kMax); - }; - - const fieldTransform = (w, h, centre, radius) => { - const scale = (Math.min(w, h) / 2 - 8) / radius; - return (s) => [w / 2 + (s[0] - centre[0]) * scale, h / 2 - (s[1] - centre[1]) * scale]; - }; - - const redraw = () => { - const colors = palette(root); - const layout = layoutFor(); - const isotropic = state.style === "isotropic"; - const lowSamples = isotropic ? layout.low : layout.low.samples; - const highSamples = isotropic ? layout.high : layout.high.samples; - const chosen = selection(layout); - const members = new Set(chosen.members); - const {unit} = chosen; - nativeView.panel.hidden = isotropic; - // Published-grid view: photoreceptor cells, pooled cell borders, and the window. - if (!isotropic) { - const highRes = LOW * state.mult; - const {ctx, w, h} = fitCanvas(nativeView.canvas); - const size = Math.min(w, h) - 8; - const ox = (w - size) / 2; - const oy = (h - size) / 2; - const cell = size / highRes; - const windowCells = new Set(poolingWindow(LOW, state.mult, state.side, state.row, state.col).map(([r, c]) => `${r},${c}`)); - for (const s of highSamples) { - const member = windowCells.has(`${s.row},${s.col}`); - ctx.fillStyle = member ? colors.highlight : s.valid ? colors.faint : colors.surface; - ctx.globalAlpha = member && !s.valid ? 0.35 : 1; - ctx.fillRect(ox + s.col * cell + 0.5, oy + s.row * cell + 0.5, Math.max(cell - 1, 0.5), Math.max(cell - 1, 0.5)); - } - ctx.globalAlpha = 1; - for (let k = 0; k <= LOW; k++) { - polyline(ctx, [[ox + (k * size) / LOW, oy], [ox + (k * size) / LOW, oy + size]], colors.muted, 0.6); - polyline(ctx, [[ox, oy + (k * size) / LOW], [ox + size, oy + (k * size) / LOW]], colors.muted, 0.6); - } - ctx.strokeStyle = colors.accent; - ctx.lineWidth = 2.4; - ctx.strokeRect(ox + (state.col * size) / LOW, oy + (state.row * size) / LOW, size / LOW, size / LOW); - nativeView.canvas.onclick = (event) => { - const box = nativeView.canvas.getBoundingClientRect(); - const col = Math.floor(((event.clientX - box.left - ox) / size) * LOW); - const row = Math.floor(((event.clientY - box.top - oy) / size) * LOW); - if (row >= 0 && row < LOW && col >= 0 && col < LOW) { - choose({row, col}); - } - }; - } - const zoomRegion = () => { - const points = chosen.members.map((s) => s.s); - points.push(unit.s); - const xs = points.map((p) => p[0]); - const ys = points.map((p) => p[1]); - const centre = [(Math.min(...xs) + Math.max(...xs)) / 2, (Math.min(...ys) + Math.max(...ys)) / 2]; - const extent = Math.max(Math.max(...xs) - Math.min(...xs), Math.max(...ys) - Math.min(...ys), 0.002); - return [centre, extent * 1.1]; - }; - // Visual-field views: the whole retina, and the selected sample's neighbourhood. - const drawField = (canvas, centre, radius, showZoomBox) => { - const {ctx, w, h} = fitCanvas(canvas); - const map = fieldTransform(w, h, centre, radius); - const scale = (Math.min(w, h) / 2 - 8) / radius; - const dotHigh = Math.max(0.7, Math.min(3, scale * 0.004 * Math.sqrt(1024 / highSamples.length) * 6)); - const highPoints = highSamples.filter((s) => s.valid); - dots(ctx, highPoints.filter((s) => !members.has(s)).map((s) => map(s.s)), colors.muted, dotHigh, 0.55); - dots(ctx, highPoints.filter((s) => members.has(s)).map((s) => map(s.s)), colors.highlight, dotHigh * 1.4, 1); - dots(ctx, lowSamples.filter((s) => s.valid).map((s) => map(s.s)), colors.accent, dotHigh * 1.2, 0.9); - const u = map(unit.s); - ctx.beginPath(); - ctx.arc(u[0], u[1], dotHigh * 1.2 + 4, 0, TAU); - ctx.strokeStyle = colors.accent; - ctx.lineWidth = 2; - ctx.stroke(); - polyline(ctx, Array.from({length: 181}, (_, k) => map([Math.cos((k * TAU) / 180), Math.sin((k * TAU) / 180)])), colors.camera, 1.2); - if (showZoomBox) { - const [zc, zr] = zoomRegion(); - const corner = map([zc[0] - zr, zc[1] + zr]); - ctx.strokeStyle = colors.ink; - ctx.setLineDash([3, 3]); - ctx.lineWidth = 1; - ctx.strokeRect(corner[0], corner[1], 2 * zr * scale, 2 * zr * scale); - ctx.setLineDash([]); - } - return map; - }; - const map = drawField(fieldView.canvas, [0, 0], 1, true); - fieldView.canvas.onclick = (event) => { - const box = fieldView.canvas.getBoundingClientRect(); - const x = event.clientX - box.left; - const y = event.clientY - box.top; - let best = null; - lowSamples.forEach((s, index) => { - if (!s.valid) { - return; - } - const p = map(s.s); - const d = Math.hypot(p[0] - x, p[1] - y); - if (!best || d < best.d) { - best = {d, s, index}; - } - }); - if (best) { - choose(isotropic ? {unit: best.index} : {row: best.s.row, col: best.s.col}); - } - }; - const [zc, zr] = zoomRegion(); - drawField(zoomView.canvas, zc, zr, false); - const ecc = Math.hypot(unit.s[0], unit.s[1]) * (FOV / 2); - const span = chosen.members.length - ? Math.max(...chosen.members.map((s) => Math.hypot(s.s[0] - unit.s[0], s.s[1] - unit.s[1]))) * (FOV / 2) * 2 - : 0; - if (chosen.pending) { - const reason = isotropicTables && isotropicTables.error ? `could not be loaded (${isotropicTables.error})` : "are loading"; - summary.innerHTML = `fovi's pooling neighbourhoods ${reason}.`; - return; - } - summary.innerHTML = `Pooled sample ${chosen.label} at ${ecc.toFixed(2)}° eccentricity` - + (chosen.valid - ? ` averages ${chosen.members.length} photoreceptors spanning about ${span.toPrecision(2)}°. ` - : " lies outside the retina, so the camera publishes zero there. ") - + chosen.text; - }; - - const choose = (selected) => { - Object.assign(state, selected); - for (const name of Object.keys(selected)) { - inputs[name].value = state[name]; - } - sync(); - }; - - const sync = () => { - const isotropic = state.style === "isotropic"; - for (const element of gridControls) { - element.hidden = isotropic; - } - for (const element of isotropicControls) { - element.hidden = !isotropic; - } - if (isotropic) { - const layout = layoutFor(); - inputs.unit.max = layout.low.length - 1; - state.unit = Math.min(state.unit, layout.low.length - 1); - inputs.unit.value = state.unit; - inputs.k.max = 2 * state.mult * state.mult; - state.k = Math.min(state.k, Number(inputs.k.max)); - inputs.k.value = state.k; - } - outputs.side.textContent = `${state.side} (pool_k=${state.side * state.side})`; - outputs.row.textContent = state.row; - outputs.col.textContent = state.col; - outputs.k.textContent = state.k; - outputs.unit.textContent = state.unit; - redraw(); - }; - inputs.style.addEventListener("input", () => { - state.style = inputs.style.value; - sync(); - }); - inputs.space.addEventListener("input", () => { - state.space = inputs.space.value; - sync(); - }); - inputs.mult.addEventListener("input", () => { - // Keep the default neighbourhood when it was in use: pool_res_mult squared photoreceptors. - const defaultSide = state.side === state.mult; - const defaultK = state.k === state.mult * state.mult; - state.mult = Number(inputs.mult.value); - if (defaultSide) { - state.side = state.mult; - inputs.side.value = state.side; - } - if (defaultK) { - state.k = state.mult * state.mult; - } - sync(); - }); - for (const name of ["side", "row", "col", "k", "unit"]) { - inputs[name].addEventListener("input", () => { - state[name] = Number(inputs[name].value); - sync(); - }); - } - reset.addEventListener("click", () => { - Object.assign(state, defaults); - for (const [name, input] of Object.entries(inputs)) { - input.value = state[name]; - } - sync(); - }); - new ResizeObserver(() => redraw()).observe(panels); - sync(); - }; - - const initialize = () => { - document.querySelectorAll("[data-fovi-sampling-viewer]").forEach(initSamplingViewer); - document.querySelectorAll("[data-fovi-pooling-viewer]").forEach(initPoolingViewer); - }; - - // Exposed for the documentation's geometry checks. - window.FoviViewerGeometry = {warpedGrid, isotropicRings, matchedIsotropicRes, isotropicSamples, ray, gazeRotation, poolingWindow}; - - if (typeof document !== "undefined") { - if (document.readyState === "loading") { - document.addEventListener("DOMContentLoaded", initialize); - } else { - initialize(); - } - } -})(); diff --git a/docs/source/_static/overview/sensors/foveated_camera_active_gaze.jpg b/docs/source/_static/overview/sensors/foveated_camera_active_gaze.jpg deleted file mode 100644 index 40d6786c3d163c6288466ef92c1c2a22eededbca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 115472 zcmb@t1y~$SmoPd=a3{D0w_w5DJxFjTxVt+9OK>LycZcBa?yiFbcXtTn4kUT^`*!!= zXYYS+^~`j4$+0?BN4n?N{I4GX6e%%DF#s4C000I$0Kb3$VE`lqsDMBJLPA2mf`WsB zdi4ql0R|Qt4haDn2?+ra5g8Q|9T^1!6%i2~7aao&8wUpm84ZsB51RlJ8wdLt2pDK6 z)GH`>C@6Sr6hsv4|JUVLCjb=&9Q~Cm1Q-bb92E=#73^0x0RNfHSI^}BQy?K;K|#ZS zfrDDH!CuNgO`r>KFbK$BivR=&FaS6T1PX}F)gS-S4kl94Yj2ET+dq4U7}a|&1|jgL z?fViAM_uiYo=RsgMqq;n;-6}8-teS1W=IeW76kd~v11N@yI)`#D?}3K;(H~%OCvFs zX5Gs8Gk`94AaWCd&(48H@ZPeQKZ+6ePs866gvf~%p5jHCMe~@0;a+%fxr03q=7DwL zjgk3LakBI51H2%+&kE~tXDY(@^B6Gm#>Itf&)ed;bRmPE`NSn(6Ur#U=VH9vceJCTh#6M1M39rMbM4 zbtGwj>C5MKk;!?UZ)^B%aV-q~V1AA>Eoy}^ncKjW;E}t8e%>nBAxlKC1qPSaYV!~_6Sne2>LBYN%YnWx2b^w*O2JuYBI*dtYYy_ckG%r`1a_E(iT~{gv_+>QZ7e@Re#Q@xp6dF!v1yi=Z?VrxwFHVn-=W#j#@OX zT*n#z&OS}Yl~>*M4nOeKFF<^NJVtJJf>?wuf6HW1y8-3Y$hKiwih15#wBj%yPrOVE_j)^bB3C{7taxi`f(XN| zIX0Z4GkJ7hkFzGdL{%txw7G6cqfWKZ_yFq)cZnXv;R)4GNnbfXE>x~m37i`8!u8zb zqZQiGt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zLQeZwtyMW6) z+8){oqVtAT)A(bMM>j&F$5%(rLVR)fOn4b!`p2cF?7@2%f$4~v8v1@HA@q?_IEO0B ztIm0l5#;mlxPbUz@gK3&`=I{!yxmuhfA1v$!D`xku>~@zM)B{H%bwgRYn_e(c z!nt|%=$~1}j$p+apd#K}g`7abXG?r3RzdcsD4HX1-QIzkpuY-+ypV^vV1s1bA+@mC zV%?h#{A!bMTtUXW+W;49b?FO15o}oZIw-8fDXP*L>~mBO{8jynJB1y3s!^{6E+4{o zgm@}>s=I#%r*cu=JcVZl)E8g4AX);ZGDu3|2Uj>7SPa!@0;${bT#D7V%y-R}lU;`U z<<?!ZH-PXW@Y!)HGFiyC>fK8p zJ#Feaj$bHOW(Gr?HX=y4G58&+ju_q~^yPuwe+k|P0Dv$`fiKn)f01o?JzJD)XiELk zx(bLel;5(T>I$m`oG5svL@WI2dsBBG2=uU9Q)L9j2?;QDKy@SDdPSdOY~#Ch)NrGg zn-fU>NQwK4sTmUEDbH_WUbu90mhPNI_N8<1wb~o%r&gfi8}(358Vt<`v>yu>3DlO{ zO;v(LAd|zX3+eaE%|6ldsKt~l<95D);U6W+M3!>op*9mz*svouP!+~B!g@9NgH59R z^3B7Le=^-Z705s1rV7GO`Bb!|Tnv2?am_}F9~*mce>Gypx(Q=%rgdGXw*Kn_8xtmT zf$?@ee_ZwWCWisbyP`ZLys%+0Y0H2o72M<;bXPOq@BD9oO5r{lo%u$+^E-FtB)F>1{C{6^;T^q z!iU+sHQyIRj_kk#`Rx=A9drP~WJCKR-{2(@~$-eN}KSFpI_J!bhq#JQU*G;i8 z(FQjUjOfcg8u?hC|D^=jHj49T$(n!tnYU!CPt5_GidLIfviVy<`p9)vxQc68tfL|? l)5ELR)Zb4(bW8mFZ|9`{>FX}2HxBB5!{I@vix2-j_aAAP$(H~C diff --git a/docs/source/_static/overview/sensors/foveated_camera_pooling.jpg b/docs/source/_static/overview/sensors/foveated_camera_pooling.jpg deleted file mode 100644 index d5c0ac8ef1bd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)IMmPOnEaM-jng^(9w&O=g8c|pi$=lJ!wSdDH;<~r2NKh`GRaoC3r z|Ey;5t%=)c9ywpm-Lx^1hjP;_fo}&JkeP+6rJ%4SOhn$-ry-GNsXxnY z*PbJ2#pl%+Su49kd&Q(So&FN5hal|B3D#?=S7lYiZ(;MmlU+`kuM+?JG)Mu;Ibc14?$1&NB|7tZ5C_ch*wrBa7^^4-N}HWB1b+?l_)++A0Uv@=PcThP3kf|b-P zKcB>2{2YItx>pth>9g^kzGQb*lS@_pF;o-VQ@DBt#qttxZ?QWCZ_8v!8WkA4ynw`b ze24_ep2C`$B?Pi3Ig`Fknyf~eX_1bn@7C@ib13Zaj|EBLluZ1^Y!dD;Vy%~9VF>Ul z-Al}2@7p-sYaqfiQP29_zh1M8PkD*F9!@fOZqg3niUgz`BV8l!-L&m^`(I zYJJQ8g24k)QkA{OYMN)rr+_)-c5io({2_q>46+|R{nT2`>8V%IfZX1 z07XwxB0GoS*!|wNn!g1eN>8ZJ2+)IAXUt&g0~~^>Dwy%OR}dvdj0-$iRVs9VFkXDF zJWq>PfSEYBB|oh5pFOn&FwEOLpyEe1DAUpij< zMYFL*BzYMqWiPF;^L&{zGgWPElWfvgB1^VO6D|i - -``foveated_style="isotropic"`` instead places rings of samples evenly in :math:`w`, with as many samples around each -ring as keep neighbours about equally far apart in every direction, as in the -`fovi `__ model. The camera uses as many rings as keep the sample count at most -:math:`N^2`, and publishes the samples as a set, of shape ``(num_envs, num_samples, 1, channels)``; -:attr:`~sensors.FoveatedCameraCfg.isotropic_plotting_type` picks the cortical layout fovi gives them (``"v1like"``, -``"schwartz"`` or ``"warp"``). Sample sets render directly on Newton and are experimental on the RTX renderers, where -crowded samples can share a lens-texture texel. - Configure a foveated camera --------------------------- @@ -133,7 +115,7 @@ samples. foveated_res=64, ) -The camera computes its image size from the retina. With the default grid style it publishes an upright image of +The camera computes its image size from the retina. It publishes an upright image of shape ``(num_envs, foveated_res, foveated_res, channels)`` in :attr:`~isaaclab.sensors.Camera.data`, like any camera, and any output the renderer supports. @@ -183,9 +165,8 @@ at the fixation; the default, 0.591, is an estimate from human data. Neighbourin \Delta r \approx \frac{2}{N} \log\left(1 + \frac{r_{\max}}{a}\right) (r + a) apart at eccentricity :math:`r`. For the demo's 128 × 128 retina over a 90° field, that is 0.04° at the fixation -and 3.1° at the edge, where a uniform 128 × 128 image spaces its pixels 0.7° apart. A value of :math:`a` much larger -than the field of view samples nearly uniformly, which gives a matched non-foveated baseline with the same -resolution, field of view and gaze: +and 3.1° at the edge, compared with a uniform radial angular step of about 0.7°. A value of :math:`a` much larger +than the field of view gives nearly uniform radial angular spacing on the same lattice: .. code-block:: bash @@ -226,82 +207,12 @@ samples, so a policy meant for hardware should train with the mask. lies outside the image. Middle: without the mask, rays render beyond the camera's view. Right: with the mask, those samples are zero. -Pooling -------- - -A single ray per sample aliases where samples are sparse, in the periphery. With -:attr:`~sensors.FoveatedCameraCfg.pool_enabled`, the camera renders a denser photoreceptor grid with the same field -of view and CMF and pools it to the retina, as a retina's ganglion cells pool its photoreceptors. -``pool_res_mult`` sets how much denser the photoreceptor grid is: an integer for grid styles, and any value for -sample-set styles, where :math:`\sqrt{2}` doubles the number of samples. ``pool_mode`` sets how it pools: ``avg``, -``gaussian`` (with ``pool_gauss_sigma``) or ``max``, and for sample-set styles also ``sum``. - -.. figure:: ../../_static/overview/sensors/foveated_camera_pooling.jpg - :target: ../../_static/overview/sensors/foveated_camera_pooling.jpg - :align: center - :figwidth: 100% - :alt: A 32 x 32 retina without pooling and with 2x and 4x photoreceptor pooling, beside a 128 x 128 retina. - - A 32 × 32 retina in the demo scene. Pooling averages 4 or 16 photoreceptors into each sample, which smooths the - edges of the cubes and spheres while the published image keeps its size. - -Grid styles pool each sample over a square window of the photoreceptor grid, ``pool_k`` photoreceptors in all (the -window side squared; by default ``pool_res_mult`` squared), stepping by ``pool_res_mult``. Because the grid follows -the CMF, a window covers a tiny patch of the visual field at the fixation and a wide one in the periphery. -Photoreceptors outside the circular field are left out of the average. Sample-set styles such as ``isotropic`` pool -each sample over its ``pool_k`` nearest photoreceptors instead (by default the ratio of photoreceptors to samples, -about ``pool_res_mult`` squared), by distance along the cortex (``pool_sample_cortex="geodesic"``, the default), -straight-line distance on the cortex (``True``, faster to set up), or distance in the visual field (``False``). - -The viewer shows which photoreceptors each sample pools, for both styles. Its isotropic neighbourhoods are the ones -fovi computes for the camera. - -.. raw:: html - -

- -Segmentation outputs pool by modal label in their own dtype (``pool_int_mode="modal"``), -since averaging would mix labels into ones no object has. With the sensor mask, pooling leaves out the -photoreceptors the physical camera does not see, so a pooled sample at the edge of the camera's image pools only the -ones it sees, and is zero when it sees none. - -Further sampling options are passed to fovi's ``SamplingCoords``, whose -`documentation `__ describes them: ``fov_type`` and ``radius_norm`` set the -region the retina covers. - -Active gaze ------------ - -:mod:`isaaclab_fovi.mdp` holds the manager terms for a policy that moves the gaze: - -* :class:`~mdp.GazeActionCfg`: two actions that move the gaze by up to ``step_size`` field radii per step, within - ``gaze_limit`` of the optical axis. Make it the last action term. With the default ``mount="fixed"`` the teacher - aims from the camera's orientation when the action is created; ``mount="tracked"`` lets the camera ride a moving - body, such as a turning head (Newton and OVRTX). -* :func:`~mdp.gaze_state`: the gaze and its velocity. -* :class:`~mdp.gaze_teacher_labels`: a teacher's gaze action toward a point fixed to an asset, and whether that point - is a valid target. It is a training label, never a policy input. - -The ``IsaacContrib-Cartpole-Camera-Fovi`` task in :mod:`isaaclab_tasks.contrib.active_gaze` puts them together. It is -the stock Cartpole camera task with the camera foveated (a 32-sample retina), two gaze actions, and a teacher that looks -at the pole's tip. Its PPO adds a loss that pulls the gaze actions toward the teacher's, and its action head keeps -the gaze actions' noise fixed: - -.. code-block:: bash - - uv run --extra fovi isaaclab train --rl_library rsl_rl --task IsaacContrib-Cartpole-Camera-Fovi - -The task is registered when the ``fovi`` extra is installed. - -.. figure:: ../../_static/overview/sensors/foveated_camera_active_gaze.jpg - :target: ../../_static/overview/sensors/foveated_camera_active_gaze.jpg - :align: center - :figwidth: 100% - :alt: Cartpole frames with the retina following the pole tip, and the policy's 32 x 32 images. +Gaze actions +------------ - The Cartpole task with the teacher's labels as the gaze actions. Top: the scene from the task's camera, with the - retina's lattice and edge; the gaze follows the pole's tip. Bottom: the 32 × 32 image the policy receives, with - the pole large at the fixation. Black samples lie outside the camera's image. +For a manager-based environment, :class:`~mdp.GazeActionCfg` adds two bounded tilt and pan increments in units of +the retinal field radius. :func:`~mdp.gaze_state` reports the resulting angles and angular velocity. The action +resets the gaze to the optical axis at the start of each episode. Further reading --------------- diff --git a/source/isaaclab_fovi/changelog.d/isaaclab-fovi.added.rst b/source/isaaclab_fovi/changelog.d/isaaclab-fovi.added.rst index 6fe806778a44..afc646183e82 100644 --- a/source/isaaclab_fovi/changelog.d/isaaclab-fovi.added.rst +++ b/source/isaaclab_fovi/changelog.d/isaaclab-fovi.added.rst @@ -1,7 +1,4 @@ * Introduced ``isaaclab_fovi`` and the ``fovi`` installation extra, providing :class:`~isaaclab_fovi.sensors.FoveatedCamera`, a foveated camera sensor for the Newton (Warp and OptiX), Isaac RTX and OVRTX renderers whose gaze moves inside a physical camera's field of view. -* Added active-gaze manager terms in :mod:`isaaclab_fovi.mdp`: a gaze action with a fixed or tracked camera mount, - a gaze observation, and teacher gaze labels. -* Added modal-label pooling for segmentation outputs, which keeps their native dtype (``pool_int_mode="modal"``, - the only accepted value); ``pool_mode`` pools the other outputs and accepts only fovi's modes. +* Added bounded tilt and pan actions and a gaze state observation in :mod:`isaaclab_fovi.mdp`. diff --git a/source/isaaclab_fovi/isaaclab_fovi/mdp/__init__.pyi b/source/isaaclab_fovi/isaaclab_fovi/mdp/__init__.pyi index e78c9a3844e8..71c13e7dd674 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/mdp/__init__.pyi +++ b/source/isaaclab_fovi/isaaclab_fovi/mdp/__init__.pyi @@ -7,12 +7,7 @@ __all__ = [ "GazeAction", "GazeActionCfg", "gaze_state", - "gaze_teacher_labels", ] -from .gaze import ( - GazeAction, - gaze_state, - gaze_teacher_labels, -) +from .gaze import GazeAction, gaze_state from .gaze_cfg import GazeActionCfg diff --git a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py index c51f08edfbdb..cc09d371f25c 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py +++ b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py @@ -3,33 +3,20 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Active gaze for a foveated camera: a gaze action, its observation, and a teacher's gaze labels. - -Gaze angles are (tilt, pan) [deg] from the physical camera's optical axis: positive tilt looks up and positive pan -looks left, as for :meth:`~isaaclab_fovi.sensors.FoveatedCamera.set_gaze_angles`. The policy moves and observes the -gaze in field radii, half the retina's field of view. Camera-frame directions follow the ROS (OpenCV) convention: -x right, y down, z forward. -""" +"""Bounded tilt and pan actions for a foveated camera.""" from __future__ import annotations -import math from typing import TYPE_CHECKING, ClassVar import torch import warp as wp -from isaaclab.managers import ActionTerm, ManagerTermBase, ObservationTermCfg, SceneEntityCfg +from isaaclab.managers import ActionTerm from isaaclab.utils.warp import ProxyArray +from isaaclab.utils.warp.memory import resolve_1d_indices, resolve_ids -from ..sensors.gaze_kernels import ( - DEG_TO_RAD, - CameraParams, - project_direction, - project_directions, - record_launch, - warp_stream, -) +from ..sensors.gaze_kernels import record_launch, torch_stream, warp_stream if TYPE_CHECKING: from isaaclab.envs import ManagerBasedEnv @@ -37,119 +24,6 @@ from ..sensors import FoveatedCamera from .gaze_cfg import GazeActionCfg -RAD_TO_DEG = 180.0 / math.pi - - -@wp.func -def teach( - point: wp.vec3f, - position: wp.vec3f, - mount: wp.quatf, - g: wp.vec2f, - frame: wp.mat33f, - field_radius_deg: wp.float32, - step_size: wp.float32, - gaze_limit: wp.float32, - camera: CameraParams, -) -> wp.vec4f: - """The teacher's action (x, y) toward a point, 1 for a valid target or else 0, and the gaze's error [deg]. - - ``frame`` carries the upright image frame, in which gazes are measured, into the physical camera's frame. - """ - d = wp.normalize(wp.quat_rotate_inv(mount, point - position)) - # The fixation reaches the physical camera at frame * gaze * z, so the gaze looks along frame^T d. - u = wp.transpose(frame) * d - tilt = -wp.atan2(u[1], wp.sqrt(u[0] * u[0] + u[2] * u[2])) * wp.float32(RAD_TO_DEG) - pan = -wp.atan2(u[0], u[2]) * wp.float32(RAD_TO_DEG) - desired = wp.vec2f(tilt, pan) / field_radius_deg - ok = project_direction(d, camera)[2] > 0.5 and wp.length(desired) <= gaze_limit - step = wp.vec2f(0.0, 0.0) - if ok: - step = wp.vec2f( - wp.clamp((desired[0] - g[0]) / step_size, -1.0, 1.0), wp.clamp((desired[1] - g[1]) / step_size, -1.0, 1.0) - ) - g_tilt = g[0] * field_radius_deg * wp.float32(DEG_TO_RAD) - g_pan = g[1] * field_radius_deg * wp.float32(DEG_TO_RAD) - looking = wp.vec3f(-wp.cos(g_tilt) * wp.sin(g_pan), -wp.sin(g_tilt), wp.cos(g_tilt) * wp.cos(g_pan)) - # atan2 stays accurate near perfect alignment, unlike acos of the dot product. - error = wp.atan2(wp.length(wp.cross(looking, u)), wp.dot(looking, u)) * wp.float32(RAD_TO_DEG) - return wp.vec4f(step[0], step[1], wp.where(ok, 1.0, 0.0), error) - - -@wp.kernel(enable_backward=False) -def teacher_labels_kernel( - targets: wp.array(dtype=wp.vec3f), - orientations: wp.array(dtype=wp.quatf), - offset: wp.vec3f, - positions: wp.array(dtype=wp.vec3f), - mounts: wp.array(dtype=wp.quatf), - angles_deg: wp.array(dtype=wp.vec2f), - frame: wp.mat33f, - field_radius_deg: wp.float32, - step_size: wp.float32, - gaze_limit: wp.float32, - camera: CameraParams, - labels: wp.array2d(dtype=wp.float32), - log: wp.array(dtype=wp.float32), -): - """Labels (action x, action y, valid) toward the point ``offset`` fixed to each target's frame; and the mean gaze - error to valid targets [deg] with the fraction of valid targets. - - ``mounts`` holds each camera's mount (ROS convention); ``angles_deg`` the camera's stored gaze angles [deg]. - One block labels every environment and reduces the logs itself, so the launch needs no zeroed accumulators. - """ - _block, lane = wp.tid() - count = targets.shape[0] - error_sum = wp.float32(0.0) - valid_count = wp.float32(0.0) - i = lane - while i < count: - point = targets[i] + wp.quat_rotate(orientations[i], offset) - gaze = angles_deg[i] / field_radius_deg - result = teach(point, positions[i], mounts[i], gaze, frame, field_radius_deg, step_size, gaze_limit, camera) - labels[i, 0] = result[0] - labels[i, 1] = result[1] - labels[i, 2] = result[2] - if result[2] > 0.5: - error_sum += result[3] - valid_count += 1.0 - i += wp.block_dim() - errors = wp.tile_sum(wp.tile(error_sum)) - valid = wp.tile_sum(wp.tile(valid_count)) - if lane == 0: - log[0] = errors[0] / wp.max(valid[0], 1.0) - log[1] = valid[0] / wp.float32(count) - - -def teacher_block_dim(device: torch.device | str) -> int: - """Threads of the one block that runs :func:`teacher_labels_kernel`; Warp runs CPU blocks as one thread.""" - return 1024 if torch.device(device).type == "cuda" else 1 - - -@wp.kernel(enable_backward=False) -def gaze_reset_kernel( - ids: wp.array(dtype=wp.int32), - use_ids: wp.int32, - start: wp.array(dtype=wp.vec2f), - use_start: wp.int32, - field_radius_deg: wp.float32, - angles_deg: wp.array(dtype=wp.vec2f), - state: wp.array(dtype=wp.vec4f), -): - """Put each reset environment's gaze at its start, or on the optical axis, at rest. - - ``state`` holds each gaze and its velocity, in field radii and field radii per second. - """ - k = wp.tid() - i = k - if use_ids != 0: - i = ids[k] - g = wp.vec2f(0.0, 0.0) - if use_start != 0: - g = start[k] - angles_deg[i] = g * field_radius_deg - state[i] = wp.vec4f(g[0], g[1], 0.0, 0.0) - @wp.kernel(enable_backward=False) def gaze_step_kernel( @@ -183,25 +57,14 @@ def gaze_state(env: ManagerBasedEnv, action_name: str = "gaze") -> torch.Tensor: class GazeAction(ActionTerm): - """Moves a foveated camera's gaze by bounded steps in (tilt, pan) order. + """Move gaze by clipped tilt and pan increments within a disk of permitted angles. - Actions, the limit and the observed gaze are in field radii. An action of 1 changes a coordinate by - ``step_size``, and the gaze stays within ``gaze_limit`` of the optical axis. The gaze starts each episode on the - optical axis, or anywhere the physical camera sees within the limit when ``random_reset`` is set. Gazes are measured - in the upright image frame, which :attr:`~isaaclab_fovi.sensors.FoveatedCameraCfg.image_rotation_deg` rolls - against a rolled mount. - - With ``mount="fixed"`` the camera keeps the orientation it had when the term was created, and the teacher uses - that mount; turning the camera's mount afterwards raises. With ``mount="tracked"`` the camera may ride a moving - body, for example a robot's head, and the teacher reads each camera's current mount, so software gaze adds to - hardware gaze. - - The camera's stored gaze angles own the gaze: each step and the teacher start from them, so a gaze set directly - with :meth:`~isaaclab_fovi.sensors.FoveatedCamera.set_gaze_angles` carries on. :attr:`state`, the observation, is - the gaze and velocity as of the last step or reset. + Angles and increments are in units of the retina's field radius. Reset returns the gaze to the optical axis. + The camera owns the angles. The action reports the gaze and its angular velocity after the last action or reset. """ cfg: GazeActionCfg + _asset: FoveatedCamera is_graphable: ClassVar[bool] = True """The gaze moves in :meth:`process_actions`, once per environment step; :meth:`apply_actions` does nothing, so @@ -209,82 +72,31 @@ class GazeAction(ActionTerm): def __init__(self, cfg: GazeActionCfg, env: ManagerBasedEnv): super().__init__(cfg, env) - camera = self.camera - self.tracked_mount = cfg.mount == "tracked" - if self.tracked_mount and not camera.turns_pose_by_gaze: - raise ValueError( - "A tracked gaze mount needs a camera that turns its pose by the gaze every frame: Newton or OVRTX." - ) - if not self.tracked_mount and camera.cfg.prim_path.rpartition("/")[0] not in ( - "{ENV_REGEX_NS}", - env.scene.env_regex_ns, - ): - # A body's motion turns its camera without set_world_poses, which the fixed mount could not detect. - raise ValueError( - f"A fixed gaze mount needs a camera mounted on the environment, got {camera.cfg.prim_path!r};" - " use mount='tracked' for a camera on a moving body." - ) - # The camera's own geometry, so the teacher and the sensor mask share one projection. - frame = camera.image_frame - self._frame_torch = torch.tensor( - [[frame[row][col] for col in range(3)] for row in range(3)], device=self.device - ) - self.field_radius_deg = camera.sampling_coords.fov / 2 - """Half the retina's field of view [deg].""" - self._fixed_mount = None - if not self.tracked_mount: - # The fixed-mount teacher keeps the camera's mount as it is now; only later turns invalidate it. - mount = camera.ungazed_quat_w_ros() - self._fixed_mount = ProxyArray(wp.from_torch(mount.contiguous(), dtype=wp.quatf)) - self._mount_turns = camera.mount_turns + self.field_radius_deg = self._asset.sampling_coords.fov / 2 self._raw: torch.Tensor | None = None """Gaze actions of the last step, as supplied to :meth:`process_actions`.""" self._state = ProxyArray(wp.zeros(self.num_envs, dtype=wp.vec4f, device=self.device)) """Gaze and its velocity as of the last step or reset, the gaze observation.""" - self._velocity = self._state.torch[:, 2:] + self._all_ids = wp.from_torch(torch.arange(self.num_envs, dtype=torch.int32, device=self.device)) self._step_launch: tuple[tuple, wp.Launch] | None = None - # Each reset copies its environments, and their start gazes if random, into these and replays one launch. - self._reset_ids = ProxyArray(wp.zeros(self.num_envs, dtype=wp.int32, device=self.device)) - self._reset_start = ProxyArray(wp.zeros(self.num_envs, dtype=wp.vec2f, device=self.device)) - self._reset_launches: dict[tuple[bool, bool], wp.Launch] = {} @property def action_dim(self) -> int: return 2 - @property - def camera(self) -> FoveatedCamera: - """The foveated camera whose gaze the term moves.""" - return self._asset - @property def raw_actions(self) -> torch.Tensor: - return self._raw if self._raw is not None else torch.zeros_like(self._velocity) + return self._raw if self._raw is not None else torch.zeros_like(self._state.torch[:, :2]) @property def processed_actions(self) -> torch.Tensor: - return self.gaze - - @property - def gaze(self) -> torch.Tensor: - """Current gaze in field radii, from the camera's stored angles, shape (num_envs, 2).""" - return self.angles_deg / self.field_radius_deg - - @property - def velocity(self) -> torch.Tensor: - """Gaze velocity in field radii per second, shape (num_envs, 2).""" - return self._velocity + return self._asset.gaze_angles.torch / self.field_radius_deg @property def state(self) -> torch.Tensor: """Gaze and its velocity, in field radii and field radii per second, shape (num_envs, 4).""" return self._state.torch - @property - def angles_deg(self) -> torch.Tensor: - """Current gaze angles [deg], the camera's stored ones, shape (num_envs, 2).""" - return self.camera.gaze_angles.torch - def process_actions(self, actions: torch.Tensor): """Move the gaze by the supplied actions, shape (num_envs, 2). @@ -301,7 +113,7 @@ def process_actions(self, actions: torch.Tensor): [ wp.from_torch(actions, dtype=wp.vec2f), self._state, - self.camera.gaze_angles, + self._asset.gaze_angles, self.cfg.step_size, self.cfg.gaze_limit, self._env.step_dt, @@ -312,160 +124,20 @@ def process_actions(self, actions: torch.Tensor): self._step_launch = (key, launch) self._raw = actions self._step_launch[1].launch(warp_stream(self.device)) - self.camera.set_gaze_angles(self.camera.gaze_angles.torch) + self._asset.set_gaze_angles(self._asset.gaze_angles.torch) def apply_actions(self): pass def reset(self, env_ids=None): - # The action manager zeroes the reset environments' actions itself. - indexed = env_ids is not None - count = self.num_envs - if indexed: - if isinstance(env_ids, slice): - env_ids = torch.arange(*env_ids.indices(self.num_envs), device=self.device) - count = len(env_ids) - if count == 0: - return - self._reset_ids.torch[:count] = torch.as_tensor(env_ids, device=self.device) - random_start = self.cfg.random_reset - if random_start: - gaze = _random_gaze(count, self.cfg.gaze_limit, self.device) - visible = self.visible(_angles_to_direction(gaze * self.field_radius_deg)) - self._reset_start.torch[:count] = torch.where(visible[:, None], gaze, 0.0) - angles = self.camera.gaze_angles - launch = self._reset_launches.get((indexed, random_start)) - if launch is None: - launch = self._reset_launches[(indexed, random_start)] = record_launch( - gaze_reset_kernel, - self.num_envs, - [self._reset_ids, int(indexed), self._reset_start, int(random_start), self.field_radius_deg], - [angles, self._state], - self.device, - ) - launch.set_dim(count) - launch.launch(warp_stream(self.device)) - # The camera keeps reading the same buffer, which every other environment already holds. - self.camera.set_gaze_angles(angles.torch) - - def visible(self, direction: torch.Tensor) -> torch.Tensor: - """Whether directions in the upright gaze frame fall inside the physical camera's image.""" - return project_directions(direction @ self._frame_torch.T, self.camera.projection_params)[1] - - def teacher_mounts(self) -> ProxyArray: - """Each camera's mount (x, y, z, w), ROS convention, that the teacher aims from: the current one when - tracked, else the one captured when the term was created. - - Raises: - RuntimeError: The camera's mount turned while the gaze assumes a fixed mount. - """ - if self.tracked_mount: - return self.camera.mount_quat_w_ros - if self.camera.mount_turns != self._mount_turns: - raise RuntimeError( - "The gaze camera's mount turned, so the fixed-mount teacher would aim from its first orientation;" - " use GazeActionCfg.mount='tracked'." - ) - return self._fixed_mount - - -class gaze_teacher_labels(ManagerTermBase): - """The teacher's gaze action toward a point fixed to an asset, and its validity, shape (num_envs, 3). - - A training label, never a policy input. One launch labels every environment and logs the mean gaze error to valid - targets and the fraction of valid targets. - - Args: - target_cfg: The asset, and optionally one body by ``body_names``. - offset: The point in the root's or the body's frame [m]. - action_name: The gaze action term. - """ - - def __init__(self, cfg: ObservationTermCfg, env: ManagerBasedEnv): - super().__init__(cfg, env) - self._gaze: GazeAction = env.action_manager.get_term(cfg.params.get("action_name", "gaze")) - self._labels = ProxyArray(wp.zeros((env.num_envs, 3), dtype=wp.float32, device=env.device)) - self._log = ProxyArray(wp.zeros(2, dtype=wp.float32, device=env.device)) - """Mean gaze error to valid targets [deg] and the fraction of valid targets.""" - self._offset: tuple[tuple[float, ...], wp.vec3f] | None = None - self._sources = None - self._targets = self._orientations = None - self._launch: tuple[tuple, wp.Launch] | None = None - - def __call__( - self, - env: ManagerBasedEnv, - target_cfg: SceneEntityCfg, - offset: tuple[float, float, float] = (0.0, 0.0, 0.0), - action_name: str = "gaze", - ) -> torch.Tensor: - data = env.scene[target_cfg.name].data - # Reading the properties refreshes the asset's pose buffers; their Warp views are wrapped once. - if target_cfg.body_names is None: - positions, orientations = data.root_pos_w, data.root_quat_w - else: - positions, orientations = data.body_pos_w, data.body_quat_w - if self._sources != (id(positions), id(orientations)): - self._sources = (id(positions), id(orientations)) - if target_cfg.body_names is None: - self._targets, self._orientations = positions.warp, orientations.warp + """Return the selected cameras to the optical axis, at rest.""" + angles = self._asset.gaze_angles + with torch_stream(self.device): + if env_ids is None: + angles.warp.zero_() + self._state.warp.zero_() else: - body = target_cfg.body_ids[0] - self._targets = wp.from_torch(positions.torch[:, body], dtype=wp.vec3f) - self._orientations = wp.from_torch(orientations.torch[:, body], dtype=wp.quatf) - point = tuple(float(value) for value in offset) - if self._offset is None or self._offset[0] != point: - self._offset = (point, wp.vec3f(*point)) - gaze = self._gaze - mounts = gaze.teacher_mounts() - camera_positions = gaze.camera.data.pos_w.warp - # The launch is recorded once and recorded again only when one of its arrays or the point changes. - sources = (self._targets, self._orientations, camera_positions, mounts, self._offset[1]) - if self._launch is None or any(a is not b for a, b in zip(self._launch[0], sources)): - block = teacher_block_dim(env.device) - launch = record_launch( - teacher_labels_kernel, - (1, block), - [ - self._targets, - self._orientations, - self._offset[1], - camera_positions, - mounts, - gaze.camera.gaze_angles, - gaze.camera.image_frame, - gaze.field_radius_deg, - gaze.cfg.step_size, - gaze.cfg.gaze_limit, - gaze.camera.projection_params, - ], - [self._labels, self._log], - env.device, - block_dim=block, - ) - self._launch = (sources, launch) - self._launch[1].launch(warp_stream(env.device)) - _log_teacher(env, self._log.torch) - return self._labels.torch - - -def _log_teacher(env: ManagerBasedEnv, values: torch.Tensor) -> None: - """Log the mean gaze error to valid targets and the fraction of valid targets.""" - # Loggers keep each step's entries, so they get a copy rather than the buffer the next step overwrites. - error, fraction = values.clone() - log = env.extras.setdefault("log", {}) - log["Gaze/target_error_deg"] = error - log["Gaze/valid_target_fraction"] = fraction - - -def _angles_to_direction(angles_deg: torch.Tensor) -> torch.Tensor: - """Camera-frame unit directions of gaze angles [deg], shape (..., 2) to (..., 3).""" - tilt, pan = angles_deg.deg2rad().unbind(-1) - return torch.stack((-tilt.cos() * pan.sin(), -tilt.sin(), tilt.cos() * pan.cos()), -1) - - -def _random_gaze(count: int, limit: float, device: torch.device | str | None = None) -> torch.Tensor: - """Gazes drawn uniformly over the disc of radius ``limit``, shape (count, 2).""" - radius = limit * torch.rand(count, device=device).sqrt() - angle = 2 * math.pi * torch.rand(count, device=device) - return torch.stack((radius * angle.sin(), radius * angle.cos()), dim=-1) + indices = resolve_1d_indices(resolve_ids(ids=env_ids, all_ids=self._all_ids)) + wp.indexedarray(angles.warp, indices).zero_() + wp.indexedarray(self._state.warp, indices).zero_() + self._asset.set_gaze_angles(angles.torch) diff --git a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py index 0318605a11fc..c038da8533e9 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py +++ b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py @@ -28,21 +28,11 @@ class GazeActionCfg(ActionTermCfg): step_size: float = 0.1 """Change of each gaze coordinate per step at an action of 1, in field radii. Positive and finite.""" gaze_limit: float = 1.0 - """Largest distance of the gaze from the camera's optical axis, in field radii. Positive and finite.""" - random_reset: bool = False - """Start episodes at a random gaze the camera sees; otherwise on the optical axis.""" - mount: str = "fixed" - """Teacher's mount: ``"fixed"`` at the action's creation, or ``"tracked"`` on a moving body (Newton, OVRTX).""" + """Radius of the allowed tilt/pan disk, in field radii. Positive and finite.""" def validate_config(self): - """Reject gaze bounds that would divide by zero and unknown mounts.""" - if not _positive_finite(self.step_size): + """Reject gaze bounds that would divide by zero.""" + if not math.isfinite(self.step_size) or self.step_size <= 0: raise ValueError(f"GazeActionCfg.step_size must be positive and finite, got {self.step_size!r}.") - if not _positive_finite(self.gaze_limit): + if not math.isfinite(self.gaze_limit) or self.gaze_limit <= 0: raise ValueError(f"GazeActionCfg.gaze_limit must be positive and finite, got {self.gaze_limit!r}.") - if self.mount not in ("fixed", "tracked"): - raise ValueError(f"GazeActionCfg.mount must be 'fixed' or 'tracked', got {self.mount!r}.") - - -def _positive_finite(value) -> bool: - return isinstance(value, (int, float)) and math.isfinite(value) and value > 0 diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py index d499139eec0c..c2f417286094 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py @@ -8,13 +8,13 @@ from __future__ import annotations import math -from typing import Protocol -import torch -from fovi.sensing.projection import CameraCalibration, CameraModel, angular_directions +from fovi.sensing.projection import CameraCalibration, CameraModel from isaaclab.sim import PinholeCameraCfg +from .foveated_camera_cfg import FoveatedCameraCfg + IDEAL_IMAGE_WIDTH = 1024 """Pixel width [px] of the image assigned to a camera derived from ideal spawn optics. @@ -79,7 +79,7 @@ def camera_model_from_spawn(spawn: PinholeCameraCfg) -> CameraCalibration: ) -def resolve_camera_model(cfg: SamplingGeometryConfig) -> CameraModel: +def resolve_camera_model(cfg: FoveatedCameraCfg) -> CameraModel: """Return the physical camera the retina looks through. This is ``cfg.camera_model`` when set, otherwise the camera that ``cfg.spawn`` @@ -93,41 +93,3 @@ def resolve_camera_model(cfg: SamplingGeometryConfig) -> CameraModel: if cfg.spawn is None: raise ValueError("A foveated camera on an existing prim needs camera_model.") return CameraModel(**camera_model_from_spawn(cfg.spawn)) - - -def sampling_geometry(cfg: SamplingGeometryConfig) -> tuple[float, float]: - """Return the retinal field of view and the CMF constant, both in degrees. - - The field of view is the angular span of the retinal window in the physical - camera. Both values are in the units :class:`fovi.sensing.coords.SamplingCoords` takes. - """ - fov = resolve_camera_model(cfg).field_of_view(cfg.retinal_window_reference_side, cfg.retinal_window_fraction) - return fov, cfg.cmf_a_deg - - -def retinal_directions(cartesian: torch.Tensor, fov_deg: float, image_rotation_deg: float = 0.0) -> torch.Tensor: - """Return OpenGL-frame angular rays, including the sensor mount roll.""" - rays = angular_directions(cartesian, fov_deg) - rays = rays * rays.new_tensor((1, -1, -1)) - angle = rays.new_tensor(image_rotation_deg * torch.pi / 180) - x, y, z = rays.unbind(-1) - return torch.stack((angle.cos() * x - angle.sin() * y, angle.sin() * x + angle.cos() * y, z), -1) - - -def compose_rotations(left: torch.Tensor, right: torch.Tensor) -> torch.Tensor: - """Compose small rotation matrices without TF32 tensor-core rounding. - - Camera transforms need orthonormal rotations even when the surrounding - training process enables reduced-precision matrix multiplication. - """ - return (left[..., :, :, None] * right[..., None, :, :]).sum(dim=-2) - - -class SamplingGeometryConfig(Protocol): - """The configuration fields that place the retina in the physical camera.""" - - camera_model: CameraCalibration | None - cmf_a_deg: float - retinal_window_reference_side: str - retinal_window_fraction: float - spawn: PinholeCameraCfg | None diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py index 28af5b3b8ad7..1f95dc30d24c 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py @@ -14,13 +14,15 @@ import torch import warp as wp +from fovi.sensing.coords import SamplingCoords from fovi.sensing.projection import CameraModel from isaaclab.sensors.camera.camera import Camera -from isaaclab.utils.math import convert_camera_frame_orientation_convention, quat_error_magnitude +from isaaclab.utils import clone +from isaaclab.utils.math import convert_camera_frame_orientation_convention from isaaclab.utils.warp import ProxyArray -from .calibrated_geometry import resolve_camera_model, retinal_directions +from .calibrated_geometry import resolve_camera_model from .gaze_kernels import ( CameraParams, apply_gaze_indexed_kernel, @@ -28,24 +30,14 @@ camera_params, publish_grid_kernel, record_launch, - sensor_visibility_kernel, set_gaze_kernel, warp_stream, ) -from .native_grid import GRID_STYLE, buffer_tensor, native_grid_directions -from .pooling import ( - is_segmentation_output, - pool_hwc_buffer, - pool_segmentation_buffer, - segmentation_neighbor_indices, -) +from .native_grid import native_grid_directions if TYPE_CHECKING: from .foveated_camera_cfg import FoveatedCameraCfg -MOUNT_TURN_TOLERANCE_RAD = 1e-5 -"""Smallest change of a camera's mount orientation [rad] that counts as a turn; smaller ones are float rounding.""" - OPENGL_TO_ROS_AXES = (1.0, -1.0, -1.0) """Axis signs between OpenGL camera-frame directions (x right, y up, -z forward) and ROS ones (x right, y down).""" @@ -105,67 +97,40 @@ def __init__(self, cfg: FoveatedCameraCfg): """ self._gaze_pose_reads_angles = self._pose_update_turns_gaze(cfg) """Whether the camera turns its pose by the stored gaze in each pose update, rather than writing prim poses - when the gaze is set; see :attr:`turns_pose_by_gaze`.""" + when the gaze is set.""" if self._gaze_pose_reads_angles and not cfg.update_latest_camera_pose: raise ValueError( "Newton and OVRTX turn the rendered pose by the gaze in each pose update; set" " update_latest_camera_pose=True so the renderer sees the gaze." ) # The parent's initialisation updates poses before the gaze exists. - self._gaze_written = False self._gaze_angles: ProxyArray | None = None self._gaze_rotation: ProxyArray | None = None - self._visibility = None - self._grid_publish = None - self._published_shape: tuple[int, int] | None = None - self._segmentation_neighbors: torch.Tensor | None = None - self._sensor_fov_valid: torch.Tensor | None = None - self.mount_turns = 0 - """How many times :meth:`set_world_poses` or :meth:`set_world_poses_from_view` has turned the camera's mount.""" + cfg = clone(cfg) + cfg.width = cfg.height = cfg.foveated_res + self._camera_model = resolve_camera_model(cfg) + fov = self._camera_model.field_of_view(cfg.retinal_window_reference_side, cfg.retinal_window_fraction) + self._sampling_coords = SamplingCoords( + fov=fov, + cmf_a=cfg.cmf_a_deg, + res=cfg.foveated_res, + style="warped_cartesian_as_grid", + field_geometry="spherical", + device="cpu", + ) + self._retinal_rays = native_grid_directions(self._sampling_coords, image_rotation_deg=cfg.image_rotation_deg) super().__init__(cfg) @property - def image_shape(self) -> tuple[int, int]: - """(height, width) of the published outputs: the retina's grid, or (num_samples, 1) for sample sets.""" - return self._published_shape if self._published_shape is not None else super().image_shape - - @property - def sampling_coords(self): + def sampling_coords(self) -> SamplingCoords: """The :class:`SamplingCoords` of the published samples.""" return self._sampling_coords - @property - def num_valid_samples(self) -> int: - """Number of published foveated samples.""" - return self._num_valid_samples - - @property - def sensor_fov_valid_fraction(self) -> torch.Tensor | None: - """Per-environment fraction of samples inside the physical camera, or None before the first masked frame.""" - return None if self._sensor_fov_valid is None else self._sensor_fov_valid.float().mean(dim=1) - @property def camera_model(self) -> CameraModel: """The physical camera the retina looks through, as resolved at initialization.""" return self._camera_model - @property - def projection_params(self) -> CameraParams: - """:attr:`camera_model` as a Warp struct, for kernels that project camera-frame directions.""" - return self._gaze_camera - - @property - def image_frame(self) -> wp.mat33f: - """Rotation from the upright image frame, in which gazes are measured, to the physical camera's frame (ROS - convention); it undoes ``cfg.image_rotation_deg``.""" - return self._mask_frame - - @property - def turns_pose_by_gaze(self) -> bool: - """Whether each pose update turns the rendered pose by the stored gaze (Newton and OVRTX). A writer of - :attr:`gaze_angles` then needs no other launch.""" - return self._gaze_pose_reads_angles - @property def gaze_angles(self) -> ProxyArray: """The camera's stored gaze angles [deg], shape (num_envs,) of ``vec2f`` (Torch view (num_envs, 2)). @@ -177,20 +142,6 @@ def gaze_angles(self) -> ProxyArray: self._allocate_gaze() return self._gaze_angles - @property - def mount_quat_w_ros(self) -> ProxyArray: - """World orientation (x, y, z, w) of the physical camera before the gaze turns it, ROS convention, shape - (num_envs,) of ``quatf``. - - Refreshed by each pose update that turns the gaze, so it follows a mount that moves, for example a camera on - a robot's head. Only cameras whose pose update turns the gaze (Newton and OVRTX) record it. - """ - if not self._gaze_pose_reads_angles: - raise RuntimeError("Only cameras whose pose update turns the gaze (Newton, OVRTX) record their mount.") - if self._gaze_angles is None: - self._allocate_gaze() - return self._mount_quat_ros - def set_gaze_angles(self, angles_deg: torch.Tensor) -> None: """Turn the retina to (tilt, pan) [deg] from the physical camera's optical axis. @@ -204,7 +155,7 @@ def set_gaze_angles(self, angles_deg: torch.Tensor) -> None: ValueError: The angles do not hold one row per camera. """ stored = self._gaze_angles is not None and angles_deg is self._gaze_angles.torch - if stored and self.turns_pose_by_gaze: + if stored and self._gaze_pose_reads_angles: # The next pose update reads the stored angles; nothing has to happen now. return count = self._view.count @@ -224,43 +175,6 @@ def set_gaze_angles(self, angles_deg: torch.Tensor) -> None: gaze.device, ) self._set_gaze_launch.launch(warp_stream(gaze.device)) - self._gaze_written = True - - def ungazed_quat_w_ros(self) -> torch.Tensor: - """World orientation (x, y, z, w) of the physical camera now, before the gaze turns it, ROS convention, shape - (num_envs, 4).""" - if self._gaze_pose_reads_angles and self._gaze_angles is not None: - # The record starts at the pose before any gaze and follows each pose update. - return self._mount_quat_ros.torch.clone() - if self._gaze_written: - # The prims hold the gaze (Isaac RTX); get_world_poses reports the mount without it. - return self.get_world_poses(convention="ros")[1] - return self._data.quat_w_ros.torch.clone() - - def set_world_poses(self, positions=None, orientations=None, env_ids=None, convention="ros"): - """Move the camera's mount; the gaze stays relative to the new mount. - - Args are those of :meth:`isaaclab.sensors.Camera.set_world_poses`. - """ - if orientations is None: - # A position-only move keeps every mount's orientation. - super().set_world_poses(positions, orientations, env_ids, convention) - return - before = self._mount_orientations(env_ids) - super().set_world_poses(positions, orientations, env_ids, convention) - self._mount_written(env_ids) - self._count_mount_turn(before, env_ids) - - def set_world_poses_from_view(self, eyes, targets, env_ids=None): - """Point the camera's mount from ``eyes`` at ``targets``; the gaze stays relative to the new mount. - - Args are those of :meth:`isaaclab.sensors.Camera.set_world_poses_from_view`. - """ - before = self._mount_orientations(env_ids) - super().set_world_poses_from_view(eyes, targets, env_ids) - # Rows whose eye equals their target are skipped by the base method and keep their poses. - self._mount_written(self._env_indices(env_ids)[self._turned_by_view(eyes, targets)]) - self._count_mount_turn(before, env_ids) def set_intrinsic_matrices(self, matrices, focal_length=None, env_ids=None): """Keep the camera as configured and warn the caller. @@ -281,52 +195,35 @@ def set_intrinsic_matrices(self, matrices, focal_length=None, env_ids=None): ) def _initialize_gaze(self) -> None: - """Prepare the gaze geometry: the rendered rays in the physical camera's frame and the pose conversions.""" - self._camera_model = resolve_camera_model(self.cfg) - self._gaze_camera = camera_params(self._camera_model) - coords = self._sampling_coords_highres or self._sampling_coords - rotation_deg = self.cfg.image_rotation_deg - # The rays as rendered, mount roll included, in the ROS frame the camera model projects. - if coords.style == GRID_STYLE: - rays = native_grid_directions(coords, image_rotation_deg=rotation_deg) - else: - rays = retinal_directions(coords.cartesian, coords.fov, rotation_deg) - self._gaze_rays = (rays * rays.new_tensor(OPENGL_TO_ROS_AXES)).float().contiguous() - # No gaze until one is set: the camera looks along its optical axis untouched. + """Move the canonical rays to the sensor device and prepare camera-frame conversions.""" + self._sampling_coords = self._sampling_coords.to(device=self._device) + self._retinal_rays = self._retinal_rays.to(device=self._device) self._gaze_angles = None self._gaze_rotation = None - self._visibility = None - device = self._gaze_rays.device - self._gaze_identity = torch.eye(3, device=device) + rotation_deg = self.cfg.image_rotation_deg angle = math.radians(rotation_deg) c, s = math.cos(angle), math.sin(angle) # Gaze is defined in the upright image frame; the basis carries it into the rolled OpenGL camera frame. - self._gaze_basis = self._gaze_rays.new_tensor(((c, s, 0), (s, -c, 0), (0, 0, -1))) + self._gaze_basis = self._retinal_rays.new_tensor(((c, s, 0), (s, -c, 0), (0, 0, -1))) # The same roll in the ROS frame: a rendered ray r reaches the physical camera at K gaze K^T r. self._mask_frame = wp.mat33f(c, s, 0.0, -s, c, 0.0, 0.0, 0.0, 1.0) # Fixed right-multiplied frame changes, on the CPU in float64, where no reduced-precision matmul applies. identity = torch.tensor([[0.0, 0.0, 0.0, 1.0]], dtype=torch.float64) to_opengl = convert_camera_frame_orientation_convention(identity, origin="world", target="opengl")[0].tolist() to_world = convert_camera_frame_orientation_convention(identity, origin="opengl", target="world")[0].tolist() - to_ros = convert_camera_frame_orientation_convention(identity, origin="world", target="ros")[0].tolist() self._gaze_frames = ( wp.mat33f(*self._gaze_basis.flatten().tolist()), wp.quatf(*to_opengl), wp.quatf(*to_world), - wp.quatf(*to_ros), ) def _allocate_gaze(self) -> None: - """Allocate one stored gaze per camera, on the optical axis, its rotation and the mount, on the sensor - device.""" + """Allocate one stored gaze per camera, on the optical axis, and its rotation on the sensor device.""" count, device = self._view.count, str(self._device) self._gaze_angles = ProxyArray(wp.zeros(count, dtype=wp.vec2f, device=device)) self._gaze_rotation = ProxyArray( wp.from_torch(torch.eye(3, device=device).repeat(count, 1, 1), dtype=wp.mat33f) ) - # No gaze has turned the pose yet, so the current orientation is the mount. - mount = self._data.quat_w_ros.torch.clone() - self._mount_quat_ros = ProxyArray(wp.from_torch(mount, dtype=wp.quatf)) self._gaze_angles_key = None self._gaze_pose_launches: dict[str, tuple[wp.Launch, tuple]] = {} self._gaze_no_mask = wp.zeros(1, dtype=wp.bool, device=device) @@ -349,13 +246,13 @@ def _update_camera_state( def _apply_gaze_pose( self, env_ids: Sequence[int] | wp.array | None = None, env_mask: wp.array | None = None ) -> None: - """Turn the camera's world orientation by the stored gaze, and record the gaze rotations and the mount.""" + """Turn the camera's world orientation by the stored gaze, and record the gaze rotations.""" if self._gaze_angles is None: return orientation = self._data.quat_w_world.warp device = self._gaze_angles.torch.device frames = (self._gaze_angles, *self._gaze_frames) - outputs = [orientation, self._gaze_rotation, self._mount_quat_ros] + outputs = [orientation, self._gaze_rotation] indexed = env_ids is not None and env_mask is None if indexed: # The kernel takes contiguous int32 indices; this converts sequences, slices, tensors and Warp arrays. @@ -378,191 +275,62 @@ def _apply_gaze_pose( launch.set_dim(len(env_ids)) launch.launch(warp_stream(device)) - def _mount_orientations(self, env_ids) -> torch.Tensor: - """The selected cameras' mount orientations (x, y, z, w), world convention, as :meth:`get_world_poses` reports - them.""" - return self.get_world_poses(env_ids, convention="world")[1].clone() - - def _mount_written(self, env_ids) -> None: - """Called after a pose write turned the selected cameras' mounts, before the turn is measured. Cameras that - hold the gaze in their prims write it onto the new mounts here.""" - - def _count_mount_turn(self, before: torch.Tensor, env_ids) -> None: - """Count a mount turn if any selected camera's mount now differs from ``before``. - - The teachers read the camera's live position, so only orientation changes count, and writing back the reported - poses does not. - """ - turned = quat_error_magnitude(before, self._mount_orientations(env_ids)) > MOUNT_TURN_TOLERANCE_RAD - if bool(turned.any()): - self.mount_turns += 1 - - def _env_indices(self, env_ids) -> torch.Tensor: - """The camera indices that ``env_ids`` selects, as a tensor.""" - if env_ids is None: - return torch.arange(self._view.count, device=self._device) - if isinstance(env_ids, slice): - return torch.arange(self._view.count, device=self._device)[env_ids] - if isinstance(env_ids, wp.array): - env_ids = wp.to_torch(env_ids) - return torch.as_tensor(env_ids, device=self._device, dtype=torch.long).reshape(-1) - - def _turned_by_view(self, eyes, targets) -> torch.Tensor: - """Which rows :meth:`set_world_poses_from_view` turns: the base method skips an eye equal to its target.""" - return (self._as_device_tensor(eyes, 3) - self._as_device_tensor(targets, 3)).norm(dim=-1) > 0 - - def _visibility_buffers(self) -> dict: - """The sensor mask's camera-owned buffers, allocated once: the rendered rays, an unturned rotation per camera, - each sample's visibility and, for the updated rows, which samples to hide.""" - if self._visibility is None: - count, device = self._view.count, self._gaze_rays.device - shape = (count, len(self._gaze_rays)) - self._visibility = { - "rays": wp.from_torch(self._gaze_rays, dtype=wp.vec3f), - "identity": wp.from_torch(self._gaze_identity.expand(count, -1, -1).contiguous(), dtype=wp.mat33f), - "every_env": wp.ones(count, dtype=wp.bool, device=str(device)), - "valid": ProxyArray(wp.zeros(shape, dtype=wp.bool, device=str(device))), - "hidden": ProxyArray(wp.zeros(shape, dtype=wp.bool, device=str(device))), - "launch": None, - } - return self._visibility - - def _gaze_validity(self, env_mask: wp.array | None = None) -> torch.Tensor: - """Which samples the physical camera sees at each updated environment's gaze, shape (num_envs, num_samples). - - Each rendered ray is tested by its center direction. Environments outside ``env_mask`` keep their last - visibility; None updates every one. - """ - buffers = self._visibility_buffers() - rotation = buffers["identity"] if self._gaze_rotation is None else self._gaze_rotation.warp - updated = buffers["every_env"] if env_mask is None else env_mask - cached = buffers["launch"] - if cached is None or cached[0] is not rotation or cached[1] is not updated: - launch = record_launch( - sensor_visibility_kernel, - buffers["valid"].warp.shape, - [buffers["rays"], rotation, self._mask_frame, self._gaze_camera, updated], - [buffers["valid"], buffers["hidden"]], - self._gaze_rays.device, - ) - buffers["launch"] = cached = (rotation, updated, launch) - cached[2].launch(warp_stream(self._gaze_rays.device)) - return buffers["valid"].torch - - def _apply_sensor_fov_mask(self, outputs: Mapping[str, torch.Tensor], env_mask: wp.array | None = None) -> None: - """Zero the samples outside the physical camera at the current gaze in the updated environments' (B, N, 1, C) - outputs; None updates every environment.""" - if not self.cfg.mask_to_sensor_fov: - return - tensors = {name: buffer_tensor(value) for name, value in outputs.items()} - self._sensor_fov_valid = self._gaze_validity(env_mask) - hidden = self._visibility["hidden"].torch[:, :, None, None] - for name, tensor in tensors.items(): - if name == "rgb" and "rgba" in tensors: - continue - tensor.masked_fill_(hidden, 0) - - def _prepare_segmentation_pooling(self, names) -> None: - """Take the modal-label neighbourhoods of pooled segmentation outputs among ``names`` from the main pooler.""" - self._segmentation_neighbors = None - if self._pooler is not None and any(is_segmentation_output(name) for name in names): - self._segmentation_neighbors = segmentation_neighbor_indices(self._pooler) - - def _pool_output(self, name: str, samples: torch.Tensor) -> torch.Tensor: - """Pool one output's high-resolution samples (B, N_hi, 1, C) to the retina's (B, N_lo, 1, C), in its dtype. - - Segmentation takes each sample's modal label in its native dtype; other outputs are pooled in float with - ``pool_mode``. With :attr:`~FoveatedCameraCfg.mask_to_sensor_fov`, photoreceptors outside the physical camera's - image at the current gaze are left out, so a pooled sample at the image edge is not darkened by them. - """ - visible = self._visibility["valid"].torch if self.cfg.mask_to_sensor_fov else None - if is_segmentation_output(name): - return pool_segmentation_buffer(self._segmentation_neighbors, samples, visible) - pooled = pool_hwc_buffer(self._pooler, samples.float(), visible) - if not samples.dtype.is_floating_point: - # Round to the nearest value the output can hold, e.g. 0-255 for RGB, rather than truncating. - limits = torch.iinfo(samples.dtype) - pooled = pooled.round().clamp(limits.min, limits.max) - return pooled.to(samples.dtype) - def _prepare_grid_publish(self, sources: Mapping[str, torch.Tensor]) -> None: - """Byte views of each rendered output, shape (num_envs, num_samples, channels), and of its public grid, for - :func:`publish_grid_kernel`.""" - views = [] + """Allocate upright public buffers and bind byte views of the renderer's native grid.""" + coords = self._sampling_coords + indices = torch.arange(len(coords), dtype=torch.int32, device=self._device) + self._grid_indices_wp = wp.from_torch(coords.as_grid(indices).reshape(-1).contiguous()) + self._grid_footprint_wp = wp.from_torch(coords.valid_mask.contiguous()) + # Rendered OpenGL rays become physical-camera ROS rays for the calibrated mask. + rays = self._retinal_rays * self._retinal_rays.new_tensor(OPENGL_TO_ROS_AXES) + self._grid_rays_wp = wp.from_torch(rays, dtype=wp.vec3f) + self._grid_camera = camera_params(self._camera_model) if self.cfg.mask_to_sensor_fov else CameraParams() + self._grid_identity = wp.from_torch( + torch.eye(3, device=self._device).repeat(self._view.count, 1, 1), dtype=wp.mat33f + ) + + outputs = {} + self._grid_publish = [] for name, source in sources.items(): if name == "rgb" and "rgba" in sources: continue - target = self._grid_output[name].view(source.shape[0], -1, source.shape[-1]) - views.append((wp.from_torch(source.view(torch.uint8)), wp.from_torch(target.view(torch.uint8)))) - self._grid_indices_wp = wp.from_torch(self._grid_indices.to(torch.int32).contiguous()) - self._grid_footprint_wp = wp.from_torch(self._ray_coords.valid_mask.contiguous()) - num_envs = views[0][1].shape[0] - if self.cfg.mask_to_sensor_fov: - buffers = self._visibility_buffers() - self._grid_every_env = buffers["every_env"] - self._grid_sensor = ( - buffers["rays"], - buffers["identity"], - self._mask_frame, - self._gaze_camera, - buffers["valid"].warp, - ) - else: - self._grid_every_env = wp.ones(num_envs, dtype=wp.bool, device=str(self._device)) - # Placeholders: the kernel reads none of these without the sensor mask. - self._grid_sensor = ( - wp.zeros(1, dtype=wp.vec3f, device=self._device), - wp.zeros(1, dtype=wp.mat33f, device=self._device), - wp.mat33f(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0), - CameraParams(), - wp.zeros((1, 1), dtype=wp.bool, device=self._device), + count, _, _, channels = source.shape + target = torch.zeros_like(source, memory_format=torch.contiguous_format) + self._grid_publish.append( + ( + wp.from_torch(source.view(count, -1, channels).view(torch.uint8)), + wp.from_torch(target.view(count, -1, channels).view(torch.uint8)), + ) ) - self._grid_publish = views + outputs[name] = target + if "rgb" in sources and "rgba" in sources: + outputs["rgb"] = outputs["rgba"][..., :3] + self._data._output = {name: ProxyArray(wp.from_torch(value)) for name, value in outputs.items()} self._grid_launches = None - def _publish_grid(self, env_mask: wp.array | None = None) -> None: - """Mask and lay out every output of the updated environments in one launch each; the result equals masking, - then copying to the grid. The other environments keep their last published frame; None updates every one.""" - mask = self.cfg.mask_to_sensor_fov - env_mask = self._grid_every_env if env_mask is None else env_mask - rays, identity, frame, camera, visible = self._grid_sensor - rotation = identity if not mask or self._gaze_rotation is None else self._gaze_rotation.warp + def _publish_grid(self, env_mask: wp.array) -> None: + """Mask and publish the upright grid for the updated environments.""" + rotation = self._grid_identity if self._gaze_rotation is None else self._gaze_rotation.warp cached = self._grid_launches - if cached is None or cached[0][0] is not rotation or cached[0][1] is not env_mask: + if cached is None or cached[0] is not rotation or cached[1] is not env_mask: + inputs = [ + self._grid_indices_wp, + self._grid_footprint_wp, + env_mask, + self._grid_rays_wp, + rotation, + self._mask_frame, + self._grid_camera, + int(self.cfg.mask_to_sensor_fov), + ] launches = [ - record_launch( - publish_grid_kernel, - (target.shape[0], target.shape[1]), - [ - source, - self._grid_indices_wp, - self._grid_footprint_wp, - env_mask, - rays, - rotation, - frame, - camera, - int(mask), - int(mask and index == 0), - visible, - ], - [target], - self._device, - ) - for index, (source, target) in enumerate(self._grid_publish) + record_launch(publish_grid_kernel, target.shape[:2], [source, *inputs], [target], self._device) + for source, target in self._grid_publish ] - self._grid_launches = ((rotation, env_mask), launches) + self._grid_launches = cached = (rotation, env_mask, launches) stream = warp_stream(self._device) - for launch in self._grid_launches[1]: + for launch in cached[2]: launch.launch(stream) - if mask: - self._sensor_fov_valid = self._visibility["valid"].torch - - def _set_published_shape(self, outputs: Mapping[str, torch.Tensor]) -> None: - """Report the (height, width) of the published outputs, which differ from the rendered ones.""" - tensor = next(iter(outputs.values())).torch - self._published_shape = (int(tensor.shape[1]), int(tensor.shape[2])) - self._data.image_shape = self._published_shape @staticmethod def _pose_update_turns_gaze(cfg: FoveatedCameraCfg) -> bool: diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py index c4039eabcee6..9cbdf77391ce 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py @@ -7,10 +7,8 @@ from __future__ import annotations -import math from typing import TYPE_CHECKING -from fovi.sensing.coords import RADIUS_NORMS, WARPED_CARTESIAN_STYLES from fovi.sensing.projection import CameraCalibration from isaaclab.sensors.camera.camera_cfg import CameraCfg @@ -20,23 +18,6 @@ from .foveated_camera import FoveatedCamera -POOL_MODES = ("avg", "gaussian", "max", "sum") -"""fovi pooling modes for the outputs other than segmentation.""" - -SEGMENTATION_POOL_MODES = ("modal",) -"""Pooling modes for segmentation outputs: the modal label only.""" - - -def validate_radius_norm(radius_norm: float, style: str, fov_type: str) -> None: - """Reject warped-grid radius norms that fovi cannot sample, before renderer startup.""" - if radius_norm not in RADIUS_NORMS: - raise ValueError(f"radius_norm must be one of {RADIUS_NORMS}, got {radius_norm!r}.") - if radius_norm != 2.0 and style not in WARPED_CARTESIAN_STYLES: - raise ValueError("Non-default radius_norm requires a warped_cartesian style.") - if radius_norm == math.inf and fov_type == "wang": - raise ValueError("radius_norm=inf does not support fov_type='wang'.") - - @configclass class FoveatedCameraCfg(CameraCfg): """Configuration for a foveated camera, whose retina samples densely where it looks and sparsely in the periphery. @@ -55,19 +36,7 @@ class FoveatedCameraCfg(CameraCfg): """The physical camera as ``CameraModel`` fields; None uses the camera that :attr:`spawn` creates.""" foveated_res: int = 60 - """Grid side of the retina; isotropic retinas use as many rings as keep at most its square of samples.""" - - foveated_style: str = "warped_cartesian_as_grid" - """Sampling style: the default grid publishes an upright image; sample-set styles publish a list of samples.""" - - fov_type: str = "circular" - """Region of the visual field the retina covers: ``"circular"``, ``"square"`` or ``"wang"``.""" - - radius_norm: float = 2.0 - """Norm of the warped-Cartesian sampling shells: 2.0 for circular shells, infinity for square ones.""" - - isotropic_plotting_type: str = "v1like" - """Cortical layout of an isotropic retina's samples: ``"v1like"``, ``"schwartz"`` or ``"warp"``.""" + """Side length of the published warped-Cartesian grid.""" image_rotation_deg: float = 0.0 """Counter-clockwise roll [deg] of the rays about the optical axis that undoes a rolled mount.""" @@ -81,29 +50,6 @@ class FoveatedCameraCfg(CameraCfg): retinal_window_reference_side: str = "short" """Image side defining the retinal window diameter: ``short`` or ``long``.""" - # -- Optional retinal pooling (photoreceptor -> RGC two-layer sampling) -- - - pool_enabled: bool = False - """Render a denser photoreceptor grid and pool it to the retina.""" - - pool_res_mult: float = 2 - """How many times denser the photoreceptor grid is than the retina; an integer for grid styles.""" - - pool_k: int | None = None - """Photoreceptors each sample pools: a square window's area for grid styles, else nearest neighbours.""" - - pool_mode: str = "avg" - """Pooling of non-segmentation outputs: ``"avg"``, ``"gaussian"``, ``"max"``, or ``"sum"`` for sample sets.""" - - pool_sample_cortex: bool | str = "geodesic" - """Neighbour distance for sample sets: ``"geodesic"`` on the cortex, ``True`` cortical, ``False`` visual.""" - - pool_gauss_sigma: float = 10.0 - """Gaussian sigma for ``pool_mode="gaussian"``.""" - - pool_int_mode: str = "modal" - """Pooling of segmentation outputs: ``"modal"``, each sample's most common label among its neighbours.""" - # -- RTX-specific parameters (ignored by Newton backend) ---------------- exit_texture_size: int | None = None @@ -116,17 +62,3 @@ class FoveatedCameraCfg(CameraCfg): update_latest_camera_pose: bool = True """Update the camera pose every frame. Newton and OVRTX require it: their pose update applies the gaze.""" - - def __post_init__(self): - # Resolves the default renderer and forwards deprecated renderer fields. - super().__post_init__() - validate_radius_norm(self.radius_norm, self.foveated_style, self.fov_type) - if self.pool_mode not in POOL_MODES: - raise ValueError( - f"pool_mode must be one of {POOL_MODES}, got {self.pool_mode!r}; segmentation pools with pool_int_mode." - ) - if self.pool_int_mode not in SEGMENTATION_POOL_MODES: - raise ValueError( - f"pool_int_mode must be one of {SEGMENTATION_POOL_MODES}, got {self.pool_int_mode!r}: segmentation" - " pools by modal label, since other modes would mix labels into ones no object has." - ) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py index f86bfeb479a9..5df9df3f4a22 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py @@ -3,259 +3,49 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Newton foveated camera: Newton's Warp renderer casts one ray per retinal sample.""" +"""Explicit foveated ray grids for Newton Warp and OptiX.""" from __future__ import annotations -import logging -from collections.abc import Sequence -from typing import TYPE_CHECKING - -import torch import warp as wp -from isaaclab.sensors.camera.camera import Camera -from isaaclab.utils.warp import ProxyArray - -from .foveated_camera import OPENGL_TO_ROS_AXES, FoveatedCamera -from .native_grid import ( - GRID_STYLE, - allocate_grid_outputs, - copy_grid_outputs, - copy_updated_rows, - grid_output_shape, - grid_sample_indices, - mask_grid_samples, - proxy_outputs, -) -from .pooling import build_highres_coords, build_lowres_coords, build_pooler - -if TYPE_CHECKING: - from .foveated_camera_cfg import FoveatedCameraCfg - -logger = logging.getLogger(__name__) - - -def explicit_rays(directions: torch.Tensor, height: int, width: int) -> wp.array: - """Newton's ray array, shape (height, width, 1, 2): a zero origin and a unit direction per ray, shared by every - camera. - - Args: - directions: Unit ray directions in the OpenGL camera frame, in sample order, shape (N, 3). - height: Rendered rows. - width: Rendered columns; ``height * width`` must cover the N rays. Padding repeats the last ray. - """ - if directions.ndim != 2 or directions.shape[1] != 3: - raise ValueError(f"Ray directions must have shape (N, 3), got {tuple(directions.shape)}.") - if height * width < len(directions): - raise ValueError(f"A {height}x{width} render cannot hold {len(directions)} rays.") - index = torch.arange(height * width, device=directions.device).clamp_max(len(directions) - 1) - rays = directions.new_zeros(height, width, 1, 2, 3, dtype=torch.float32) - rays[..., 1, :] = directions.float()[index].reshape(height, width, 1, 3) - # The Warp view keeps the tensor alive. - return wp.from_torch(rays, dtype=wp.vec3f) +from .foveated_camera import FoveatedCamera +from .foveated_camera_cfg import FoveatedCameraCfg class FoveatedNewtonCamera(FoveatedCamera): - """Newton camera that renders with foveated (CMF-distributed) rays. - - Instead of a uniform pixel grid, this sensor shoots *N* rays whose - directions are derived from :class:`fovi.sensing.coords.SamplingCoords` - and injected into Newton's renderer, with Warp or OptiX traversal. Vector sensors publish - ``(B, N, 1, C)``; native grid sensors publish upright ``(B, H, W, C)``. - - The samples cover the retinal window of the physical camera; the gaze turns the rendered camera pose. - """ - - cfg: FoveatedCameraCfg - - def __init__(self, cfg: FoveatedCameraCfg): - # The parent's initialisation updates poses before the rays exist. - self._foveated_rays: wp.array | None = None - super().__init__(cfg) + """Render the shared retinal grid with Newton's explicit ray buffer.""" def _initialize_impl(self): - # The pooler's KNN tensors are plain attributes that nn.Module.to() does not move, so the coordinates start on - # the CPU and the pooler is built on the sensor device after the parent initializes. - self._sampling_coords, matched_res = build_lowres_coords(self.cfg, device="cpu") - self._native_grid = self.cfg.foveated_style == GRID_STYLE - self._sampling_coords_highres = build_highres_coords(self.cfg, self._sampling_coords, matched_res) - self._num_valid_samples = len(self._sampling_coords) - self._num_ray_samples = len(self._sampling_coords_highres or self._sampling_coords) - logger.info( - "FoveatedNewtonCamera: %d samples (%d rendered), style=%s, cmf_a=%.4g deg, field of view=%.1f deg", - self._num_valid_samples, - self._num_ray_samples, - self.cfg.foveated_style, - self._sampling_coords.cmf_a, - self._sampling_coords.fov, - ) - - # The parent allocates render buffers for the rendered rays: the high-resolution ones when pooling. - ray_coords = self._sampling_coords_highres or self._sampling_coords - self.cfg.height, self.cfg.width = grid_output_shape(ray_coords) renderer = self.cfg.renderer_cfg if renderer.render_order == "tiled": - tile_width = renderer.tile_rendering_width - tile_height = renderer.tile_rendering_height + tile_width, tile_height = renderer.tile_rendering_width, renderer.tile_rendering_height if tile_width <= 0 or tile_height <= 0: raise ValueError("Newton render tile dimensions must be positive.") - if self._native_grid: - self._validate_native_render_layout(tile_width, tile_height) - else: - # Pack consecutive vector rays into complete tiles. Padding is - # private renderer storage and never enters masking or pooling. - self.cfg.width = tile_width - self.cfg.height = ( - (self._num_ray_samples + tile_width * tile_height - 1) // (tile_width * tile_height) * tile_height + if self.cfg.width % tile_width or self.cfg.height % tile_height: + raise ValueError( + f"Foveated grid {self.cfg.width}x{self.cfg.height} must be divisible by Newton tile size " + f"{tile_width}x{tile_height}; adjust foveated_res or use a non-tiled render order." ) super()._initialize_impl() - - self._sampling_coords = self._sampling_coords.to(device=self._device) - if self._sampling_coords_highres is not None: - self._sampling_coords_highres = self._sampling_coords_highres.to(device=self._device) - self._ray_coords = self._sampling_coords_highres or self._sampling_coords self._initialize_gaze() - self._pooler, self._pool_k = build_pooler( - self.cfg, self._sampling_coords, self._sampling_coords_highres, device=str(self._device) - ) - - # The gaze geometry's rendered rays, in canonical sample order and rolled by image_rotation_deg, back in the - # OpenGL frame Newton traces. - self._ray_directions = self._gaze_rays * self._gaze_rays.new_tensor(OPENGL_TO_ROS_AXES) - self._foveated_rays = explicit_rays(self._ray_directions, self.cfg.height, self.cfg.width) - render_samples = self.cfg.height * self.cfg.width - # Renderer buffers remain whole tiles; zero-copy canonical views hide - # trailing padding and preserve every output's dtype and sample order. - self._render_output = dict(self._data.output) - self._flat_render_output = {} - for name, value in self._render_output.items(): - tensor = value.torch - flat = tensor.view(tensor.shape[0], render_samples, 1, tensor.shape[-1]) - self._flat_render_output[name] = ProxyArray(wp.from_torch(flat[:, : self._num_ray_samples])) - self._data.output.clear() - self._data.output.update(self._flat_render_output) - - self._allocate_pooled_buffers() - source = self._pooled_output if self._pooler is not None else self._flat_render_output - self._sample_output = None - if self._pooler is None and not self._native_grid: - # Newton redraws every environment, so sample sets publish a copy that changes only on update. - self._sample_output = { - name: torch.zeros_like(value.torch) - for name, value in self._flat_render_output.items() - if not (name == "rgb" and "rgba" in self._flat_render_output) - } - if "rgba" in self._sample_output and "rgb" in self._flat_render_output: - self._sample_output["rgb"] = self._sample_output["rgba"][..., :3] - source = self._sample_output - if self._native_grid: - self._grid_output = allocate_grid_outputs(source, self._sampling_coords) - self._grid_indices = grid_sample_indices(self._sampling_coords) - source = self._grid_output - # The buffers the camera publishes: stable for the camera's lifetime and refilled each frame. - self._public_output = proxy_outputs(source) - self._data.output.clear() - self._data.output.update(self._public_output) - self._set_published_shape(self._public_output) - if self._native_grid and self._pooler is None: - self._prepare_grid_publish( - {name: value.torch.squeeze(2) for name, value in self._flat_render_output.items()} - ) - self._render_data.camera_rays = self._foveated_rays - - def _validate_native_render_layout(self, tile_width: int, tile_height: int) -> None: - """Reject a native grid that Newton's tiles cannot cover, before the parent allocates render buffers.""" - if self.cfg.width % tile_width or self.cfg.height % tile_height: - raise ValueError( - f"Native-grid Newton render size {self.cfg.width}x{self.cfg.height} " - f"must be divisible by renderer tile size {tile_width}x{tile_height}. " - "Choose foveated_res and pool_res_mult so the rendered grid satisfies " - "these dimensions, or select a non-tiled Newton render_order." - ) - - def _allocate_pooled_buffers(self) -> None: - """Allocate pooled output tensors; the renderer keeps writing the high-resolution buffers.""" - if self._pooler is None: - return - self._highres_output: dict[str, ProxyArray] = dict(self._data.output) - self._pooled_output: dict[str, torch.Tensor] = {} - for name, tex in self._highres_output.items(): - if name == "rgb" and "rgba" in self._highres_output: - continue # an alias of rgba, below - tensor = tex.torch - B, _, _, C = tensor.shape - self._pooled_output[name] = torch.zeros( - (B, self._num_valid_samples, 1, C), dtype=tensor.dtype, device=tensor.device - ) - # The renderer publishes rgb as a view of rgba whenever either is requested; so does the pooled output. - if "rgb" in self._highres_output and "rgba" in self._pooled_output: - self._pooled_output["rgb"] = self._pooled_output["rgba"][..., :3] - self._prepare_segmentation_pooling(self._highres_output) - dtypes_summary = {n: str(t.dtype).removeprefix("torch.") for n, t in self._highres_output.items()} - logger.info( - "FoveatedNewtonCamera: %s pooling (mode=%s k=%s sample_cortex=%s N_hi=%d -> N_lo=%d) outputs=%s", - type(self._pooler).__name__, - self.cfg.pool_mode, - self._pool_k, - self.cfg.pool_sample_cortex, - self._num_ray_samples, - self._num_valid_samples, - dtypes_summary, - ) - - def _update_poses( - self, - env_ids: Sequence[int] | wp.array | None = None, - env_mask: wp.array | None = None, - frame_op: int = 0, - ) -> None: - """Read base poses, turn them by the gaze, update the renderer once, and inject the foveated rays. - - The scene pose is read even without a gaze: the camera may inherit - motion from a parent body. - """ - # The base update turns the poses by the gaze in _update_camera_state, then hands them to the renderer. - Camera._update_poses(self, env_ids, env_mask=env_mask, frame_op=frame_op) - if self._foveated_rays is not None: - self._render_data.camera_rays = self._foveated_rays + rays = self._retinal_rays.new_zeros((self.cfg.height, self.cfg.width, 1, 2, 3)) + rays[..., 1, :] = self._retinal_rays.view(self.cfg.height, self.cfg.width, 1, 3) + # Newton allocates its default rays only once. Replace them before the first capture. + self._render_data.camera_rays = wp.from_torch(rays, dtype=wp.vec3f) + self._render_output = self._data.output + self._prepare_grid_publish({name: value.torch for name, value in self._render_output.items()}) def _update_buffers_impl(self, env_mask: wp.array): - """Render, then mask and publish the updated environments, pooling high-resolution samples if enabled. - - Newton redraws every environment's render buffer, each at the pose and gaze it last received. The sensor mask, - its visibility record and the published buffers, which the camera owns, change only for the updated - environments. - """ - self._data.output.clear() - self._data.output.update(self._render_output) + # Newton's render may redraw every environment. Only publish the rows due for update. + published = self._data.output + self._data._output = self._render_output try: super()._update_buffers_impl(env_mask) finally: - self._data.output.clear() - self._data.output.update(self._public_output) - if not self._env_mask_has_any(env_mask): - return - if self._pooler is None: - if self._grid_publish: - self._publish_grid(env_mask) - else: - self._apply_sensor_fov_mask(self._flat_render_output, env_mask) - for name, samples in self._sample_output.items(): - if name == "rgb" and "rgba" in self._sample_output: - continue # rgba alias - copy_updated_rows(self._flat_render_output[name].torch, samples, env_mask) - return - mask_grid_samples(self._highres_output, self._ray_coords) - self._apply_sensor_fov_mask(self._highres_output, env_mask) - for name, hi in self._highres_output.items(): - if name == "rgb" and "rgba" in self._highres_output: - continue # rgba alias - # Pooling covers every environment; only the updated ones are published. - copy_updated_rows(self._pool_output(name, hi.torch), self._pooled_output[name], env_mask) - if self._native_grid: - copy_grid_outputs(self._pooled_output, self._grid_output, self._grid_indices) + self._data._output = published + self._publish_grid(env_mask) @staticmethod def _pose_update_turns_gaze(cfg: FoveatedCameraCfg) -> bool: diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py index 2a6887d041f8..b9136e1bb02c 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py @@ -3,19 +3,11 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""RTX foveated tiled camera sensor. - -Subclasses :class:`isaaclab.sensors.Camera` to render foveated images -via the RTX path tracer using ``OmniLensDistortionLutAPI`` textures. -Per-sample values are extracted from the rendered 2D texture to produce -vector ``(B, N, 1, C)`` or upright native-grid ``(B, H, W, C)`` output buffers, -identical to :class:`FoveatedNewtonCamera`. -""" +"""Native foveated lens textures for Isaac RTX and OVRTX.""" from __future__ import annotations import logging -import math import tempfile from collections.abc import Sequence from typing import TYPE_CHECKING @@ -25,45 +17,25 @@ from isaaclab import sim as sim_utils from isaaclab.sensors.camera.camera import Camera -from isaaclab.utils import clone -from isaaclab.utils.math import convert_camera_frame_orientation_convention, matrix_from_quat, quat_from_matrix +from isaaclab.utils.math import ( + convert_camera_frame_orientation_convention, + normalize, + quat_conjugate, + quat_from_matrix, + quat_mul, +) from . import lens_lut -from .calibrated_geometry import compose_rotations, retinal_directions from .foveated_camera import FoveatedCamera -from .native_grid import ( - GRID_STYLE, - allocate_grid_outputs, - copy_grid_outputs, - copy_updated_rows, - grid_sample_indices, - mask_grid_samples, - native_grid_directions, - proxy_outputs, -) -from .pooling import build_highres_coords, build_lowres_coords, build_pooler if TYPE_CHECKING: - from isaaclab.utils.warp import ProxyArray - from .foveated_camera_cfg import FoveatedCameraCfg logger = logging.getLogger(__name__) class FoveatedRTXCamera(FoveatedCamera): - """RTX camera that renders with foveated (CMF-distributed) rays. - - Instead of Newton's Warp ray arrays, this sensor creates - ``OmniLensDistortionLutAPI`` Camera prims with LUT textures that define - per-texel ray directions. The RTX path tracer renders a 2D texture - which is then sampled at pre-computed UV positions to extract per-sample - values, producing ``(B, N, 1, C)`` output buffers. - - Grid styles render straight into their native grid. Sample-set styles are - packed onto a cortical disc, which keeps neighbouring samples adjacent for - DLSS denoising. Camera motion comes from the prim's parent and from the gaze. - """ + """Render the shared retinal grid through an RTX lens lookup texture.""" cfg: FoveatedCameraCfg @@ -74,16 +46,8 @@ def __init__(self, cfg: FoveatedCameraCfg): "OVRTX async_rendering returns the previous capture, which the sensor mask would cut with the current" " gaze. Disable async_rendering or mask_to_sensor_fov." ) - # The parent ``Camera`` allocates the renderer-bound texture buffers; the published ones follow from them. - self._texture_output: dict[str, ProxyArray] = {} - self._foveated_output: dict[str, torch.Tensor] = {} - self._pooled_output: dict[str, torch.Tensor] | None = None - # The projection sets the texture size on the configuration before the parent allocates for it; the caller's - # configuration stays untouched. - cfg = clone(cfg) - self.cfg = cfg - self._prepare_projection() super().__init__(cfg) + self._prepare_projection() # The lens belongs to the camera prims from construction: OVRTX snapshots the stage when the renderer starts. for prim in sim_utils.find_matching_prims(self.cfg.prim_path, self.stage): # A locked camera may be treated as static, which skips the motion vectors that DLSS reprojection needs; @@ -120,128 +84,56 @@ def get_world_poses(self, env_ids=None, convention="ros"): """ positions, orientations = super().get_world_poses(env_ids, convention="opengl") if not self._gaze_pose_reads_angles and self._gaze_rotation is not None: - # The prims hold the mount turned by the gaze's rotation in their own (OpenGL) frame. - basis = self._gaze_basis - gaze = self._gaze_rotation.torch[self._env_indices(env_ids)] - with torch.autocast(basis.device.type, enabled=False): - relative = compose_rotations(compose_rotations(basis, gaze), basis.T) - orientations = quat_from_matrix( - compose_rotations(matrix_from_quat(orientations), relative.transpose(-1, -2)) - ) + ids = self._resolve_env_ids_wp(env_ids) + rotation = self._relative_gaze() + if ids is not None: + rotation = rotation[wp.to_torch(ids).long()] + orientations = quat_mul(orientations, quat_conjugate(rotation)) return positions, convert_camera_frame_orientation_convention(orientations, origin="opengl", target=convention) def process_rendered_frame(self) -> None: - """Mask and publish the frame of the environments that scalar or batched rendering updated.""" - if not self._env_mask_has_any(self._is_outdated): - return - if self._grid_publish: - self._publish_grid(self._is_outdated) + """Publish the grid after scalar or batched rendering.""" + env_mask = self._is_outdated + if not self._env_mask_has_any(env_mask): return - # Only the updated environments' samples change, so pooling and the grid layout reproduce every other - # environment's last frame. - self._extract_foveated_samples(self._is_outdated) - mask_grid_samples(self._foveated_output, self._ray_coords) - self._apply_sensor_fov_mask(self._foveated_output, self._is_outdated) - - if self._pooled_output is not None: - for name, hi in self._foveated_output.items(): - if name == "rgb" and "rgba" in self._foveated_output: - continue # rgba alias - self._pooled_output[name].copy_(self._pool_output(name, hi)) - if self._native_grid: - source = self._pooled_output if self._pooled_output is not None else self._foveated_output - copy_grid_outputs(source, self._grid_output, self._grid_indices) + if self._near_clip is not None: + # OVRTX measures distance from the near-clipped ray origin. The scratch is a publication + # source, so this leaves the renderer's bound buffer and unselected public rows untouched. + torch.add(self._distance_source, self._near_clip, out=self._distance_corrected) + self._publish_grid(env_mask) def _prepare_projection(self) -> None: - # The lens textures and sample extraction use the rendered samples: the high-resolution ones when pooling. - self._sampling_coords, matched_res = build_lowres_coords(self.cfg, device="cpu") - self._sampling_coords_highres = build_highres_coords(self.cfg, self._sampling_coords, matched_res) - ray_coords = self._sampling_coords_highres or self._sampling_coords - self._ray_coords = ray_coords - self._native_grid = self.cfg.foveated_style == GRID_STYLE - self._num_valid_samples = len(self._sampling_coords) - self._num_ray_samples = len(ray_coords) - - # image_rotation_deg rolls each ray's polar angle before its direction is computed; see its configuration. - theta_rad = ray_coords.polar[:, 1].to(torch.float64) - if self.cfg.image_rotation_deg: - theta_rad = theta_rad + math.radians(float(self.cfg.image_rotation_deg)) - if self._native_grid: - dirs = native_grid_directions(ray_coords, image_rotation_deg=self.cfg.image_rotation_deg) - else: - dirs = retinal_directions(ray_coords.cartesian, ray_coords.fov, self.cfg.image_rotation_deg) - - # Grid styles render straight into their native grid; sample-set styles are packed onto a cortical disc, - # which keeps neighbouring samples adjacent for the renderer's spatial filtering. - if self._native_grid: - tw = th = ray_coords.resolution - axis = (torch.arange(tw, dtype=torch.float32) + 0.5) / tw - row, col = torch.meshgrid(axis, axis, indexing="ij") - uv = torch.stack((col, row), -1).reshape(-1, 2) - else: - tw = th = max(64, math.ceil(math.sqrt(4 * self._num_ray_samples / math.pi))) - # Eccentricity [deg] of each sample; the disc is laid out with the same - # field of view and CMF constant the samples were generated with. - eccentricity = ray_coords.polar[:, 0].to(torch.float64) * (ray_coords.fov / 2.0) - uv = lens_lut.samples_uv_cortical_disc( - eccentricity, theta_rad, ray_coords.fov, ray_coords.cmf_a, device="cpu" - ) - self._texture_width = tw - self._texture_height = th - self._sample_uv = uv - - # The exit texture is an octahedral inverse map (ray direction -> sensor NDC) over the hemisphere, of which - # only the camera's field of view is populated. Four times the direction texture's size gives each sample a - # distinct exit texel for the nearest-neighbour lookup. - if self.cfg.exit_texture_size is not None: - EW = EH = self.cfg.exit_texture_size - else: - EW = EH = max(128, 4 * max(tw, th)) - if self._native_grid: - dir_tex, exit_tex = lens_lut.build_native_grid_textures( - ray_coords, image_rotation_deg=self.cfg.image_rotation_deg, exit_size=EW - ) - else: - dir_tex, exit_tex = lens_lut.build_lut_textures(uv, dirs, tw, th, EW, EH, device="cpu") - # The camera owns its textures' directory, which is removed when the camera is released. + exit_size = self.cfg.exit_texture_size + if exit_size is None: + exit_size = max(128, 4 * self.cfg.foveated_res) + direction, exit_texture = lens_lut.build_native_grid_textures( + self._sampling_coords, + self._retinal_rays, + image_rotation_deg=self.cfg.image_rotation_deg, + exit_size=exit_size, + ) self._lut_dir = tempfile.TemporaryDirectory(prefix="rtx_foveated_luts_") self._dir_tex_path, self._exit_tex_path = lens_lut.save_lut_textures( - dir_tex, exit_tex, self._lut_dir.name, "foveated" - ) - logger.info( - "FoveatedRTXCamera: %d samples (%d rendered), style=%s, cmf_a=%.4g deg, field of view=%.1f deg, " - "texture %dx%d, exit lookup %dx%d, lookup textures in %s", - self._num_valid_samples, - self._num_ray_samples, - self.cfg.foveated_style, - ray_coords.cmf_a, - ray_coords.fov, - tw, - th, - EW, - EH, - self._lut_dir.name, + direction, exit_texture, self._lut_dir.name, "foveated" ) - # The parent allocates (B, th, tw, C) texture buffers. - self.cfg.height = th - self.cfg.width = tw def _initialize_impl(self) -> None: - tw, th = self._texture_width, self._texture_height - # OVRTX measures distance_to_camera from each camera's near-clipped ray origin, so it needs the near clips. - self._offset_distance = ( - self.cfg.renderer_cfg.renderer_type == "ovrtx" and "distance_to_camera" in self.cfg.data_types - ) - near_clips = None - if self._offset_distance: - prims = sim_utils.find_matching_prims(self.cfg.prim_path, self.stage) - near_clips = [self._near_clipping_distance(prim) for prim in prims] - super()._initialize_impl() + self._initialize_gaze() + if not self._gaze_pose_reads_angles: + _, local_orientation = self._view.get_local_poses() + self._base_local_orientation = local_orientation.torch.clone() + self._gaze_basis_quat = quat_from_matrix(self._gaze_basis) + sources = {name: value.torch for name, value in self._data.output.items()} self._near_clip = None - if near_clips is not None: - self._near_clip = torch.tensor(near_clips, dtype=torch.float32, device=self._device).view(-1, 1, 1, 1) + if self.cfg.renderer_cfg.renderer_type == "ovrtx" and "distance_to_camera" in sources: + near_clips = [self._near_clipping_distance(camera.GetPrim()) for camera in self._sensor_prims] + self._distance_source = sources["distance_to_camera"] + self._near_clip = self._distance_source.new_tensor(near_clips).view(-1, 1, 1, 1) + self._distance_corrected = torch.empty_like(self._distance_source) + sources["distance_to_camera"] = self._distance_corrected + self._prepare_grid_publish(sources) # OVRTX owns its runtime; Kit extensions belong only to Isaac RTX. if self.cfg.renderer_cfg.renderer_type == "isaac_rtx": @@ -252,45 +144,6 @@ def _initialize_impl(self) -> None: if not ext_manager.set_extension_enabled_immediate(ext_name, True): logger.warning("Could not enable Kit extension '%s'; the lens lookup may not render.", ext_name) - self._sampling_coords = self._sampling_coords.to(device=self._device) - if self._sampling_coords_highres is not None: - self._sampling_coords_highres = self._sampling_coords_highres.to(device=self._device) - self._ray_coords = self._sampling_coords_highres or self._sampling_coords - self._initialize_gaze() - _, local_orientation = self._view.get_local_poses() - self._base_local_orientation = matrix_from_quat(local_orientation.torch).clone() - self._pooler, self._pool_k = build_pooler( - self.cfg, self._sampling_coords, self._sampling_coords_highres, device=str(self._device) - ) - - # The renderer keeps writing the texture buffers the parent bound to it; the camera publishes others. - self._texture_output = self._data.output - textures = {name: tex.torch for name, tex in self._texture_output.items()} - # A native grid texture already holds the samples in order, so one kernel per output masks it and lays it - # out. OVRTX's camera distance needs its near-plane offset first, and keeps the step-by-step path. - fused = self._native_grid and self._pooler is None and not self._offset_distance - if fused: - count = self._num_ray_samples - samples = {name: tex.reshape(tex.shape[0], count, tex.shape[-1]) for name, tex in textures.items()} - self._grid_output = allocate_grid_outputs(samples, self._sampling_coords) - self._grid_indices = grid_sample_indices(self._sampling_coords) - self._prepare_grid_publish(samples) - published = self._grid_output - else: - if not self._native_grid: - uv_gpu = self._sample_uv.to(self._device) - self._extract_px = (uv_gpu[:, 0] * tw).long().clamp(0, tw - 1) - self._extract_py = (uv_gpu[:, 1] * th).long().clamp(0, th - 1) - self._allocate_foveated_buffers() - published = self._pooled_output if self._pooled_output is not None else self._foveated_output - if self._native_grid: - self._grid_output = allocate_grid_outputs(published, self._sampling_coords) - self._grid_indices = grid_sample_indices(self._sampling_coords) - published = self._grid_output - # ``CameraData.output`` is read-only, so its backing field is replaced. - self._data._output = proxy_outputs(published) - self._set_published_shape(self._data._output) - def _near_clipping_distance(self, prim) -> float: """Near clipping distance [m] of the camera, from its spawn configuration or else its prim.""" if self.cfg.spawn is not None: @@ -300,64 +153,37 @@ def _near_clipping_distance(self, prim) -> float: clipping = UsdGeom.Camera(prim).GetClippingRangeAttr().Get() return float(clipping[0]) if clipping is not None else 0.0 - def _allocate_foveated_buffers(self): - """Allocate (B, N_hi, 1, C) and, when pooling, (B, N_lo, 1, C) buffers from the texture buffers' shapes.""" - has_rgba_alias = "rgba" in self._texture_output - self._foveated_output = {} - for name, buf in self._texture_output.items(): - if name == "rgb" and has_rgba_alias: - continue # an alias of rgba, below - # Texture buffers are ProxyArrays; their Torch view carries the dtype and device. - buf_t = buf.torch - self._foveated_output[name] = torch.zeros( - (self._view.count, self._num_ray_samples, 1, buf_t.shape[-1]), device=buf_t.device, dtype=buf_t.dtype - ) - # The renderer publishes rgb as a view of rgba whenever either is requested; so do the foveated outputs. - if "rgb" in self._texture_output and "rgba" in self._foveated_output: - self._foveated_output["rgb"] = self._foveated_output["rgba"][:, :, :, :3] + def set_world_poses(self, positions=None, orientations=None, env_ids=None, convention="ros"): + """Move the mount while retaining its relative gaze.""" + super().set_world_poses(positions, orientations, env_ids, convention) + if orientations is not None and not self._gaze_pose_reads_angles: + ids = self._resolve_env_ids_wp(env_ids) + self._mount_written(slice(None) if ids is None else wp.to_torch(ids).long()) - if self._pooler is None: - self._pooled_output = None - return - self._pooled_output = {} - for name, buf in self._foveated_output.items(): - if name == "rgb" and has_rgba_alias: - continue - self._pooled_output[name] = torch.zeros( - (self._view.count, self._num_valid_samples, 1, buf.shape[-1]), device=self._device, dtype=buf.dtype - ) - if "rgb" in self._texture_output and "rgba" in self._pooled_output: - self._pooled_output["rgb"] = self._pooled_output["rgba"][:, :, :, :3] - self._prepare_segmentation_pooling(self._pooled_output) - logger.info( - "FoveatedRTXCamera: %s pooling (mode=%s k=%s sample_cortex=%s N_hi=%d -> N_lo=%d)", - type(self._pooler).__name__, - self.cfg.pool_mode, - self._pool_k, - self.cfg.pool_sample_cortex, - self._num_ray_samples, - self._num_valid_samples, - ) + def set_world_poses_from_view(self, eyes, targets, env_ids=None): + """Point the mount at a target while retaining its relative gaze.""" + super().set_world_poses_from_view(eyes, targets, env_ids) + if not self._gaze_pose_reads_angles: + # The base setter leaves rows with a degenerate look-at direction untouched. + moved = (self._as_device_tensor(eyes, 3) != self._as_device_tensor(targets, 3)).any(dim=-1) + ids = self._resolve_env_ids_wp(env_ids) + self._mount_written(moved if ids is None else wp.to_torch(ids).long()[moved]) - def _mount_written(self, env_ids) -> None: - """Save the moved prims' orientations as their bare mounts and write the gaze on top of them again.""" - if self._gaze_pose_reads_angles: - return # The pose update turns the new mount by the gaze. - ids = self._env_indices(env_ids) + def _mount_written(self, ids) -> None: _, local_orientation = self._view.get_local_poses() - self._base_local_orientation[ids] = matrix_from_quat(local_orientation.torch[ids]) + self._base_local_orientation[ids] = local_orientation.torch[ids] if self._gaze_rotation is not None: self._write_gaze_local_pose() + def _relative_gaze(self) -> torch.Tensor: + basis = self._gaze_basis_quat.expand(self._view.count, -1) + gaze = quat_from_matrix(self._gaze_rotation.torch) + return quat_mul(quat_mul(basis, gaze), quat_conjugate(basis)) + def _write_gaze_local_pose(self) -> None: - # Replicator reads camera prims, not update_camera's pose arguments. - # Write when the command arrives, before a visualizer can render the step. - # The saved local base prevents accumulation and preserves parent motion. - basis = self._gaze_basis - with torch.autocast(basis.device.type, enabled=False): - relative = compose_rotations(compose_rotations(basis, self._gaze_rotation.torch), basis.T) - local_orientation = quat_from_matrix(compose_rotations(self._base_local_orientation, relative)) - self._view.set_local_poses(orientations=wp.from_torch(local_orientation.contiguous(), dtype=wp.vec4f)) + # Replicator reads camera prims. Write the gaze onto the bare local mount so parent motion is preserved. + orientation = normalize(quat_mul(self._base_local_orientation, self._relative_gaze())) + self._view.set_local_poses(orientations=wp.from_torch(orientation.contiguous(), dtype=wp.vec4f)) def _update_buffers_impl(self, env_mask: wp.array): if not self._env_mask_has_any(env_mask): @@ -366,24 +192,6 @@ def _update_buffers_impl(self, env_mask: wp.array): super()._update_buffers_impl(env_mask) self.process_rendered_frame() - def _extract_foveated_samples(self, env_mask: wp.array): - """Extract the updated environments' per-sample values from the rendered 2D textures into the (B, N, 1, C) - buffers; the other environments keep their last samples.""" - for name in self._texture_output: - if name == "rgb" and "rgba" in self._texture_output: - continue # rgba alias - tex = self._texture_output[name] # (B, th, tw, C) - fov = self._foveated_output[name] # (B, N, 1, C) - tensor = tex.torch - if self._native_grid: - samples = tensor.reshape_as(fov) - else: - samples = tensor[:, self._extract_py, self._extract_px, :].unsqueeze(2) - if self._offset_distance and name == "distance_to_camera": - # OVRTX measures the distance from the near-clipped ray origin. - samples = samples + self._near_clip.to(samples.dtype) - copy_updated_rows(samples, fov, env_mask) - @staticmethod def _pose_update_turns_gaze(cfg: FoveatedCameraCfg) -> bool: # OVRTX renders the poses the camera hands it, so its pose update turns the gaze. Replicator reads camera diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py index 1f90730b1ec4..c8fccd044385 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py @@ -178,43 +178,23 @@ def set_gaze_kernel( rotation[i] = gaze_rotation(angles) -@wp.func -def turn_pose( - i: wp.int32, - gaze: wp.mat33f, - basis: wp.mat33f, - to_opengl: wp.quatf, - to_world: wp.quatf, - to_ros: wp.quatf, - orientation: wp.array(dtype=wp.quatf), - mount: wp.array(dtype=wp.quatf), -): - """Record camera ``i``'s mount in the ROS convention, then turn its world orientation by its gaze.""" - base = orientation[i] - mount[i] = wp.normalize(base * to_ros) - orientation[i] = gaze_pose(base, gaze, basis, to_opengl, to_world) - - @wp.kernel(enable_backward=False) def apply_gaze_kernel( angles_deg: wp.array(dtype=wp.vec2f), basis: wp.mat33f, to_opengl: wp.quatf, to_world: wp.quatf, - to_ros: wp.quatf, mask: wp.array(dtype=wp.bool), use_mask: wp.int32, orientation: wp.array(dtype=wp.quatf), rotation: wp.array(dtype=wp.mat33f), - mount: wp.array(dtype=wp.quatf), ): - """Turn each camera's world orientation by its gaze, or only the masked ones, and record their mounts and gaze - rotations; every other camera keeps the rotation its pose was turned by.""" + """Turn each updated camera and save the rotation used for its capture.""" i = wp.tid() if use_mask == 0 or mask[i]: gaze = gaze_rotation(angles_deg[i]) rotation[i] = gaze - turn_pose(i, gaze, basis, to_opengl, to_world, to_ros, orientation, mount) + orientation[i] = gaze_pose(orientation[i], gaze, basis, to_opengl, to_world) @wp.kernel(enable_backward=False) @@ -223,17 +203,15 @@ def apply_gaze_indexed_kernel( basis: wp.mat33f, to_opengl: wp.quatf, to_world: wp.quatf, - to_ros: wp.quatf, indices: wp.array(dtype=wp.int32), orientation: wp.array(dtype=wp.quatf), rotation: wp.array(dtype=wp.mat33f), - mount: wp.array(dtype=wp.quatf), ): - """Turn the indexed cameras' world orientations by their gaze, and record their mounts and gaze rotations.""" + """Turn the indexed cameras' world orientations by their gaze, and record their gaze rotations.""" i = indices[wp.tid()] gaze = gaze_rotation(angles_deg[i]) rotation[i] = gaze - turn_pose(i, gaze, basis, to_opengl, to_world, to_ros, orientation, mount) + orientation[i] = gaze_pose(orientation[i], gaze, basis, to_opengl, to_world) @wp.func @@ -242,27 +220,6 @@ def sees(ray: wp.vec3f, gaze: wp.mat33f, frame: wp.mat33f, camera: CameraParams) return project_direction(frame * gaze * wp.transpose(frame) * ray, camera)[2] > 0.5 -@wp.kernel(enable_backward=False) -def sensor_visibility_kernel( - rays: wp.array(dtype=wp.vec3f), - rotation: wp.array(dtype=wp.mat33f), - frame: wp.mat33f, - camera: CameraParams, - updated: wp.array(dtype=wp.bool), - valid: wp.array2d(dtype=wp.bool), - hidden: wp.array2d(dtype=wp.bool), -): - """Whether the physical camera sees each rendered ray turned by each updated environment's gaze, and which - updated samples it does not see; other environments keep their last visibility and hide nothing.""" - env, sample = wp.tid() - if not updated[env]: - hidden[env, sample] = False - return - seen = sees(rays[sample], rotation[env], frame, camera) - valid[env, sample] = seen - hidden[env, sample] = not seen - - @wp.kernel(enable_backward=False) def publish_grid_kernel( source: wp.array3d(dtype=wp.uint8), @@ -274,8 +231,6 @@ def publish_grid_kernel( frame: wp.mat33f, camera: CameraParams, mask_to_sensor: wp.int32, - record_visible: wp.int32, - visible: wp.array2d(dtype=wp.bool), target: wp.array3d(dtype=wp.uint8), ): """Copy the updated environments' rendered samples into the upright grid, zeroing samples outside the footprint @@ -288,42 +243,10 @@ def publish_grid_kernel( return sample = indices[cell] keep = footprint[sample] - if mask_to_sensor != 0: - seen = sees(rays[sample], rotation[env], frame, camera) - if record_visible != 0: - visible[env, sample] = seen - keep = keep and seen + if keep and mask_to_sensor != 0: + keep = sees(rays[sample], rotation[env], frame, camera) for k in range(target.shape[2]): if keep: target[env, cell, k] = source[env, sample, k] else: target[env, cell, k] = wp.uint8(0) - - -@wp.kernel(enable_backward=False) -def project_directions_kernel( - directions: wp.array(dtype=wp.vec3f), - camera: CameraParams, - pixels: wp.array(dtype=wp.vec2f), - valid: wp.array(dtype=wp.bool), -): - i = wp.tid() - result = project_direction(directions[i], camera) - pixels[i] = wp.vec2f(result[0], result[1]) - valid[i] = result[2] > 0.5 - - -def project_directions(directions: torch.Tensor, camera: CameraParams) -> tuple[torch.Tensor, torch.Tensor]: - """Project (..., 3) camera-frame directions to (..., 2) pixels and (...,) validity, in one launch.""" - flat = directions.detach().reshape(-1, 3).float().contiguous() - pixels = torch.empty(len(flat), 2, dtype=torch.float32, device=flat.device) - valid = torch.empty(len(flat), dtype=torch.bool, device=flat.device) - if len(flat): - with torch_stream(flat.device): - wp.launch( - project_directions_kernel, - dim=len(flat), - inputs=[wp.from_torch(flat, dtype=wp.vec3f), camera], - outputs=[wp.from_torch(pixels, dtype=wp.vec2f), wp.from_torch(valid, dtype=wp.bool)], - ) - return pixels.reshape(*directions.shape[:-1], 2), valid.reshape(directions.shape[:-1]) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/lens_lut.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/lens_lut.py index 383c4f12f14b..520ac075cb39 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/lens_lut.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/lens_lut.py @@ -13,7 +13,7 @@ * **rayExitPositionTexture** ``(EW × EH, RG float32)`` Inverse map: given a ray direction (octahedral-encoded over ``[0,1]²``), - returns the sensor NDC ``(u, v)`` of the nearest sample. + returns sensor NDC ``(u, v)`` in the native grid. Isaac RTX and OVRTX both render through this API; the legacy generalized-projection camera attributes are not used. @@ -27,7 +27,6 @@ from __future__ import annotations -import math import os from typing import TYPE_CHECKING @@ -35,7 +34,7 @@ import torch from fovi.sensing.coords import SamplingCoords -from .native_grid import native_grid_directions, native_grid_exit_uv +from .native_grid import native_grid_exit_uv if TYPE_CHECKING: from pxr import Usd @@ -62,96 +61,14 @@ def save_exr(path: str, data: torch.Tensor) -> None: def build_native_grid_textures( - coords: SamplingCoords, *, image_rotation_deg: float, exit_size: int + coords: SamplingCoords, rays: torch.Tensor, *, image_rotation_deg: float, exit_size: int ) -> tuple[torch.Tensor, torch.Tensor]: """Build native direction texels and an analytic octahedral inverse map.""" - directions = native_grid_directions(coords, image_rotation_deg=image_rotation_deg).reshape( - coords.resolution, coords.resolution, 3 - ) decoded = torch.stack(_octahedral_decode(exit_size, exit_size, device=coords.device), -1) uv, valid = native_grid_exit_uv(decoded, coords, image_rotation_deg=image_rotation_deg) # Out-of-sensor rays must not be projected into the fovea by the inverse LUT. exit_texture = torch.where(valid[..., None], uv, torch.full_like(uv, -1)) - return directions, exit_texture - - -def build_lut_textures( - samples_uv: torch.Tensor, - ray_directions: torch.Tensor, - texture_width: int, - texture_height: int, - exit_width: int, - exit_height: int, - chunk: int = 8192, - *, - device: torch.device | str, -) -> tuple[torch.Tensor, torch.Tensor]: - """Build direction and exit LUT tensors from a labelled set of sensor samples. - - Both tensors are filled by **nearest-neighbour assignment**. - - Args: - samples_uv: ``(N, 2)`` float32. NDC ``(u, v)`` per sample. - ray_directions: ``(N, 3)`` float32. Unit ray direction per sample. - texture_width, texture_height: Direction LUT dimensions. - exit_width, exit_height: Exit LUT dimensions. - chunk: NN search batch size. - device: Torch device. - - Returns: - ``(direction_texture, exit_texture)`` — - ``(H, W, 3)`` and ``(EH, EW, 2)`` float32 tensors. - """ - uv_t = _t(samples_uv, torch.float32, device) - dirs_t = _t(ray_directions, torch.float32, device) - N = uv_t.shape[0] - - # Direction texture. - dir_out = torch.zeros(texture_height, texture_width, 3, dtype=torch.float32, device=device) - dir_out[:, :, 2] = -1.0 - - if N > 0: - # Each texel takes the ray of the sample nearest it in UV, whatever order the samples come in. - u_t = (torch.arange(texture_width, dtype=torch.float32, device=device) + 0.5) / texture_width - v_t = (torch.arange(texture_height, dtype=torch.float32, device=device) + 0.5) / texture_height - U = u_t.unsqueeze(0).expand(texture_height, texture_width) - V = v_t.unsqueeze(1).expand(texture_height, texture_width) - texel_uv = torch.stack([U.reshape(-1), V.reshape(-1)], dim=1) - k_nn = _nn_chunk(texel_uv, uv_t, chunk) - dir_out.reshape(-1, 3)[:] = dirs_t[k_nn] - - # Exit texture: only texels whose direction lies within the samples' field (r <= max_r) map to a sample; the rest - # hold the invalid UV (-1, -1), as in native-grid LUTs, so rays outside the field never reach the fovea. - d = dirs_t.to(torch.float64) - r_s = (torch.atan2((d[:, 0] ** 2 + d[:, 1] ** 2).sqrt(), (-d[:, 2]).clamp(min=1e-20)) * (180.0 / math.pi)).float() - th_s = torch.atan2(d[:, 1], d[:, 0]).float() - xs = r_s * th_s.cos() - ys = r_s * th_s.sin() - max_r = float(r_s.max().item()) if N > 0 else 0.0 - - oct_x, oct_y, oct_z = _octahedral_decode(exit_width, exit_height, device=device) - r_q = (torch.atan2((oct_x**2 + oct_y**2).sqrt(), (-oct_z).clamp(min=1e-20)) * (180.0 / math.pi)).float() - th_q = torch.atan2(oct_y.float(), oct_x.float()) - xq = r_q * th_q.cos() - yq = r_q * th_q.sin() - - odz_f = oct_z.float() - valid = (r_q <= max_r) & (odz_f < -1e-9) - - exit_u = torch.full((exit_height, exit_width), -1.0, dtype=torch.float32, device=device) - exit_v = torch.full((exit_height, exit_width), -1.0, dtype=torch.float32, device=device) - - if N > 0 and valid.any(): - sample_cart = torch.stack([xs, ys], dim=1) - vf = valid.reshape(-1) - query_cart = torch.stack([xq.reshape(-1)[vf], yq.reshape(-1)[vf]], dim=1) - k_exit = _nn_chunk(query_cart, sample_cart, chunk) - eu_flat = exit_u.reshape(-1) - ev_flat = exit_v.reshape(-1) - eu_flat[vf] = uv_t[k_exit, 0] - ev_flat[vf] = uv_t[k_exit, 1] - - return dir_out, torch.stack([exit_u, exit_v], dim=2) + return rays.reshape(coords.resolution, coords.resolution, 3), exit_texture def save_lut_textures( @@ -192,37 +109,6 @@ def apply_lens_lut_to_prim( ) -def samples_uv_cortical_disc( - r_deg, - theta_rad, - fov_deg: float, - cmf_a: float, - device: torch.device | str, -) -> torch.Tensor: - """Map samples to NDC using the cortical polar disc layout. - - ``ρ = log((r + a) / a)``, mapped to a centered disc. - Foveal centre ``r=0`` → disc centre ``(0.5, 0.5)``. - - Returns: - ``(N, 2)`` float32 NDC tensor. - """ - rho_max = math.log((fov_deg / 2.0 + cmf_a) / cmf_a) - r = _t(r_deg, torch.float64, device) - th = _t(theta_rad, torch.float64, device) - rho = ((r + cmf_a) / cmf_a).clamp(min=1e-30).log() - u = (rho * th.cos() / (2.0 * rho_max) + 0.5).float() - v = (-rho * th.sin() / (2.0 * rho_max) + 0.5).float() - return torch.stack([u, v], dim=1) - - -def _t(x, dtype: torch.dtype, device) -> torch.Tensor: - """Convert array-like or tensor *x* to a ``torch.Tensor`` on *device*.""" - if isinstance(x, torch.Tensor): - return x.to(dtype=dtype, device=device) - return torch.as_tensor(np.asarray(x), dtype=dtype, device=device) - - def _octahedral_decode( width: int, height: int, @@ -244,22 +130,3 @@ def _octahedral_decode( dy = torch.where(dz <= 0.0, (1.0 - px.abs()) * sy, py) n = torch.clamp((dx**2 + dy**2 + dz**2).sqrt(), min=1e-20) return dx / n, dy / n, -dz / n - - -def _nn_chunk(query: torch.Tensor, keys: torch.Tensor, chunk: int) -> torch.Tensor: - """Chunked nearest-neighbour search via ``torch.cdist``. - - Chunk size is capped so the float32 distance matrix stays within 2 GiB. - - Returns: - ``(M,)`` int64 index of the closest key for each query row. - """ - N = keys.shape[0] - safe_chunk = max(1, (2 << 30) // (4 * max(N, 1))) - effective = min(chunk, safe_chunk) - M = query.shape[0] - idx = torch.empty(M, dtype=torch.long, device=query.device) - for s in range(0, M, effective): - e = min(s + effective, M) - idx[s:e] = torch.cdist(query[s:e], keys).argmin(dim=1) - return idx diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py index 459bdb690094..de7c5a9c76f0 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py @@ -8,54 +8,10 @@ from __future__ import annotations import math -from collections.abc import Mapping -from typing import Protocol import torch -import warp as wp from fovi.sensing.coords import SamplingCoords - -from isaaclab.utils.warp import ProxyArray -from isaaclab.utils.warp.memory import make_masked_copy - -from .gaze_kernels import warp_stream - -GRID_STYLE = "warped_cartesian_as_grid" - - -def buffer_tensor(value: torch.Tensor | TorchBuffer) -> torch.Tensor: - """Get a renderer or public tensor without copying.""" - return value if isinstance(value, torch.Tensor) else value.torch - - -def proxy_outputs(outputs: Mapping[str, torch.Tensor | ProxyArray]) -> dict[str, ProxyArray]: - """Wrap output buffers as zero-copy :class:`ProxyArray` values, as :class:`CameraData` publishes them.""" - return { - name: ProxyArray(wp.from_torch(value)) if isinstance(value, torch.Tensor) else value - for name, value in outputs.items() - } - - -def copy_updated_rows(source: torch.Tensor, target: torch.Tensor, rows: wp.array) -> None: - """Copy the environments that ``rows`` selects from ``source`` into ``target``, shape (num_envs, N, 1, C). - - The other environments keep their values. The masked copy needs no full-batch temporary and no host sync. - - Args: - source: The new samples; may be a strided view. - target: The published samples, written in place. - rows: Which environments to copy, shape (num_envs,) of ``bool``. - """ - source3, target3 = source.squeeze(2), target.squeeze(2) - dtype = wp.dtype_from_torch(target.dtype) - wp.launch( - make_masked_copy(dtype, 3), - dim=tuple(target3.shape), - inputs=[wp.from_torch(source3, dtype=dtype), rows, None], - outputs=[wp.from_torch(target3, dtype=dtype)], - device=str(target.device), - stream=warp_stream(target.device), - ) +from fovi.sensing.projection import angular_directions def bounded_angular_radius(radius: torch.Tensor, half_fov_rad: float) -> torch.Tensor: @@ -86,21 +42,17 @@ def native_grid_directions(coords: SamplingCoords, *, image_rotation_deg: float Grid radius is proportional to visual angle, and the padding outside the nominal field continues toward the antipode without wrapping. """ - _require_spherical(coords) + cartesian = coords.cartesian.to(torch.float64) radius = torch.linalg.vector_norm(cartesian, dim=-1) - boundary_radius, boundary_angle = _angular_padding_boundary(coords) - angle = bounded_angular_radius(radius / boundary_radius, boundary_angle) - scale = torch.where(radius > 0, angle.sin() / radius.clamp_min(1e-30), angle.new_zeros(())) - xy = cartesian * scale[:, None] - z = -angle.cos() + half_fov = math.radians(coords.fov) / 2 + padded_radius = bounded_angular_radius(radius, half_fov) / half_fov + scale = torch.where(radius > 0, padded_radius / radius.clamp_min(1e-30), 1.0) + rays = angular_directions(cartesian * scale[:, None], coords.fov) + x, y, z = rays.unbind(-1) angle = math.radians(image_rotation_deg) - x, y = xy.unbind(-1) - rays = torch.stack( - (math.cos(angle) * x - math.sin(angle) * y, math.sin(angle) * x + math.cos(angle) * y, z), - -1, - ) - return torch.nn.functional.normalize(rays, dim=-1).float() + c, s = math.cos(angle), math.sin(angle) + return torch.stack((c * x + s * y, s * x - c * y, -z), -1).float() def native_grid_exit_uv( @@ -111,99 +63,15 @@ def native_grid_exit_uv( Texture rows and columns follow canonical vector order: native x then y. The public image applies Fovi's upright grid permutation after rendering. """ - _require_spherical(coords) angle = math.radians(image_rotation_deg) x, y, z = directions.to(torch.float64).unbind(-1) xy = torch.stack((math.cos(angle) * x + math.sin(angle) * y, -math.sin(angle) * x + math.cos(angle) * y), -1) lateral = torch.linalg.vector_norm(xy, dim=-1) theta = torch.atan2(lateral, -z) - boundary_radius, boundary_angle = _angular_padding_boundary(coords) - radius = unbounded_angular_radius(theta, boundary_angle) * boundary_radius + radius = unbounded_angular_radius(theta, math.radians(coords.fov) / 2) cartesian = xy * (radius / lateral.clamp_min(1e-30))[..., None] visible = theta < math.pi - 1e-8 native = coords.visual_to_native(cartesian) uv = (native.flip(-1) + 1) / 2 visible = visible & (uv >= 0).all(-1) & (uv <= 1).all(-1) return uv.float(), visible - - -def grid_output_shape(coords: SamplingCoords) -> tuple[int, int]: - """Resolve public image dimensions, preserving vector cameras' shape.""" - if coords.style == GRID_STYLE: - return coords.resolution, coords.resolution - return len(coords), 1 - - -def mask_grid_samples(outputs: Mapping[str, torch.Tensor | TorchBuffer], coords: SamplingCoords) -> None: - """Zero samples outside the configured footprint before pooling or publication.""" - if coords.style != GRID_STYLE: - return - invalid = ~coords.valid_mask[None, :, None, None] - for name, value in outputs.items(): - if name == "rgb" and "rgba" in outputs: - continue - tensor = buffer_tensor(value) - tensor.masked_fill_(invalid, 0) - - -def allocate_grid_outputs( - outputs: Mapping[str, torch.Tensor | TorchBuffer], coords: SamplingCoords -) -> dict[str, torch.Tensor]: - """Allocate stable public BHWC buffers from flat renderer outputs.""" - result: dict[str, torch.Tensor] = {} - for name, value in outputs.items(): - if name == "rgb" and "rgba" in outputs: - continue - tensor = buffer_tensor(value) - result[name] = tensor.new_zeros((tensor.shape[0], coords.resolution, coords.resolution, tensor.shape[-1])) - if "rgb" in outputs and "rgba" in result: - result["rgb"] = result["rgba"][..., :3] - return result - - -def grid_sample_indices(coords: SamplingCoords) -> torch.Tensor: - """Resolve the public image permutation once, outside rendering updates.""" - return coords.as_grid(torch.arange(len(coords), device=coords.device)).reshape(-1) - - -def copy_grid_outputs( - source: Mapping[str, torch.Tensor | TorchBuffer], - target: dict[str, torch.Tensor], - indices: torch.Tensor, -) -> None: - """Update stable public image buffers without changing sample ordering.""" - for name, value in source.items(): - if name == "rgb" and "rgba" in source: - continue - tensor = buffer_tensor(value) - flat_source = tensor.reshape(tensor.shape[0], -1, tensor.shape[-1]) - flat_target = target[name].view(tensor.shape[0], -1, tensor.shape[-1]) - torch.index_select(flat_source, 1, indices, out=flat_target) - - -class TorchBuffer(Protocol): - """Renderer buffer exposing a Torch view.""" - - @property - def torch(self) -> torch.Tensor: ... - - -def _require_spherical(coords: SamplingCoords) -> None: - if coords.field_geometry != "spherical": - raise ValueError(f"Foveated cameras sample spherical coordinates, got {coords.field_geometry!r}.") - - -def _angular_padding_boundary(coords: SamplingCoords) -> tuple[float, float]: - if coords.fov_type == "circular": - radius = 1.0 - elif coords.fov_type == "square": - radius = math.sqrt(2) - elif coords.fov_type == "wang": - corner = coords.cartesian.new_tensor([[1.0, 1.0]]) - radius = float(torch.linalg.vector_norm(coords.native_to_visual(corner)).item()) - else: - raise ValueError(f"Unsupported native grid footprint {coords.fov_type!r}.") - angle = radius * math.radians(coords.fov) / 2 - if angle >= math.pi: - raise ValueError("Spherical native grid footprint reaches the antipode; reduce FoV or use circular coverage.") - return radius, angle diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py deleted file mode 100644 index c7093b517c9b..000000000000 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py +++ /dev/null @@ -1,282 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""Shared retinal-pooling helpers for FoveatedCamera backends. - -Builds a pair of (lowres, highres) :class:`SamplingCoords` and a retinal -pooler analogous to :class:`fovi.sensing.samplers.PoolingGridSampler`, but driven by a -:class:`FoveatedCameraCfg` and operating on rays rather than images. - -Key deviation from ``PoolingGridSampler``: the highres grid shares ``cmf_a`` with -the lowres grid (no ``cmf_a_mult``). Only ``res`` is scaled by -``pool_res_mult`` so the photoreceptor and RGC layers represent the same -visual-field geometry at different densities. - -Construction happens in two stages to accommodate Isaac's sensor init order: -1. ``build_lowres_coords`` + ``build_highres_coords`` run *before* - ``super()._initialize_impl()`` (CPU) so the backend can size its render - buffers from the highres sample count. -2. ``build_pooler`` runs *after* coords have been moved to the sensor's - device, so the KNN indices/distances/Gaussian weights materialise on the - correct device (they are plain tensor attributes and are not moved by - ``nn.Module.to``). -""" - -from __future__ import annotations - -from typing import TYPE_CHECKING - -import torch -from fovi.arch.knn import KNNPoolingLayer -from fovi.arch.pooling import GridPoolingLayer, build_retinal_pooler -from fovi.sensing.coords import SamplingCoords, auto_match_num_coords - -from .calibrated_geometry import sampling_geometry - -if TYPE_CHECKING: - from .foveated_camera_cfg import FoveatedCameraCfg - - -# Upper bound on ``batch * outputs * k`` elements per modal-pooling chunk. Each chunk holds about ten -# int64 tensors of this size, so peak scratch memory stays near 300 MB regardless of the batch size. -_MODAL_CHUNK_ELEMENTS = 2**22 - - -def build_lowres_coords(cfg: FoveatedCameraCfg, device: str) -> tuple[SamplingCoords, int]: - """Build the lowres (RGC / public output) SamplingCoords. - - Returns ``(lowres_coords, matched_res)`` where ``matched_res`` is the - auto-matched radial resolution also needed for the highres grid. - """ - fov, cmf_a = sampling_geometry(cfg) - - matched_res, _ = auto_match_num_coords( - fov, - cmf_a, - cfg.foveated_res, - cfg.foveated_style, - 1, - device, - quiet=True, - fov_type=cfg.fov_type, - radius_norm=cfg.radius_norm, - field_geometry="spherical", - ) - lowres = SamplingCoords( - fov=fov, - cmf_a=cmf_a, - res=matched_res, - device=device, - style=cfg.foveated_style, - isotropic_plotting_type=cfg.isotropic_plotting_type, - fov_type=cfg.fov_type, - radius_norm=cfg.radius_norm, - field_geometry="spherical", - ) - return lowres, matched_res - - -def build_highres_coords(cfg: FoveatedCameraCfg, lowres: SamplingCoords, matched_res: int) -> SamplingCoords | None: - """Build the highres (photoreceptor) SamplingCoords when pooling is on: the lowres retina's geometry at - ``pool_res_mult`` times its resolution, on the same device.""" - if not cfg.pool_enabled: - return None - # pool_res_mult is a float to support fractional ratios (e.g. sqrt(2) for - # a 2× N_hi/N_lo ratio). SamplingCoords requires an integer radial res. - return lowres.clone(resolution=int(round(cfg.pool_res_mult * matched_res))) - - -def build_pooler( - cfg: FoveatedCameraCfg, - lowres: SamplingCoords, - highres: SamplingCoords | None, - device: str, -) -> tuple[KNNPoolingLayer | GridPoolingLayer | None, int | None]: - """Build the retinal pooling layer of ``cfg.pool_mode``, which pools every output except segmentation. Both coord - sets must already be on ``device``. - - Segmentation pools by modal label over this pooler's neighbourhoods: pass :func:`segmentation_neighbor_indices` of - it to :func:`pool_segmentation_buffer`. - """ - if highres is None: - return None, None - return build_retinal_pooler( - highres, - lowres, - k=cfg.pool_k, - mode=cfg.pool_mode, - device=device, - sample_cortex=cfg.pool_sample_cortex, - gauss_sigma=cfg.pool_gauss_sigma, - ) - - -def segmentation_neighbor_indices(pooler: KNNPoolingLayer | GridPoolingLayer) -> torch.Tensor: - """Return a pooler's ``(k, N_lo)`` neighbour table in tie-break order. - - Entries are input-sample indices; ``N_hi`` (the number of input samples) - marks a neighbour excluded by the pooler (spatial padding or a masked input - sample), and every slot of a masked output sample is excluded. - - * :class:`KNNPoolingLayer`: its padded KNN indices, nearest neighbour first. - * :class:`GridPoolingLayer`: the samples in each pooling window (same - padding, stride and masks as the pooler), ordered by distance from the - window centre and then in row-major window order. - """ - if isinstance(pooler, KNNPoolingLayer): - return pooler.knn_indices_pad_token - if not isinstance(pooler, GridPoolingLayer): - raise TypeError(f"Modal pooling needs a KNN or grid pooler, got {type(pooler).__name__}") - - num_inputs = len(pooler.in_coords) - device = pooler.input_mask.device - # Pool sample indices (float64 is exact for any realistic count) with the pooler's own padding; - # -1 marks padding and masked samples. - grid = pooler.in_coords.as_grid(torch.arange(num_inputs, device=device, dtype=torch.float64)[None, None]) - grid = pooler._pad(torch.where(pooler.input_mask, grid, -1.0), -1.0) - side, stride = pooler.kernel_size, pooler.stride - windows = grid[0, 0].unfold(0, side, stride).unfold(1, side, stride) # (H_lo, W_lo, side, side) - windows = windows.flatten(-2).permute(2, 0, 1) # (k, H_lo, W_lo) - axis = torch.arange(side, device=device, dtype=torch.float64) - (side - 1) / 2 - radius = (axis[:, None].square() + axis[None, :].square()).flatten() - windows = windows[torch.sort(radius, stable=True).indices] - windows = torch.where(pooler.output_mask[0], windows, -1.0) - if not pooler.polar: - # Invert the upright Cartesian layout produced by ``as_grid``, as GridPoolingLayer.forward does. - windows = windows.flip(-2).transpose(-2, -1) - indices = windows.flatten(-2).long() - return torch.where(indices < 0, num_inputs, indices) - - -def is_segmentation_output(name: str) -> bool: - """Whether a sensor output holds segmentation labels, which pool with ``pool_int_mode``, the modal label - (:func:`pool_segmentation_buffer`). - - Uses the key name (``"segmentation" in name``) rather than the dtype: every Isaac Lab segmentation variant - (``semantic_segmentation``, ``instance_segmentation_fast``, ``instance_id_segmentation_fast``) holds labels that - averaging would corrupt, whether stored as integer IDs or colorized RGBA. - """ - return "segmentation" in name - - -def pool_hwc_buffer( - pooler: KNNPoolingLayer | GridPoolingLayer, buf: torch.Tensor, visible: torch.Tensor | None = None -) -> torch.Tensor: - """Pool a ``(B, N_hi, 1, C)`` sensor buffer into ``(B, N_lo, 1, C)``. - - Both poolers expect ``(B, C, N)`` inputs, so we permute in and out. - - Args: - pooler: The retinal pooler. - buf: ``(B, N_hi, 1, C)`` floating-point samples. - visible: ``(B, N_hi)`` photoreceptors the physical camera sees, or None for all. The others are left out of - each pooled sample, as the pooler leaves out photoreceptors outside the retina, and a pooled sample that - sees none is zero. - """ - B, N_hi, one, C = buf.shape - assert one == 1, f"expected (B, N, 1, C) buffer, got {buf.shape}" - x = buf[:, :, 0, :].transpose(1, 2).contiguous() # (B, C, N_hi) - if visible is None: - y = pooler(x) # (B, C, N_lo) - else: - seen = visible[:, None, :] - weight = seen.to(x.dtype) - if pooler.mode == "sum": - y = pooler(x * weight) - else: - # Pool the samples with their visibility in one call: a weighted mean over the visible photoreceptors is - # the pooled masked samples over the pooled mask, and a max over them ignores -inf. - masked = torch.where(seen, x, -torch.inf) if pooler.mode == "max" else x * weight - pooled = pooler(torch.cat((masked, weight), dim=1)) - values, coverage = pooled[:, :C], pooled[:, C:] - if pooler.mode != "max": - values = values / coverage.clamp_min(torch.finfo(x.dtype).tiny) - y = torch.where(coverage > 0, values, 0) - return y.transpose(1, 2).unsqueeze(2).contiguous() # (B, N_lo, 1, C) - - -def pool_segmentation_buffer( - neighbors: torch.Tensor, buf: torch.Tensor, visible: torch.Tensor | None = None -) -> torch.Tensor: - """Pool a ``(B, N_hi, 1, C)`` segmentation buffer into ``(B, N_lo, 1, C)`` by majority vote. - - Each output sample takes the most common full channel vector among its - pooling neighbours (so neighbours ``[0, 0, 0]``, ``[0, 0, 0]``, - ``[0, 0, 1]`` give ``[0, 0, 0]``), keeping the buffer's dtype: values are - compared bitwise and copied from an input sample, never converted or mixed. - This holds for integer IDs of any width and for colorized RGBA vectors. - - Ties go to the value whose first occurrence comes earliest in the pooler's - neighbour order (see :func:`segmentation_neighbor_indices`; the nearest - neighbour wins for KNN pooling). Neighbours the pooler excludes, or the - physical camera does not see, do not vote, and outputs without any valid - neighbour are zero, as in fovi. - - Args: - neighbors: ``(k, N_lo)`` neighbour table from :func:`segmentation_neighbor_indices`, on the buffer's device. - buf: ``(B, N_hi, 1, C)`` buffer of any dtype. - visible: ``(B, N_hi)`` photoreceptors the physical camera sees, or None for all. - - Returns: - ``(B, N_lo, 1, C)`` pooled buffer with the dtype of ``buf``. - """ - B, N_hi, one, C = buf.shape - assert one == 1, f"expected (B, N, 1, C) buffer, got {buf.shape}" - indices = neighbors # (k, N_lo), N_hi = excluded - k, N_lo = indices.shape - values = buf[:, :, 0, :].contiguous() # (B, N_hi, C) - # Equality keys, padded with one never-voting sample at index N_hi. - keys = torch.nn.functional.pad(_equality_keys(values), (0, 1)) # (B, N_hi + 1) - valid = (indices != N_hi).T # (N_lo, k) - table = indices.T # (N_lo, k) - chunk_size = max(1, _MODAL_CHUNK_ELEMENTS // max(1, N_lo * k)) - # Visibility, padded like the keys; the never-voting sample is unseen. - seen = None if visible is None else torch.nn.functional.pad(visible, (0, 1)).split(chunk_size) - slots = [] - for index, chunk in enumerate(keys.split(chunk_size)): - chunk_valid = valid if seen is None else valid & seen[index][:, table] # (N_lo, k) or (b, N_lo, k) - slots.append(_modal_slot(chunk[:, table], chunk_valid)) - slot = torch.cat(slots) # (B, N_lo); k where no neighbour is valid - has_value = slot < k - # (B, N_lo) input sample index; outputs without a value read sample 0 and are zeroed below. - source = table.gather(1, slot.clamp(max=k - 1).T).T.clamp(max=N_hi - 1) - pooled = values.gather(1, source.unsqueeze(-1).expand(-1, -1, C)) - pooled = torch.where(has_value.unsqueeze(-1), pooled, torch.zeros((), dtype=buf.dtype, device=buf.device)) - return pooled.unsqueeze(2) - - -def _equality_keys(values: torch.Tensor) -> torch.Tensor: - """Map ``(B, N, C)`` channel vectors to ``(B, N)`` int64 keys that are equal iff the vectors are bitwise equal. - - Vectors of at most 8 bytes are packed into the key directly; wider vectors - fall back to dense ranks from :func:`torch.unique`. - """ - B, N, _ = values.shape - raw = values.view(torch.uint8) if values.dtype != torch.bool else values.to(torch.uint8) - num_bytes = raw.shape[-1] - if num_bytes <= 8: - return torch.nn.functional.pad(raw, (0, 8 - num_bytes)).view(torch.int64).reshape(B, N) - return torch.unique(raw.reshape(B * N, num_bytes), dim=0, return_inverse=True)[1].reshape(B, N) - - -def _modal_slot(keys: torch.Tensor, valid: torch.Tensor) -> torch.Tensor: - """Pick the modal neighbour slot of ``(B, N_lo, k)`` keys; ``valid`` is the ``(N_lo, k)`` or ``(B, N_lo, k)`` - voting mask. - - Returns the ``(B, N_lo)`` earliest slot holding the most common valid key, - or ``k`` where no slot is valid. - """ - k = keys.shape[-1] - sorted_keys, order = torch.sort(keys, dim=-1) - # Label equal-key runs in sorted order, then count valid votes and find the earliest valid slot per run. - new_run = torch.ones_like(sorted_keys, dtype=torch.bool) - new_run[..., 1:] = sorted_keys[..., 1:] != sorted_keys[..., :-1] - run = new_run.cumsum(-1) - 1 - valid_sorted = valid.expand_as(order).gather(-1, order) - votes = torch.zeros_like(run).scatter_add_(-1, run, valid_sorted.long()) - earliest = torch.full_like(run, k).scatter_reduce_(-1, run, torch.where(valid_sorted, order, k), "amin") - # Most votes first, then earliest slot; runs without valid votes score zero. - best = (votes * (k + 1) + (k - earliest)).argmax(-1, keepdim=True) - return earliest.gather(-1, best).squeeze(-1) diff --git a/source/isaaclab_fovi/test/test_active_gaze.py b/source/isaaclab_fovi/test/test_active_gaze.py index 001403d620f1..df6b8c4c88fa 100644 --- a/source/isaaclab_fovi/test/test_active_gaze.py +++ b/source/isaaclab_fovi/test/test_active_gaze.py @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""The gaze action, its observation and its teacher, without a simulator.""" +"""The gaze action, its observation, without a simulator.""" import math from types import SimpleNamespace @@ -11,38 +11,14 @@ import pytest import torch import warp as wp -from fovi.sensing.projection import CameraModel -from isaaclab_fovi.mdp.gaze import ( - GazeAction, - gaze_reset_kernel, - gaze_state, - gaze_step_kernel, - teacher_block_dim, - teacher_labels_kernel, -) +from isaaclab_fovi.mdp.gaze import GazeAction, gaze_state, gaze_step_kernel from isaaclab_fovi.mdp.gaze_cfg import GazeActionCfg -from isaaclab_fovi.sensors.gaze_kernels import camera_params, torch_stream +from isaaclab_fovi.sensors.gaze_kernels import torch_stream -from isaaclab.test.utils import DeviceScope, test_devices -from isaaclab.utils.math import quat_apply, quat_apply_inverse from isaaclab.utils.warp import ProxyArray pytestmark = pytest.mark.kitless -DEVICES = test_devices(DeviceScope.CPU_AND_DEFAULT_CUDA) - - -def angles_to_direction(angles_deg: torch.Tensor) -> torch.Tensor: - """Camera-frame unit directions of gaze angles [deg], shape (..., 2) to (..., 3): up and left are positive.""" - tilt, pan = angles_deg.deg2rad().unbind(-1) - return torch.stack((-tilt.cos() * pan.sin(), -tilt.sin(), tilt.cos() * pan.cos()), -1) - - -def direction_to_angles(direction: torch.Tensor) -> torch.Tensor: - """Gaze angles [deg] of camera-frame directions, shape (..., 3) to (..., 2): the reference for the kernels.""" - x, y, z = direction.unbind(-1) - return torch.stack((-torch.atan2(y, torch.sqrt(x.square() + z.square())), -torch.atan2(x, z)), -1).rad2deg() - def clamp_gaze(gaze: torch.Tensor, limit: float) -> torch.Tensor: """Gazes scaled back onto the circle of radius ``limit`` when they leave it: the reference for the step kernel.""" @@ -79,131 +55,9 @@ def test_gaze_step_kernel_matches_the_torch_update(): torch.testing.assert_close(angles, expected * radius, atol=1e-5, rtol=1e-6) -def mount_frame(rotation_deg: float) -> torch.Tensor: - """The camera's ``_mask_frame`` for an image rolled by ``rotation_deg``: upright gaze frame to physical frame.""" - angle = torch.tensor(rotation_deg).deg2rad() - c, s = float(angle.cos()), float(angle.sin()) - return torch.tensor([[c, s, 0.0], [-s, c, 0.0], [0.0, 0.0, 1.0]]) - - -# The kernel's block size depends on the device; the image roll is rotated across the two. -TEACHER_CASES = [("cpu", 0.0)] + [(device, 35.0) for device in DEVICES if device != "cpu"] - - -@pytest.mark.parametrize(("device", "rotation_deg"), TEACHER_CASES) -def test_teacher_labels_kernel_matches_the_torch_labels(device, rotation_deg): - camera = CameraModel("pinhole", (480, 640), (400.0, 400.0, 319.5, 239.5), distortion=(-0.1, 0.02, 0.0, 0.0)) - field_radius, step, limit = 30.0, 0.1, 1.0 - frame = mount_frame(rotation_deg) - generator = torch.Generator().manual_seed(5) - count = 4099 - # Each camera has its own mount, as on a moving head. - mount = torch.nn.functional.normalize(torch.randn(count, 4, generator=generator), dim=-1) - positions = torch.randn(count, 3, generator=generator) - lateral = torch.randn(count, 2, generator=generator) * 0.6 - local = torch.cat((lateral, torch.rand(count, 1, generator=generator) + 0.2), -1) - targets = positions + quat_apply(mount, local) - orientations = torch.nn.functional.normalize(torch.randn(count, 4, generator=generator), dim=-1) - offset = torch.tensor([0.0, 0.0, 0.3]) - gaze = (torch.rand(count, 2, generator=generator) * 2 - 1) * 0.7 - - # The torch path the kernel replaces: the point fixed to each target, the teacher, then the labels and logs. - points = targets + quat_apply(orientations, offset.expand(count, -1)) - direction = torch.nn.functional.normalize(quat_apply_inverse(mount, points - positions), dim=-1) - - def teachable(direction: torch.Tensor) -> torch.Tensor: - # Gazes are measured in the upright image frame, which the frame carries into the physical camera's. - desired = direction_to_angles(direction @ frame) / field_radius - return camera.project(direction)[1] & (desired.norm(dim=-1) <= limit) - - upright = direction @ frame - desired = direction_to_angles(upright) / field_radius - valid = teachable(direction) - # A target within 1e-4 rad of the image edge, the lens's widest angle or the gaze limit may land on either side - # in float32; every other target must agree exactly. - nudges = 1e-4 * torch.cat((torch.eye(3), -torch.eye(3))) - decisive = torch.stack( - [teachable(torch.nn.functional.normalize(direction + nudge, dim=-1)) == valid for nudge in nudges] - ).all(0) - action = torch.where(valid[:, None], ((desired - gaze) / step).clamp(-1, 1), 0.0) - looking = angles_to_direction(gaze * field_radius) - error = torch.atan2(torch.cross(looking, upright, dim=-1).norm(dim=-1), (looking * upright).sum(-1)).rad2deg() - expected = torch.cat((action, valid[:, None].float()), dim=-1) - - labels = torch.empty(count, 3, device=device) - log = torch.full((2,), float("nan"), device=device) - block = teacher_block_dim(device) - with torch_stream(device): - wp.launch( - teacher_labels_kernel, - dim=(1, block), - inputs=[ - wp.from_torch(targets.to(device), dtype=wp.vec3f), - wp.from_torch(orientations.to(device), dtype=wp.quatf), - wp.vec3f(*offset.tolist()), - wp.from_torch(positions.to(device), dtype=wp.vec3f), - wp.from_torch(mount.to(device), dtype=wp.quatf), - wp.from_torch((gaze * field_radius).to(device), dtype=wp.vec2f), - wp.mat33f(*frame.flatten().tolist()), - field_radius, - step, - limit, - camera_params(camera), - ], - outputs=[wp.from_torch(labels), wp.from_torch(log)], - block_dim=block, - ) - labels, log = labels.cpu(), log.cpu() - assert valid[decisive].any() and (~valid[decisive]).any() and decisive.float().mean() > 0.99 - torch.testing.assert_close(labels[decisive], expected[decisive], atol=1e-4, rtol=0) - labelled = labels[:, 2] > 0.5 - assert float(log[1]) == pytest.approx(float(labelled.float().mean())) - assert float(log[0]) == pytest.approx(float(error[labelled].mean()), rel=1e-4) - - -def test_teacher_gaze_fixates_the_target_through_a_rolled_mount(): - """Following a teacher label puts the fixation, which reaches the physical camera at frame * gaze * z, on the - target.""" - rotation_deg = 120.0 - camera = CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5)) - field_radius, step = 40.0, 10.0 - frame = mount_frame(rotation_deg) - direction = torch.nn.functional.normalize(torch.tensor([[0.25, -0.15, 1.0], [-0.3, 0.2, 1.0]]), dim=-1) - count = len(direction) - identity = torch.tensor([[0.0, 0.0, 0.0, 1.0]]).repeat(count, 1) - labels, log = torch.empty(count, 3), torch.empty(2) - with torch_stream("cpu"): - wp.launch( - teacher_labels_kernel, - dim=(1, 1), - inputs=[ - wp.from_torch(direction, dtype=wp.vec3f), - wp.from_torch(identity, dtype=wp.quatf), - wp.vec3f(0.0, 0.0, 0.0), - wp.zeros(count, dtype=wp.vec3f), - wp.from_torch(identity, dtype=wp.quatf), - wp.zeros(count, dtype=wp.vec2f), - wp.mat33f(*frame.flatten().tolist()), - field_radius, - step, - 1.0, - camera_params(camera), - ], - outputs=[wp.from_torch(labels), wp.from_torch(log)], - block_dim=1, - ) - assert (labels[:, 2] == 1).all() - gaze = labels[:, :2] * step - fixation = angles_to_direction(gaze * field_radius) @ frame.T - torch.testing.assert_close(fixation, direction, atol=1e-5, rtol=0) - # The error is the gaze's angle from the target before the step: the gaze starts on the optical axis. - torch.testing.assert_close(log[0], direction[:, 2].acos().rad2deg().mean(), atol=1e-3, rtol=0) - - -def test_gaze_config_rejects_bounds_that_divide_by_zero_and_unknown_mounts(): +def test_gaze_config_rejects_invalid_bounds(): GazeActionCfg(asset_name="camera").validate_config() - GazeActionCfg(asset_name="camera", mount="tracked").validate_config() - for field, value in (("step_size", 0.0), ("step_size", float("nan")), ("gaze_limit", math.inf), ("mount", "head")): + for field, value in (("step_size", 0.0), ("step_size", float("nan")), ("gaze_limit", math.inf)): cfg = GazeActionCfg(asset_name="camera") setattr(cfg, field, value) with pytest.raises(ValueError, match=field): @@ -224,22 +78,22 @@ def test_process_actions_moves_the_gaze_by_the_supplied_actions(): term._asset = camera term.field_radius_deg = 20.0 term._state = ProxyArray(wp.zeros(num_envs, dtype=wp.vec4f, device="cpu")) - term._velocity = term._state.torch[:, 2:] + term._all_ids = wp.array(list(range(num_envs)), dtype=wp.int32, device="cpu") term._step_launch = term._raw = None manager_actions = torch.zeros(num_envs, 5) manager_actions[:, 2:4] = torch.tensor([[1.0, 0.0], [0.0, -1.0], [0.5, 0.5], [3.0, 0.0]]) term.process_actions(manager_actions[:, 2:4]) expected = clamp_gaze(manager_actions[:, 2:4].clamp(-1, 1) * 0.1, 1.0) - torch.testing.assert_close(term.gaze, expected) - torch.testing.assert_close(term.velocity, expected / 0.5) + torch.testing.assert_close(term.processed_actions, expected) + torch.testing.assert_close(term.state[:, 2:], expected / 0.5) torch.testing.assert_close(angles.torch, expected * 20.0) assert set_angles[-1] is angles.torch assert term.raw_actions.data_ptr() == manager_actions[:, 2:4].data_ptr() supplied = torch.tensor([[-1.0, 0.0]]).repeat(num_envs, 1) term.process_actions(supplied) - torch.testing.assert_close(term.gaze, clamp_gaze(expected - 0.1 * supplied.abs(), 1.0)) + torch.testing.assert_close(term.processed_actions, clamp_gaze(expected - 0.1 * supplied.abs(), 1.0)) assert term.raw_actions is supplied torch.testing.assert_close( gaze_state(SimpleNamespace(action_manager=SimpleNamespace(get_term=lambda name: term))), term.state @@ -248,47 +102,11 @@ def test_process_actions_moves_the_gaze_by_the_supplied_actions(): # A gaze set on the camera directly is where the next step starts. angles.torch.copy_(torch.tensor([[10.0, 0.0]]).repeat(num_envs, 1)) term.process_actions(torch.zeros(num_envs, 2)) - torch.testing.assert_close(term.gaze, torch.tensor([[0.5, 0.0]]).repeat(num_envs, 1)) - - -@pytest.mark.parametrize(("ids", "random_start"), [(None, False), ([3, 0, 7], True)]) -def test_gaze_reset_kernel_matches_the_torch_reset(ids, random_start): - count, radius = 10, 23.6 - generator = torch.Generator().manual_seed(6) - angles, state = (torch.randn(count, size, generator=generator) for size in (2, 4)) - selected = torch.arange(count) if ids is None else torch.tensor(ids) - start = torch.randn(len(selected), 2, generator=generator) if random_start else torch.zeros(len(selected), 2) - expected_angles, expected_state = angles.clone(), state.clone() - # The torch reset the kernel replaces: the gaze at its start, at rest. - expected_state[selected] = torch.cat((start, torch.zeros_like(start)), dim=-1) - expected_angles[selected] = start * radius - - with torch_stream("cpu"): - wp.launch( - gaze_reset_kernel, - dim=len(selected), - inputs=[ - wp.from_torch(selected.to(torch.int32)) if ids is not None else wp.zeros(1, dtype=wp.int32), - int(ids is not None), - wp.from_torch(start, dtype=wp.vec2f) if random_start else wp.zeros(1, dtype=wp.vec2f), - int(random_start), - radius, - ], - outputs=[wp.from_torch(angles, dtype=wp.vec2f), wp.from_torch(state, dtype=wp.vec4f)], - ) - torch.testing.assert_close(angles, expected_angles, atol=0, rtol=0) - torch.testing.assert_close(state, expected_state, atol=0, rtol=0) - - -def test_fixed_mount_teacher_rejects_only_turns_after_capture(): - """The fixed-mount teacher aims from the captured mount while the camera has turned its mount as many times as - when the term captured it, and refuses once a later turn makes the capture stale.""" - term = object.__new__(GazeAction) - term.tracked_mount = False - term._mount_turns = 2 - term._fixed_mount = "captured" - term._asset = SimpleNamespace(mount_turns=2) - assert GazeAction.teacher_mounts(term) == "captured" - term._asset.mount_turns = 3 - with pytest.raises(RuntimeError, match="mount='tracked'"): - GazeAction.teacher_mounts(term) + torch.testing.assert_close(term.processed_actions, torch.tensor([[0.5, 0.0]]).repeat(num_envs, 1)) + + previous = term.state.clone() + term.reset([3, 1]) + torch.testing.assert_close(term.state[[0, 2]], previous[[0, 2]]) + assert not term.state[[1, 3]].any() and not angles.torch[[1, 3]].any() + term.reset() + assert not term.state.any() and not angles.torch.any() diff --git a/source/isaaclab_fovi/test/test_camera_cfg.py b/source/isaaclab_fovi/test/test_camera_cfg.py index aa783bcb2330..a3c1e0d712ef 100644 --- a/source/isaaclab_fovi/test/test_camera_cfg.py +++ b/source/isaaclab_fovi/test/test_camera_cfg.py @@ -14,7 +14,7 @@ import pytest import torch from isaaclab_fovi.sensors import FoveatedCamera, FoveatedCameraCfg -from isaaclab_fovi.sensors.calibrated_geometry import resolve_camera_model, sampling_geometry +from isaaclab_fovi.sensors.calibrated_geometry import resolve_camera_model from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera from isaaclab_newton.renderers import NewtonWarpRendererCfg @@ -48,24 +48,22 @@ def ray_angle_deg(camera, pixel: tuple[float, float]) -> float: def test_defaults_are_grid_sampling_at_the_human_cmf_estimate() -> None: cfg = FoveatedCameraCfg() - assert cfg.foveated_style == "warped_cartesian_as_grid" assert cfg.cmf_a_deg == 0.591 assert cfg.camera_model is None def test_pinhole_spawn_describes_an_ideal_pinhole_across_its_short_side() -> None: spawn = PinholeCameraCfg() - fov, cmf_a = sampling_geometry(make_cfg(spawn=spawn)) + camera = resolve_camera_model(make_cfg(spawn=spawn)) + fov = camera.field_of_view("short") expected = math.degrees(2 * math.atan(spawn.horizontal_aperture / (2 * spawn.focal_length))) assert fov == pytest.approx(expected, rel=1e-6) - assert cmf_a == 0.591 - camera = resolve_camera_model(make_cfg(spawn=spawn)) assert camera.model == "pinhole" assert camera.distortion == () # Without a vertical aperture the image is square; with one, the retina spans the short (vertical) side. assert camera.image_size[0] == camera.image_size[1] spawn = PinholeCameraCfg(focal_length=10.0, horizontal_aperture=20.0, vertical_aperture=10.0) - fov, _ = sampling_geometry(make_cfg(spawn=spawn)) + fov = resolve_camera_model(make_cfg(spawn=spawn)).field_of_view("short") assert fov == pytest.approx(math.degrees(2 * math.atan(0.5)), rel=1e-6) @@ -96,7 +94,7 @@ def test_zero_coefficient_opencv_fisheye_is_an_ideal_equidistant_fisheye() -> No # Equidistant: the angle off the optical axis grows linearly with image radius. for radius in (50.0, 150.0, 310.0): assert ray_angle_deg(camera, (319.5 + radius, 319.5)) == pytest.approx(math.degrees(radius / focal), rel=1e-6) - fov, _ = sampling_geometry(cfg) + fov = camera.field_of_view("short") assert fov == pytest.approx(math.degrees(640 / focal), rel=1e-6) @@ -120,25 +118,10 @@ def test_cameras_fovi_cannot_model_are_rejected() -> None: resolve_camera_model(make_cfg(spawn=spawn)) -def test_config_validates_pooling_and_shell_settings() -> None: - assert make_cfg(pool_mode="gaussian").pool_mode == "gaussian" - with pytest.raises(ValueError, match="pool_mode must be one of"): - make_cfg(pool_mode="median") - # Segmentation pools only by modal label: other modes would mix labels into ones no object has. - assert make_cfg().pool_int_mode == "modal" - with pytest.raises(ValueError, match="pool_int_mode must be one of"): - make_cfg(pool_int_mode="avg") - # Square shells need a square or circular footprint and a grid style. - grid = dict(foveated_style="warped_cartesian_as_grid", radius_norm=math.inf) - assert make_cfg(**grid, fov_type="square").fov_type == "square" - with pytest.raises(ValueError, match="wang"): - make_cfg(**grid, fov_type="wang") - for kwargs in ( - dict(radius_norm=1.0, foveated_style="warped_cartesian_as_grid"), - dict(radius_norm=math.inf, foveated_style="isotropic"), - ): - with pytest.raises(ValueError, match="radius_norm"): - make_cfg(**kwargs) +@pytest.mark.parametrize("option", [{"pool_enabled": True}, {"foveated_style": "isotropic"}]) +def test_camera_config_rejects_deferred_sampling_options(option) -> None: + with pytest.raises(TypeError, match=next(iter(option))): + make_cfg(**option) @dataclass @@ -151,7 +134,9 @@ class CameraSelection: renderer_cfg: RendererSelection -def test_renderer_selects_the_implementation() -> None: +def test_renderer_selects_the_implementation(monkeypatch) -> None: + monkeypatch.setattr(Camera, "__del__", lambda self: None) + def dispatch(cfg) -> type: return type(FoveatedCamera.__new__(FoveatedCamera, cfg)) @@ -170,7 +155,12 @@ def dispatch(cfg) -> type: def test_cameras_that_turn_their_pose_by_the_gaze_need_per_frame_pose_updates(monkeypatch) -> None: """Newton and OVRTX turn the rendered pose by the gaze in each pose update, so without pose updates the renderer would never see the gaze; Isaac RTX writes the gaze into its camera prims instead.""" - monkeypatch.setattr(Camera, "__init__", lambda self, cfg: setattr(self, "stage", None)) + + def construct(self, cfg): + self.cfg = cfg + self.stage = None + + monkeypatch.setattr(Camera, "__init__", construct) monkeypatch.setattr(Camera, "__del__", lambda self: None) monkeypatch.setattr(FoveatedRTXCamera, "_prepare_projection", lambda self: None) monkeypatch.setattr(sim_utils, "find_matching_prims", lambda *args: []) @@ -180,14 +170,16 @@ def cfg(renderer_cfg) -> FoveatedCameraCfg: with pytest.raises(ValueError, match="update_latest_camera_pose=True"): FoveatedCamera(cfg(NewtonWarpRendererCfg())) - assert not FoveatedCamera(cfg(IsaacRtxRendererCfg())).turns_pose_by_gaze + assert isinstance(FoveatedCamera(cfg(IsaacRtxRendererCfg())), FoveatedRTXCamera) IMPORT_BOUNDARY = """ import importlib, importlib.abc, sys # Kit, fovi's research modules and training frameworks must not load with the sensor package. -BLOCKED = ("isaacsim", "omni", "fovi.models", "fovi.training", "ffcv", "wandb", "lightning", "timm") +BLOCKED = ( + "isaacsim", "omni", "fovi.arch", "fovi.models", "fovi.training", "rsl_rl", "ffcv", "wandb", "lightning", "timm", +) class Block(importlib.abc.MetaPathFinder): @@ -197,7 +189,11 @@ def find_spec(self, fullname, path=None, target=None): sys.meta_path.insert(0, Block()) -for module in ("isaaclab_fovi", "isaaclab_fovi.sensors", "isaaclab_fovi.sensors.pooling", "isaaclab_fovi.mdp"): +for module in ( + "isaaclab_fovi.sensors.foveated_newton_camera", + "isaaclab_fovi.sensors.foveated_rtx_camera", + "isaaclab_fovi.mdp.gaze", +): importlib.import_module(module) print("import boundary passed") """ diff --git a/source/isaaclab_fovi/test/test_camera_gaze.py b/source/isaaclab_fovi/test/test_camera_gaze.py index ae6ac139a472..a1110ae5cc49 100644 --- a/source/isaaclab_fovi/test/test_camera_gaze.py +++ b/source/isaaclab_fovi/test/test_camera_gaze.py @@ -15,18 +15,17 @@ from fovi.sensing.coords import SamplingCoords from fovi.sensing.projection import CameraModel, angular_directions, gaze_rotation from fovi.sensing.retina import RetinalTransform -from isaaclab_fovi.sensors.calibrated_geometry import retinal_directions, sampling_geometry +from isaaclab_fovi.sensors import FoveatedCameraCfg from isaaclab_fovi.sensors.foveated_camera import FoveatedCamera from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera from isaaclab_fovi.sensors.gaze_kernels import ( + CameraParams, camera_params, - project_directions, - publish_grid_kernel, + project_direction, set_gaze_kernel, torch_stream, ) -from isaaclab_fovi.sensors.native_grid import GRID_STYLE, grid_sample_indices, native_grid_directions -from isaaclab_fovi.sensors.pooling import build_lowres_coords +from isaaclab_fovi.sensors.native_grid import native_grid_directions from isaaclab.sensors.camera.camera import Camera from isaaclab.sensors.camera.camera_data import CameraData @@ -37,7 +36,6 @@ matrix_from_quat, quat_apply, quat_from_matrix, - quat_mul, ) from isaaclab.utils.warp import ProxyArray @@ -66,31 +64,32 @@ def camera_config() -> SimpleNamespace: retinal_window_reference_side="long", retinal_window_fraction=0.75, foveated_res=12, - foveated_style="isotropic", - fov_type="circular", - radius_norm=2.0, - isotropic_plotting_type="v1like", + mask_to_sensor_fov=True, image_rotation_deg=0.0, ) -def test_rendering_and_software_sampling_share_window_and_nodes() -> None: - cfg = camera_config() - fov, a = sampling_geometry(cfg) - camera = CameraModel(**cfg.camera_model) - assert fov == pytest.approx(camera.field_of_view("long", 0.75)) - assert a == 2.5 - coords, _ = build_lowres_coords(cfg, "cpu") - retina = RetinalTransform( - fov=fov, - cmf_a=a, +def test_camera_sampling_matches_software_sampling(monkeypatch) -> None: + data = camera_config() + model = CameraModel(**data.camera_model) + cfg = FoveatedCameraCfg(prim_path="/World/Camera", **vars(data)) + monkeypatch.setattr(Camera, "__init__", lambda self, cfg: setattr(self, "cfg", cfg)) + monkeypatch.setattr(Camera, "__del__", lambda self: None) + camera = FoveatedCamera.__new__(FoveatedCamera, cfg) + FoveatedCamera.__init__(camera, cfg) + software = RetinalTransform( + fov=model.field_of_view("long", 0.75), + cmf_a=2.5, resolution=12, device="cpu", + style="warped_cartesian_as_grid", field_geometry="spherical", - camera_model=camera, + camera_model=model, gaze_convention="pan_tilt", ) - torch.testing.assert_close(coords.cartesian, retina.sampler.coords.cartesian) + torch.testing.assert_close(camera.sampling_coords.cartesian, software.sampler.coords.cartesian) + assert (camera.cfg.width, camera.cfg.height) == (12, 12) + assert (cfg.width, cfg.height) == (1, 1) class GazeHarness(FoveatedCamera): @@ -106,15 +105,20 @@ def __init__(self, count: int = 2, device: str = "cpu", **overrides) -> None: self._view = SimpleNamespace(count=count) self._device = device self._ALL_INDICES = wp.array(list(range(count)), dtype=wp.int32, device=device) - self._sampling_coords, _ = build_lowres_coords(self.cfg, device) - self._sampling_coords_highres = None + self._camera_model = CameraModel(**self.cfg.camera_model) + fov = self._camera_model.field_of_view(self.cfg.retinal_window_reference_side, self.cfg.retinal_window_fraction) + self._sampling_coords = SamplingCoords( + fov, self.cfg.cmf_a_deg, self.cfg.foveated_res, style="warped_cartesian_as_grid", field_geometry="spherical" + ) + self._retinal_rays = native_grid_directions( + self._sampling_coords, image_rotation_deg=self.cfg.image_rotation_deg + ) # The camera's own pose buffers, at the identity orientation, with their world-to-ROS conversion. self._data = CameraData() self._data.create_buffers(count, device) self._data.quat_w_world.torch[:, 3] = 1.0 # Isaac RTX's behaviour; Newton and OVRTX turn the pose by the gaze in their pose update. self._gaze_pose_reads_angles = False - self._gaze_written = False self._initialize_gaze() @property @@ -151,11 +155,11 @@ def set_local_poses(self, *, orientations) -> None: class RtxGazeHarness(GazeHarness, FoveatedRTXCamera): """The Isaac RTX camera's prim-writing gaze on stand-in camera prims.""" - def __init__(self, mount_opengl: torch.Tensor) -> None: - super().__init__(count=len(mount_opengl)) + def __init__(self, mount_opengl: torch.Tensor, device="cpu") -> None: + super().__init__(count=len(mount_opengl), device=device) self._view = PrimView(mount_opengl) - self._base_local_orientation = matrix_from_quat(mount_opengl) - self.mount_turns = 0 + self._base_local_orientation = mount_opengl.clone() + self._gaze_basis_quat = quat_from_matrix(self._gaze_basis) MOUNT = torch.nn.functional.normalize(torch.tensor([[0.2, -0.4, 0.1, 0.9], [0.0, 0.3, -0.5, 0.6]]), dim=-1) @@ -167,7 +171,7 @@ def write_view(camera, eyes, targets, env_ids=None): looks at it; the others keep their poses.""" rotation = create_rotation_matrix_from_view(eyes, targets, "Z") looks = ~torch.isnan(rotation).any(dim=(-2, -1)) - ids = camera._env_indices(env_ids)[looks] + ids = (torch.arange(camera._view.count) if env_ids is None else torch.as_tensor(env_ids))[looks] camera._view.local[ids] = quat_from_matrix(rotation[looks]) @@ -184,23 +188,6 @@ def gaze_direction(angles_deg: torch.Tensor) -> torch.Tensor: return torch.stack((-tilt.cos() * pan.sin(), -tilt.sin(), tilt.cos() * pan.cos()), -1) -def angles_toward(camera: CameraModel, pixel: tuple[float, float]) -> torch.Tensor: - """(tilt, pan) gaze angles [deg] that look along the ray through a source pixel (x, y).""" - direction, _ = camera.unproject(torch.tensor([pixel])) - x, y, z = direction.unbind(-1) - return torch.stack((-torch.atan2(y, torch.sqrt(x * x + z * z)), -torch.atan2(x, z)), -1).rad2deg() - - -def test_sensor_mask_keeps_what_the_camera_sees_at_an_edge_gaze() -> None: - """Looking just past an image edge keeps the part of the retina the camera still sees; looking away keeps none.""" - camera = GazeHarness(count=2) - edge = angles_toward(camera._camera_model, (120.5, 39.5)) - camera.set_gaze_angles(torch.cat((edge, torch.tensor([[0.0, 180.0]])))) - valid = camera._gaze_validity() - assert valid[0].any() and not valid[0].all() - assert not valid[1].any() - - @pytest.mark.parametrize("device", CUDA) @pytest.mark.parametrize( "mode, autocast", @@ -254,65 +241,54 @@ def test_gaze_preserves_camera_rotation_with_tf32(device: str, autocast: bool, m assert torch.get_float32_matmul_precision() == "high" -def test_sensor_mask_checks_the_rendered_rays_of_a_rolled_mount() -> None: - """The mask sees exactly the rays the turned camera renders, found here through the camera pose instead.""" - rotation_deg = 30.0 - # An off-center, wide image makes a roll change which samples the camera sees. - model = CameraModel("pinhole", (80, 120), (60.0, 60.0, 45.0, 30.0)) - camera = GazeHarness(camera_model=asdict(model), image_rotation_deg=rotation_deg) - camera.set_gaze_angles(torch.tensor([[6.0, -11.0], [-9.0, 17.0]])) +@pytest.mark.parametrize("model_name", ["distorted pinhole", "fisheye with image circle"]) +def test_camera_publishes_only_visible_samples_in_updated_rows(model_name): + model = KERNEL_CAMERAS[model_name] + camera = GazeHarness( + device=KERNEL_DEVICE, + camera_model=asdict(model), + image_rotation_deg=37.0, + retinal_window_reference_side="short", + retinal_window_fraction=0.7, + ) + coords = camera.sampling_coords + n = coords.resolution + rgba = torch.arange(2 * n * n * 4, device=KERNEL_DEVICE).reshape(2, n, n, 4).to(torch.uint8) + depth = torch.arange(1, 2 * n * n + 1, device=KERNEL_DEVICE, dtype=torch.float32).reshape(2, n, n, 1) + camera._prepare_grid_publish({"rgba": rgba, "rgb": rgba[..., :3], "distance_to_camera": depth}) + outputs = camera._data.output + angles = torch.tensor([[6.0, -11.0], [-9.0, 17.0]], device=KERNEL_DEVICE) + camera.set_gaze_angles(angles) mount = camera.orientation.clone() camera._apply_gaze_pose() - # Rendered rays leave the turned camera along its OpenGL frame; express them in the mount's OpenGL frame. - def opengl(orientation: torch.Tensor) -> torch.Tensor: + def opengl(orientation): return matrix_from_quat(convert_camera_frame_orientation_convention(orientation, "world", "opengl")) - turn = opengl(mount).transpose(-1, -2) @ opengl(camera.orientation) - coords = camera._sampling_coords - rays = retinal_directions(coords.cartesian, coords.fov, rotation_deg) - seen = (turn[:, None] @ rays[None, :, :, None]).squeeze(-1) * torch.tensor([1.0, -1.0, -1.0]) - expected = model.project(seen)[1] - assert expected.any() and (~expected).any() - assert (camera._gaze_validity() == expected).float().mean() > 0.999 - - -def test_only_a_turned_mount_is_recorded(monkeypatch) -> None: - """The fixed-mount teacher reads the live camera position, so only writes that turn a mount count: not a position - move, and not writing back the reported mount (of either quaternion sign), even with a gaze held in the prims.""" - monkeypatch.setattr(Camera, "set_world_poses", write_prims) - monkeypatch.setattr(Camera, "set_world_poses_from_view", write_view) - eyes = torch.zeros(2, 3) - targets = torch.tensor([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0]]) - - def view_twice(camera): - # Looking again from the same eye at the same target leaves the mount where the first view put it. - camera.set_world_poses_from_view(eyes, targets) - camera.mount_turns = 0 - camera.set_world_poses_from_view(eyes, targets) - - def reported(camera, env_ids=None): - return camera.get_world_poses(env_ids, convention="ros")[1] - - def turn_second(camera): - # One degree about the second camera's optical axis. - half = torch.tensor(math.radians(1.0) / 2) - roll = torch.tensor([[0.0, 0.0, 0.0, 1.0], [0.0, 0.0, float(half.sin()), float(half.cos())]]) - camera.set_world_poses(orientations=quat_mul(reported(camera), roll)) - - for move, turned in ( - (lambda camera: camera.set_world_poses(positions=torch.zeros(2, 3)), False), - (lambda camera: camera.set_world_poses(orientations=reported(camera)), False), - (lambda camera: camera.set_world_poses(orientations=-reported(camera, [1]), env_ids=[1]), False), - (turn_second, True), - (lambda camera: camera.set_world_poses_from_view(eyes, eyes), False), - (lambda camera: camera.set_world_poses_from_view(eyes, targets), True), - (view_twice, False), - ): - camera = RtxGazeHarness(MOUNT) - camera.set_gaze_angles(torch.tensor([[6.0, -11.0], [-9.0, 17.0]])) - move(camera) - assert camera.mount_turns == int(turned) + rotation = opengl(mount).transpose(-1, -2) @ opengl(camera.orientation) + # fovi's direction generation in the physical frame, independently of the publication kernel. + ray = angular_directions(coords.cartesian, coords.fov) + x, y, z = ray.unbind(-1) + c, s = math.cos(math.radians(37)), math.sin(math.radians(37)) + gl = torch.stack((c * x + s * y, s * x - c * y, -z), -1) + turned_ray = (gl @ rotation.transpose(-1, -2)) * gl.new_tensor((1.0, -1.0, -1.0)) + keep = model.project(turned_ray)[1] & coords.valid_mask[None] + assert keep.any() and (~keep).any() + + all_rows = wp.ones(2, dtype=wp.bool, device=KERNEL_DEVICE) + camera._publish_grid(all_rows) + for name, values in (("rgba", rgba), ("distance_to_camera", depth)): + canonical = values.reshape(2, n * n, -1) + expected = coords.as_grid(canonical * keep[..., None], sample_dim=1) + torch.testing.assert_close(outputs[name].torch, expected) + assert outputs["rgb"].warp.ptr == outputs["rgba"].warp.ptr + + last = outputs["distance_to_camera"].torch.clone() + depth.add_(1) + camera._publish_grid(wp.array([False, True], dtype=wp.bool, device=KERNEL_DEVICE)) + assert camera._data.output["distance_to_camera"] is outputs["distance_to_camera"] + assert torch.equal(last[0], outputs["distance_to_camera"].torch[0]) + assert not torch.equal(last[1], outputs["distance_to_camera"].torch[1]) def test_gaze_angles_need_one_row_per_camera() -> None: @@ -322,68 +298,12 @@ def test_gaze_angles_need_one_row_per_camera() -> None: assert camera._gaze_angles is None -def test_mount_record_starts_at_the_current_pose() -> None: - """Allocating the gaze before any pose update records the camera's current, ungazed mount, not zeros.""" - camera = GazeHarness() - camera._gaze_pose_reads_angles = True - mount = torch.nn.functional.normalize(torch.tensor([[0.2, -0.4, 0.1, 0.9], [0.0, 0.3, -0.5, 0.6]]), dim=-1) - camera.orientation.copy_(mount) - camera.gaze_angles - expected = convert_camera_frame_orientation_convention(mount, "world", "ros") - torch.testing.assert_close( - matrix_from_quat(camera.ungazed_quat_w_ros()), matrix_from_quat(expected), atol=1e-6, rtol=0 - ) - - -def test_prim_writing_camera_reads_its_mount_before_and_after_a_gaze() -> None: - """Isaac RTX writes the gaze into its prims; its mount reads the same before and after a gaze is set, so a - fixed-mount teacher created after a gaze aims from the real mount.""" - camera = RtxGazeHarness(MOUNT) - # The last pose update read the bare mount. - camera.orientation.copy_(convert_camera_frame_orientation_convention(MOUNT, "opengl", "world")) - expected = matrix_from_quat(convert_camera_frame_orientation_convention(MOUNT, "opengl", "ros")) - torch.testing.assert_close(matrix_from_quat(camera.ungazed_quat_w_ros()), expected, atol=1e-6, rtol=0) - camera.set_gaze_angles(torch.tensor([[6.0, -11.0], [-9.0, 17.0]])) - assert not torch.allclose(matrix_from_quat(camera._view.local), matrix_from_quat(MOUNT), atol=1e-3) - torch.testing.assert_close(matrix_from_quat(camera.ungazed_quat_w_ros()), expected, atol=1e-6, rtol=0) - - -def test_sensor_mask_reuses_its_buffer_and_keeps_rows_that_were_not_updated() -> None: - camera = GazeHarness() - camera.cfg.mask_to_sensor_fov = True - camera.set_gaze_angles(torch.tensor([[0.0, 0.0], [0.0, 0.0]])) - first = camera._gaze_validity() - kept = first[0].clone() - output = {"distance_to_camera": torch.ones(2, len(camera._gaze_rays), 1, 1)} - camera.set_gaze_angles(torch.tensor([[0.0, 180.0], [0.0, 180.0]])) - camera._apply_sensor_fov_mask(output, wp.array([False, True], dtype=wp.bool, device="cpu")) - assert camera._visibility["valid"].torch is first - # The environment that was not updated keeps its samples and its last visibility. - torch.testing.assert_close(first[0], kept) - assert bool(output["distance_to_camera"][0].all()) - assert not output["distance_to_camera"][1].any() - - -def test_pose_update_records_the_mount_before_the_gaze() -> None: - camera = GazeHarness() - mount = torch.nn.functional.normalize(torch.tensor([[0.2, -0.4, 0.1, 0.9], [0.0, 0.3, -0.5, 0.6]]), dim=-1) - camera.orientation.copy_(mount) - camera.set_gaze_angles(torch.tensor([[6.0, -11.0], [-9.0, 17.0]])) - camera._apply_gaze_pose() - expected = convert_camera_frame_orientation_convention(mount, "world", "ros") - torch.testing.assert_close( - matrix_from_quat(camera._mount_quat_ros.torch), matrix_from_quat(expected), atol=1e-6, rtol=0 - ) - assert not torch.allclose(camera.orientation, mount) - - def test_virtual_pose_aims_rays_without_translation_and_preserves_unselected_pose() -> None: camera = GazeHarness() angles = torch.tensor([[6.0, -11.0], [-9.0, 17.0]]) camera.set_gaze_angles(angles) camera._apply_gaze_pose() forward = quat_apply(camera.orientation, torch.tensor([[1.0, 0.0, 0.0]]).expand(2, -1)) - source = CameraModel(**camera.cfg.camera_model) # The world camera frame looks along +X with +Z up; OpenCV looks along +Z with +Y down. directions = gaze_direction(angles) expected = torch.stack((directions[:, 2], -directions[:, 0], -directions[:, 1]), -1) @@ -393,28 +313,12 @@ def test_virtual_pose_aims_rays_without_translation_and_preserves_unselected_pos camera.orientation[0] = torch.tensor([0.0, 0.0, 0.0, 1.0]) camera._apply_gaze_pose([0]) torch.testing.assert_close(camera.orientation[1], untouched) - torch.testing.assert_close( - camera._gaze_validity(), - source.project( - angular_directions(camera._sampling_coords.cartesian, camera._sampling_coords.fov) - @ camera._gaze_rotation.torch.transpose(-1, -2) - )[1], - ) - - -def test_renderer_ray_frame_matches_cv_frame() -> None: - coords = torch.tensor([[0.0, 0.0], [0.3, -0.4], [-1.0, 0.0]]) - rendered = retinal_directions(coords, 120) - cv = angular_directions(coords, 120) - torch.testing.assert_close(rendered, cv * torch.tensor([1, -1, -1])) @pytest.mark.parametrize("device", CUDA) def test_rtx_gaze_pose_writer_is_stable_inside_model_autocast(device: str, tf32_enabled) -> None: - camera = GazeHarness(count=48, device=device) - camera._gaze_basis = camera._gaze_basis.to(device) - camera._base_local_orientation = matrix_from_quat( - torch.tensor([[-0.4625, -0.4940, 0.5341, -0.5067]], device=device).repeat(48, 1) + camera = RtxGazeHarness( + torch.tensor([[-0.4625, -0.4940, 0.5341, -0.5067]], device=device).repeat(48, 1), device=device ) written = [] camera._view = SimpleNamespace( @@ -426,7 +330,6 @@ def test_rtx_gaze_pose_writer_is_stable_inside_model_autocast(device: str, tf32_ for enabled in [False, True]: with torch.autocast(device, dtype=torch.bfloat16, enabled=enabled): camera.set_gaze_angles(angles) - FoveatedRTXCamera._write_gaze_local_pose(camera) assert torch.isfinite(written[1]).all() assert written[1].dtype == torch.float32 torch.testing.assert_close(written[1].norm(dim=-1), torch.ones(48, device=device)) @@ -437,6 +340,7 @@ def test_rtx_world_poses_are_the_mount_so_a_round_trip_keeps_mount_and_gaze(monk """Isaac RTX holds the gaze in its prims; its world poses still report the bare mount, as the other renderers' do, so writing them back (as a viewer navigating the camera does) neither moves the mount nor doubles the gaze.""" monkeypatch.setattr(Camera, "set_world_poses", write_prims) + monkeypatch.setattr(Camera, "set_world_poses_from_view", write_view) camera = RtxGazeHarness(MOUNT) mount = MOUNT camera.set_gaze_angles(torch.tensor([[6.0, -11.0], [-9.0, 17.0]])) @@ -447,11 +351,23 @@ def test_rtx_world_poses_are_the_mount_so_a_round_trip_keeps_mount_and_gaze(monk expected = convert_camera_frame_orientation_convention(mount[1:], "opengl", "ros") torch.testing.assert_close(matrix_from_quat(orientations), matrix_from_quat(expected), atol=1e-6, rtol=0) + camera.set_world_poses(positions=torch.zeros(2, 3)) + torch.testing.assert_close(matrix_from_quat(camera._view.local), matrix_from_quat(gazed), atol=1e-6, rtol=0) _, orientations = camera.get_world_poses(convention="world") camera.set_world_poses(orientations=orientations, convention="world") - torch.testing.assert_close(camera._base_local_orientation, matrix_from_quat(mount), atol=1e-6, rtol=0) + torch.testing.assert_close( + matrix_from_quat(camera._base_local_orientation), matrix_from_quat(mount), atol=1e-6, rtol=0 + ) torch.testing.assert_close(matrix_from_quat(camera._view.local), matrix_from_quat(gazed), atol=1e-6, rtol=0) + eyes = torch.zeros(2, 3) + targets = torch.tensor([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0]]) + camera.set_world_poses_from_view(eyes, targets) + torch.testing.assert_close(matrix_from_quat(camera._view.local[:1]), matrix_from_quat(gazed[:1]), atol=1e-6, rtol=0) + _, pose = camera.get_world_poses(convention="opengl") + expected = create_rotation_matrix_from_view(eyes[1:], targets[1:], "Z") + torch.testing.assert_close(matrix_from_quat(pose[1:]), expected, atol=1e-6, rtol=0) + @pytest.mark.parametrize("device", test_devices(DeviceScope.DEFAULT_CUDA)) def test_gaze_kernels_preserve_shared_stream_for_warp_capture(device: str) -> None: @@ -460,14 +376,17 @@ def test_gaze_kernels_preserve_shared_stream_for_warp_capture(device: str) -> No with wp.ScopedStream(stream), torch.cuda.stream(wp.stream_to_torch(stream)): camera = GazeHarness(device=device) camera.set_gaze_angles(torch.tensor([[5.0, -8.0], [0.0, 0.0]], device=device)) - valid = camera._gaze_validity() - target = wp.zeros(valid.shape, dtype=wp.bool, device=device) + n = camera.sampling_coords.resolution + camera._prepare_grid_publish({"rgb": torch.ones(2, n, n, 3, dtype=torch.uint8, device=device)}) + camera._publish_grid(wp.ones(2, dtype=wp.bool, device=device)) + output = camera._data.output["rgb"].warp + target = wp.zeros_like(output) # Physics must still be able to capture after the camera's temporary stream scopes exit. with wp.ScopedCapture(stream=stream) as capture: - wp.copy(target, wp.from_torch(valid)) + wp.copy(target, output) wp.capture_launch(capture.graph) - torch.testing.assert_close(wp.to_torch(target), valid) - assert valid[1].any() + torch.testing.assert_close(wp.to_torch(target), wp.to_torch(output)) + assert wp.to_torch(output)[1].any() # -- The gaze kernels against fovi's camera geometry ------------------------------------------------------------------ @@ -507,6 +426,19 @@ def set_gaze(angles: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]: return stored, rotation +@wp.kernel +def _probe_projection( + directions: wp.array(dtype=wp.vec3f), + camera: CameraParams, + pixels: wp.array(dtype=wp.vec2f), + valid: wp.array(dtype=wp.bool), +): + i = wp.tid() + result = project_direction(directions[i], camera) + pixels[i] = wp.vec2f(result[0], result[1]) + valid[i] = result[2] > 0.5 + + @pytest.mark.parametrize("name", KERNEL_CAMERAS) def test_projection_kernel_matches_fovi(name: str) -> None: """The sensor mask projects with fovi's camera model, as the software sampler does on a real camera.""" @@ -517,7 +449,19 @@ def test_projection_kernel_matches_fovi(name: str) -> None: directions[:2000, 2] *= -1 directions = torch.nn.functional.normalize(directions, dim=-1).to(KERNEL_DEVICE) expected_pixels, expected_valid = camera.project(directions) - pixels, valid = project_directions(directions, camera_params(camera)) + pixels = torch.empty_like(expected_pixels) + valid = torch.empty_like(expected_valid) + with torch_stream(KERNEL_DEVICE): + wp.launch( + _probe_projection, + len(directions), + [ + wp.from_torch(directions, dtype=wp.vec3f), + camera_params(camera), + wp.from_torch(pixels, dtype=wp.vec2f), + wp.from_torch(valid), + ], + ) # Float32 rounding may flip a sample that lies on the image edge, nothing more. assert (valid == expected_valid).float().mean() > 0.9995 assert expected_valid.any() and (~expected_valid).any() @@ -533,60 +477,3 @@ def test_gaze_rotation_follows_fovis_pan_tilt_convention() -> None: direction = torch.stack((-tilt.cos() * pan.sin(), -tilt.sin(), tilt.cos() * pan.cos()), -1) torch.testing.assert_close(stored, angles, atol=0, rtol=0) torch.testing.assert_close(rotation, gaze_rotation(direction, "pan_tilt"), atol=1e-5, rtol=0) - - -def test_publish_kernel_matches_masking_then_copying_to_the_grid() -> None: - camera = KERNEL_CAMERAS["distorted pinhole"] - coords = SamplingCoords( - camera.field_of_view("short"), 0.591, 24, style=GRID_STYLE, field_geometry="spherical", device=KERNEL_DEVICE - ) - rays = (native_grid_directions(coords) * coords.cartesian.new_tensor((1, -1, -1))).float().contiguous() - generator = torch.Generator().manual_seed(2) - angles = ((torch.rand(6, 2, generator=generator) * 2 - 1) * 25).to(KERNEL_DEVICE) - _, rotation = set_gaze(angles) - count = len(coords) - outputs = { - "rgba": torch.randint(1, 255, (6, count, 1, 4), generator=generator, dtype=torch.uint8).to(KERNEL_DEVICE), - "depth": (torch.rand(6, count, 1, 1, generator=generator) + 0.5).to(KERNEL_DEVICE), - } - valid = camera.project(rays @ rotation.transpose(-1, -2))[1] - # Environments 1 and 4 were not rendered this frame and keep their previous image. - updated = torch.tensor([True, False, True, True, False, True], device=KERNEL_DEVICE) - - # The sequence the kernel replaces: footprint mask, sensor mask, then the upright layout. The layout comes from - # fovi's own grid reshaping rather than the index permutation the kernel uses. - keep = valid & coords.valid_mask[None] - expected_grid = { - name: coords.as_grid(value.squeeze(2) * keep[..., None], sample_dim=1) for name, value in outputs.items() - } - indices = grid_sample_indices(coords).to(torch.int32).contiguous() - visible = torch.zeros(6, count, dtype=torch.bool, device=KERNEL_DEVICE) - identity = wp.mat33f(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0) - for name, value in outputs.items(): - previous = torch.full_like(expected_grid[name], 7) - target = previous.clone() - with torch_stream(KERNEL_DEVICE): - wp.launch( - publish_grid_kernel, - dim=(6, count), - inputs=[ - wp.from_torch(value.squeeze(2).view(torch.uint8)), - wp.from_torch(indices), - wp.from_torch(coords.valid_mask.contiguous()), - wp.from_torch(updated), - wp.from_torch(rays, dtype=wp.vec3f), - wp.from_torch(rotation, dtype=wp.mat33f), - identity, - camera_params(camera), - 1, - int(name == "rgba"), - wp.from_torch(visible), - ], - outputs=[wp.from_torch(target.view(6, count, -1).view(torch.uint8))], - ) - # Float32 rounding may flip a sample on the image edge, nothing more. - assert (target[updated] == expected_grid[name][updated]).all(-1).float().mean() > 0.999 - assert torch.equal(target[~updated], previous[~updated]) - assert (visible[updated] == valid[updated]).float().mean() > 0.999 - assert not visible[~updated].any() - assert valid.any() and (~valid).any() diff --git a/source/isaaclab_fovi/test/test_native_grid.py b/source/isaaclab_fovi/test/test_native_grid.py index fce1bef4556f..bdd383d28d7e 100644 --- a/source/isaaclab_fovi/test/test_native_grid.py +++ b/source/isaaclab_fovi/test/test_native_grid.py @@ -3,47 +3,20 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""The native grid's rays, lens textures and published layout agree with independent geometry.""" +"""The analytic lens textures use the software sampler's directions and invert the native grid.""" import math import pytest import torch from fovi.sensing.coords import SamplingCoords -from isaaclab_fovi.sensors.calibrated_geometry import retinal_directions +from fovi.sensing.projection import angular_directions from isaaclab_fovi.sensors.lens_lut import build_native_grid_textures -from isaaclab_fovi.sensors.native_grid import ( - allocate_grid_outputs, - bounded_angular_radius, - copy_grid_outputs, - grid_sample_indices, - mask_grid_samples, - native_grid_directions, - native_grid_exit_uv, - unbounded_angular_radius, -) - -from isaaclab.test.utils import DeviceScope, test_devices +from isaaclab_fovi.sensors.native_grid import bounded_angular_radius, native_grid_directions, native_grid_exit_uv pytestmark = pytest.mark.kitless -def make_coords(resolution: int = 64, coverage: str = "circular", field: str = "spherical") -> SamplingCoords: - """A wide grid; ``"square_shells"`` is the square footprint with square (infinity-norm) shells.""" - fov = 80.0 if coverage == "wang" else 170.0 - square_shells = coverage == "square_shells" - return SamplingCoords( - fov=fov, - cmf_a=0.036021 * fov, - res=resolution, - style="warped_cartesian_as_grid", - fov_type="square" if square_shells else coverage, - radius_norm=math.inf if square_shells else 2.0, - field_geometry=field, - device="cpu", - ) - - def texel_centers(resolution: int) -> torch.Tensor: """Native texture UV of each canonical sample: columns follow native x, rows native y.""" axis = (torch.arange(resolution) + 0.5) / resolution @@ -51,133 +24,31 @@ def texel_centers(resolution: int) -> torch.Tensor: return torch.stack((col, row), -1).reshape(-1, 2) -def eccentricity_rays(visual: torch.Tensor, fov_deg: float, rotation_deg: float = 0.0) -> torch.Tensor: - """OpenGL rays for visual-chart points: angle off the axis is the visual radius times the half field of view.""" - visual = visual.to(torch.float64) - theta = torch.linalg.vector_norm(visual, dim=-1) * math.radians(fov_deg) / 2 - phi = torch.atan2(visual[..., 1], visual[..., 0]) + math.radians(rotation_deg) - return torch.stack((theta.sin() * phi.cos(), theta.sin() * phi.sin(), -theta.cos()), -1) - - -@pytest.mark.parametrize( - ("coverage", "resolution", "rotation"), - # Circular padding outside the field, and odd square-shell grids with a texel on the axis, under a roll. - [("circular", 64, 0.0), ("square_shells", 15, 37.0)], -) -def test_every_texel_roundtrips(coverage: str, resolution: int, rotation: float) -> None: - coords = make_coords(resolution, coverage) - rays = native_grid_directions(coords, image_rotation_deg=rotation) - uv, valid = native_grid_exit_uv(rays, coords, image_rotation_deg=rotation) - assert valid.all() - torch.testing.assert_close(uv, texel_centers(resolution), atol=2e-6, rtol=0) - torch.testing.assert_close(rays.norm(dim=-1), torch.ones(len(coords)), atol=1e-6, rtol=0) - - -@pytest.mark.parametrize(("coverage", "rotation"), [("wang", 180.0), ("square_shells", 37.0)]) -def test_inverse_maps_independent_rays_to_their_texels(coverage: str, rotation: float) -> None: - coords = make_coords(64, coverage) - half_fov = math.radians(coords.fov) / 2 - # Rays through fovi's own sample positions inside the field land on those samples' texels. - inside = torch.linalg.vector_norm(coords.cartesian, dim=-1) <= (math.sqrt(2) if coverage == "square_shells" else 1) - rays = eccentricity_rays(coords.cartesian[inside], coords.fov, rotation) - uv, valid = native_grid_exit_uv(rays, coords, image_rotation_deg=rotation) - assert inside.sum() > len(coords) // 2 - assert valid.all() - torch.testing.assert_close(uv, texel_centers(64)[inside], atol=2e-6, rtol=0) - # The optical axis is the texture centre and the nominal rim along each rolled native axis is its edge. - roll = math.radians(rotation) - rim = [ - (math.sin(half_fov) * math.cos(angle), math.sin(half_fov) * math.sin(angle), -math.cos(half_fov)) - for angle in (roll, roll + math.pi / 2) - ] - hand_rays = torch.tensor([(0.0, 0.0, -1.0), *rim], dtype=torch.float64) - uv, _ = native_grid_exit_uv(hand_rays, coords, image_rotation_deg=rotation) - torch.testing.assert_close(uv, torch.tensor([[0.5, 0.5], [0.5, 1.0], [1.0, 0.5]]), atol=1e-6, rtol=0) +def test_rolled_grid_matches_fovi_and_inverts_every_texel(): + coords = SamplingCoords(170.0, 6.0, 65, style="warped_cartesian_as_grid", field_geometry="spherical") + roll = math.radians(37.0) + rendered = native_grid_directions(coords, image_rotation_deg=37.0) + valid = coords.valid_mask + cv_rays = angular_directions(coords.cartesian[valid], coords.fov) + x, y, z = cv_rays.unbind(-1) + reference = torch.stack((math.cos(roll) * x + math.sin(roll) * y, math.sin(roll) * x - math.cos(roll) * y, -z), -1) + torch.testing.assert_close(rendered[valid], reference, atol=3e-7, rtol=0) + uv, visible = native_grid_exit_uv(rendered, coords, image_rotation_deg=37.0) + assert visible.all() + torch.testing.assert_close(uv, texel_centers(coords.resolution), atol=2e-6, rtol=0) -def test_valid_samples_match_the_software_sampler_rays() -> None: - """The renderer's rays are the ones fovi's software sampler uses on a real camera's images.""" - coords = make_coords() - actual = native_grid_directions(coords) - expected = retinal_directions(coords.cartesian[coords.valid_mask], coords.fov) - torch.testing.assert_close(actual[coords.valid_mask], expected, atol=3e-7, rtol=0) - with pytest.raises(ValueError, match="spherical"): - native_grid_directions(make_coords(16, field="planar")) + directions, exit_uv = build_native_grid_textures(coords, rendered, image_rotation_deg=37.0, exit_size=129) + torch.testing.assert_close(directions.reshape(-1, 3), rendered) + torch.testing.assert_close(exit_uv[64, 64], torch.tensor([0.5, 0.5])) + torch.testing.assert_close(exit_uv[0, 0], torch.tensor([-1.0, -1.0])) -def test_spherical_padding_matches_rim_slope_and_does_not_wrap() -> None: - radius = torch.tensor([0.0, 0.99999, 1.0, 1.00001, 2.0, 10.0], dtype=torch.float64) +def test_spherical_padding_matches_rim_slope_and_does_not_wrap(): + radius = torch.tensor([0.99999, 1.0, 1.00001, 2.0, 10.0], dtype=torch.float64) half_fov = math.radians(170) / 2 angles = bounded_angular_radius(radius, half_fov) - assert (angles[1:] > angles[:-1]).all() - assert (angles < math.pi).all() - left = (angles[2] - angles[1]) / (radius[2] - radius[1]) - right = (angles[3] - angles[2]) / (radius[3] - radius[2]) + assert (angles[1:] > angles[:-1]).all() and (angles < math.pi).all() + left = (angles[1] - angles[0]) / (radius[1] - radius[0]) + right = (angles[2] - angles[1]) / (radius[2] - radius[1]) torch.testing.assert_close(left, right, atol=2e-5, rtol=0) - torch.testing.assert_close(unbounded_angular_radius(angles, half_fov), radius, atol=1e-10, rtol=0) - - -@pytest.mark.parametrize(("coverage", "rotation"), [("circular", 0.0), ("square_shells", 37.0)]) -def test_textures_match_independent_geometry(coverage: str, rotation: float) -> None: - coords = make_coords(64, coverage) - size = 256 - direction, inverse = build_native_grid_textures(coords, image_rotation_deg=rotation, exit_size=size) - assert direction.shape == (64, 64, 3) and inverse.shape == (size, size, 2) - inside = coords.valid_mask & (torch.linalg.vector_norm(coords.cartesian, dim=-1) <= math.sqrt(2)) - expected = eccentricity_rays(coords.cartesian[inside], coords.fov, rotation).float() - torch.testing.assert_close(direction.reshape(-1, 3)[inside], expected, atol=1e-6, rtol=0) - # Forward-hemisphere octahedral texel centres decode to (x, y, -(1 - |x| - |y|)) before normalization. - axis = (torch.arange(size, dtype=torch.float64) + 0.5) / size * 2 - 1 - y, x = torch.meshgrid(axis, axis, indexing="ij") - forward = x.abs() + y.abs() < 1 - texel_rays = torch.nn.functional.normalize(torch.stack((x, y, x.abs() + y.abs() - 1), -1), dim=-1) - # Each stored UV, mapped back through fovi's native-to-visual warp, must look along its texel's ray. - stored = forward & (inverse[..., 0] >= 0) - native = (inverse[stored].to(torch.float64) * 2 - 1).flip(-1) - visual = coords.native_to_visual(native) - # Circular grids pad outside the nominal field on another curve; square shells reach their corners linearly. - linear = torch.ones(len(visual), dtype=torch.bool) - if coverage == "circular": - linear = torch.linalg.vector_norm(visual, dim=-1) <= 1 - assert linear.sum() > 1000 - torch.testing.assert_close( - eccentricity_rays(visual[linear], coords.fov, rotation), texel_rays[stored][linear], atol=1e-5, rtol=0 - ) - # The antipode lies outside every grid. - assert (inverse[0, 0] == -1).all() and (inverse[-1, -1] == -1).all() - assert torch.isfinite(inverse).all() - - -def test_upright_grid_masks_and_channel_aliases() -> None: - coords = make_coords(16) - # Coordinate channels make rotation/transposition failures observable. - values = torch.cat((coords.cartesian, torch.ones(len(coords), 2)), -1)[None, :, None] - source = {"rgba": values.clone()} - source["rgb"] = source["rgba"][..., :3] - mask_grid_samples(source, coords) - target = allocate_grid_outputs(source, coords) - copy_grid_outputs(source, target, grid_sample_indices(coords)) - expected = coords.as_grid(source["rgba"][:, :, 0], sample_dim=1) - torch.testing.assert_close(target["rgba"], expected) - assert target["rgb"].untyped_storage().data_ptr() == target["rgba"].untyped_storage().data_ptr() - assert target["rgba"][0, :, :, 0][8, 4] < target["rgba"][0, :, :, 0][8, 11] - assert target["rgba"][0, :, :, 1][4, 8] > target["rgba"][0, :, :, 1][11, 8] - assert (target["rgba"][0][~coords.as_grid(coords.valid_mask)] == 0).all() - - -@pytest.mark.parametrize("device", test_devices(DeviceScope.DEFAULT_CUDA)) -def test_published_grid_copy_is_graph_capturable(device: str) -> None: - coords = make_coords(16).to(device=device) - source = {"value": torch.arange(3 * len(coords) * 4, device=device).to(torch.uint8).reshape(3, len(coords), 1, 4)} - target = allocate_grid_outputs(source, coords) - indices = grid_sample_indices(coords) - copy_grid_outputs(source, target, indices) - torch.testing.assert_close(target["value"], coords.as_grid(source["value"][:, :, 0], sample_dim=1), atol=0, rtol=0) - torch.cuda.synchronize() - graph = torch.cuda.CUDAGraph() - with torch.cuda.graph(graph): - copy_grid_outputs(source, target, indices) - source["value"].zero_() - graph.replay() - torch.cuda.synchronize() - assert torch.count_nonzero(target["value"]) == 0 diff --git a/source/isaaclab_fovi/test/test_newton_buffers.py b/source/isaaclab_fovi/test/test_newton_buffers.py index b04505672812..42d849230856 100644 --- a/source/isaaclab_fovi/test/test_newton_buffers.py +++ b/source/isaaclab_fovi/test/test_newton_buffers.py @@ -3,360 +3,29 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""The Newton foveated camera's render layout and publication, on stand-in renderer buffers.""" +"""Newton's renderer requires whole native-grid tiles.""" -from dataclasses import asdict from types import SimpleNamespace import pytest import torch -import warp as wp -from fovi.sensing.coords import SamplingCoords -from fovi.sensing.projection import CameraModel -from isaaclab_fovi.sensors import foveated_camera as base_camera -from isaaclab_fovi.sensors import foveated_newton_camera as newton_camera -from isaaclab_fovi.sensors.calibrated_geometry import retinal_directions -from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera, explicit_rays -from isaaclab_fovi.sensors.native_grid import native_grid_directions +from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera -from isaaclab.utils.warp import ProxyArray +from isaaclab.sensors.camera.camera import Camera pytestmark = pytest.mark.kitless -def rendered_rays_only(camera) -> None: - """Stand-in for the gaze geometry: only the rendered rays, in the ROS frame the camera keeps them in.""" - coords = camera._ray_coords - if coords.style == "warped_cartesian_as_grid": - rays = native_grid_directions(coords, image_rotation_deg=0) - else: - rays = retinal_directions(coords.cartesian, coords.fov, 0) - camera._gaze_rays = (rays * rays.new_tensor((1.0, -1.0, -1.0))).float() - - -def new_camera() -> FoveatedNewtonCamera: - """A Newton camera without its constructor: the state its constructor sets and the handles its destructor reads.""" - camera = object.__new__(FoveatedNewtonCamera) - camera._gaze_angles = camera._gaze_rotation = camera._visibility = camera._grid_publish = None - camera._published_shape = camera._segmentation_neighbors = None - camera._initialize_handle = None - camera._invalidate_initialize_handle = None - camera._prim_deletion_handle = None - camera._view = None - camera._renderer = None - camera._device = "cpu" - return camera - - -@pytest.mark.parametrize("pooled", [False, True]) -def test_native_grid_render_layout_preserves_rays_and_upright_outputs(monkeypatch, pooled) -> None: - coords = SamplingCoords(60.0, 0.591, 16, style="warped_cartesian_as_grid", field_geometry="spherical", device="cpu") - highres = coords.clone(resolution=32) if pooled else None - ray_coords = highres if pooled else coords - pooler = torch.nn.AdaptiveAvgPool1d(len(coords)) if pooled else None - monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 16)) - monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: highres) - monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (pooler, 4)) - monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) - - def initialize_renderer(camera): - # Newton launches image tiles; a vector-shaped width of one is not valid. - assert camera.cfg.height == camera.cfg.width == ray_coords.resolution - rgba = torch.zeros((2, camera.cfg.height, camera.cfg.width, 4), dtype=torch.uint8) - camera._data = SimpleNamespace( - output={ - "rgba": ProxyArray(wp.from_torch(rgba)), - "rgb": ProxyArray(wp.from_torch(rgba[..., :3])), - } - ) - camera._render_data = SimpleNamespace(camera_rays=None) - camera._renderer = SimpleNamespace( - cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), - cleanup=lambda render_data: None, - ) - camera.renderer_rgba = rgba - - def render(camera, env_mask): - assert camera._data.output["rgba"].torch.shape == camera.renderer_rgba.shape - values = torch.arange(camera.renderer_rgba.numel()).reshape(camera.renderer_rgba.shape) + camera.frame_offset - camera.renderer_rgba.copy_(values.to(torch.uint8)) - - monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) - monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) - camera = new_camera() - camera.cfg = SimpleNamespace( - foveated_style="warped_cartesian_as_grid", - mask_to_sensor_fov=False, - cmf_a_deg=0.591, - pool_enabled=pooled, - pool_mode="avg", - pool_sample_cortex=False, - image_rotation_deg=0, - update_period=0.0, - data_types=["rgba", "rgb"], - renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), - ) - camera._initialize_impl() - - rays = wp.to_torch(camera._foveated_rays) - assert rays.shape == (ray_coords.resolution, ray_coords.resolution, 1, 2, 3) - expected_rays = native_grid_directions(ray_coords, image_rotation_deg=0).float() - torch.testing.assert_close(rays.reshape(-1, 2, 3)[:, 1], expected_rays) - public_rgba = camera._data.output["rgba"] - camera.frame_offset = 0 - camera._update_buffers_impl(wp.ones(2, dtype=wp.bool, device="cpu")) - expected = camera.renderer_rgba.reshape(2, len(ray_coords), 1, 4).clone() - expected[:, ~ray_coords.valid_mask] = 0 - if pooled: - # AdaptiveAvgPool1d maps the 4 * N_lo canonical samples to N_lo by averaging each run of four, which the - # camera rounds to the nearest uint8 value. - expected = expected.reshape(2, len(coords), 4, 1, 4).float().mean(dim=2).round().to(torch.uint8) - expected = coords.as_grid(expected.squeeze(2), sample_dim=1) - torch.testing.assert_close(camera._data.output["rgba"].torch, expected, rtol=0, atol=0) - # The published buffers are stable across frames, and rgb shares rgba's memory. - assert camera._data.output["rgba"] is public_rgba - torch.testing.assert_close(camera._data.output["rgb"].torch, expected[..., :3], rtol=0, atol=0) - assert camera._data.output["rgb"].warp.ptr == public_rgba.warp.ptr - - # Newton redraws every row, but only the updated environment's publication changes. - camera.frame_offset = 1 - camera._update_buffers_impl(wp.array([False, True], dtype=wp.bool, device="cpu")) - published = camera._data.output["rgba"].torch - torch.testing.assert_close(published[0], expected[0], rtol=0, atol=0) - assert not torch.equal(published[1], expected[1]) - - -def test_sample_set_publication_keeps_environments_that_were_not_updated(monkeypatch) -> None: - """A sample-set camera publishes its own buffers: Newton redraws every row, but only updated rows change.""" - coords = SamplingCoords(60.0, 0.591, 8, style="isotropic", field_geometry="spherical", device="cpu") - monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 8)) - monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: None) - monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (None, None)) - monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) - - def initialize_renderer(camera): - depth = torch.zeros((2, camera.cfg.height, camera.cfg.width, 1)) - camera._data = SimpleNamespace(output={"distance_to_camera": ProxyArray(wp.from_torch(depth))}) - camera._render_data = SimpleNamespace(camera_rays=None) - camera.renderer_depth = depth - - def render(camera, env_mask): - camera.renderer_depth.fill_(camera.frame_value) - - monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) - monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) - camera = new_camera() - camera.cfg = SimpleNamespace( - foveated_style="isotropic", - mask_to_sensor_fov=False, - pool_enabled=False, - image_rotation_deg=0, - update_period=0.0, - data_types=["distance_to_camera"], - renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), - ) - camera._initialize_impl() - published = camera._data.output["distance_to_camera"] - assert published.torch.shape == (2, len(coords), 1, 1) - assert published.warp.ptr != camera._flat_render_output["distance_to_camera"].warp.ptr - - camera.frame_value = 1.0 - camera._update_buffers_impl(wp.ones(2, dtype=wp.bool, device="cpu")) - camera.frame_value = 2.0 - camera._update_buffers_impl(wp.array([False, True], dtype=wp.bool, device="cpu")) - assert camera._data.output["distance_to_camera"] is published - assert bool((published.torch[0] == 1.0).all()) and bool((published.torch[1] == 2.0).all()) - - -def test_sample_set_sensor_mask_follows_the_published_frame(monkeypatch) -> None: - """An environment that was not updated keeps its published samples and the sensor visibility that masked them.""" - coords = SamplingCoords(60.0, 0.591, 8, style="isotropic", field_geometry="spherical", device="cpu") - monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 8)) - monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: None) - monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (None, None)) - monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) - - def initialize_renderer(camera): - camera.renderer_depth = torch.ones((2, camera.cfg.height, camera.cfg.width, 1)) - camera._data = SimpleNamespace(output={"distance_to_camera": ProxyArray(wp.from_torch(camera.renderer_depth))}) - camera._render_data = SimpleNamespace(camera_rays=None) - - monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) - monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", lambda camera, env_mask: None) - camera = new_camera() - camera.cfg = SimpleNamespace( - foveated_style="isotropic", - mask_to_sensor_fov=True, - camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), - spawn=None, - pool_enabled=False, - image_rotation_deg=0, - update_period=0.0, - data_types=["distance_to_camera"], - renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), - ) - camera._initialize_impl() - # The real gaze geometry, on stand-in pose buffers. - base_camera.FoveatedCamera._initialize_gaze(camera) - camera._view = SimpleNamespace(count=2, close=lambda: None) - camera._data.quat_w_ros = ProxyArray(wp.from_torch(torch.tensor([[0.0, 0.0, 0.0, 1.0]] * 2), dtype=wp.quatf)) - - # The second camera looks away from the physical camera's image, so it sees nothing. - camera.set_gaze_angles(torch.tensor([[0.0, 0.0], [0.0, 180.0]])) - camera._update_buffers_impl(wp.ones(2, dtype=wp.bool, device="cpu")) - seen = camera.sensor_fov_valid_fraction.clone() - assert seen[0] > 0.5 and seen[1] == 0 - # Both look ahead now, but only the first camera's frame is published. - camera.set_gaze_angles(torch.zeros(2, 2)) - camera._update_buffers_impl(wp.array([True, False], dtype=wp.bool, device="cpu")) - assert not camera._data.output["distance_to_camera"].torch[1].any() - torch.testing.assert_close(camera.sensor_fov_valid_fraction, seen) - - -def test_pooled_segmentation_publishes_modal_labels_at_full_precision(monkeypatch) -> None: - """A pooled camera's segmentation output holds each sample's majority label exactly, IDs above 2**24 included.""" - coords = SamplingCoords(60.0, 0.591, 16, style="warped_cartesian_as_grid", field_geometry="spherical", device="cpu") - highres = coords.clone(resolution=32) - runs = torch.arange(len(coords)) - # Each pooled sample's neighbours are a run of four rendered samples, nearest first. - neighbors = torch.stack([4 * runs + j for j in range(4)]) - average = torch.nn.AdaptiveAvgPool1d(len(coords)) - - monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 16)) - monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: highres) - monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (average, 4)) - monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) - # The camera reads the modal neighbourhoods from its standard pooler. - monkeypatch.setattr(base_camera, "segmentation_neighbor_indices", lambda pooler: neighbors) - - def initialize_renderer(camera): - size = (2, camera.cfg.height, camera.cfg.width) - camera.renderer_rgba = torch.zeros((*size, 4), dtype=torch.uint8) - camera.renderer_labels = torch.zeros((*size, 1), dtype=torch.int32) - camera._data = SimpleNamespace( - output={ - "rgba": ProxyArray(wp.from_torch(camera.renderer_rgba)), - "semantic_segmentation": ProxyArray(wp.from_torch(camera.renderer_labels)), - } +def test_native_grid_render_size_must_fill_newton_tiles(): + camera = SimpleNamespace( + cfg=SimpleNamespace( + width=83, + height=83, + renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=16, tile_rendering_height=8), ) - camera._render_data = SimpleNamespace(camera_rays=None) - camera._renderer = SimpleNamespace(cleanup=lambda render_data: None) - - # In each run, three samples share a label above 2**24 and one differs; float32 would merge neighbouring labels. - majority = 2**24 + 1 + 2 * runs - labels = majority[:, None].repeat(1, 4) - labels[:, 2] = 2**30 + runs - labels = torch.stack((labels.reshape(-1), (labels + 7).reshape(-1))) - - def render(camera, env_mask): - camera.renderer_labels.copy_(labels.to(torch.int32).reshape(camera.renderer_labels.shape)) - - monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) - monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) - camera = new_camera() - camera.cfg = SimpleNamespace( - foveated_style="warped_cartesian_as_grid", - mask_to_sensor_fov=False, - update_period=0.0, - pool_enabled=True, - pool_mode="avg", - pool_sample_cortex=False, - image_rotation_deg=0, - data_types=["rgba", "semantic_segmentation"], - renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), - ) - camera._initialize_impl() - camera._update_buffers_impl(wp.ones(2, dtype=wp.bool, device="cpu")) - - # The modal label of each run after the footprint mask zeroes samples outside the retina, ties to the nearest. - rendered = labels.clone() - rendered[:, ~highres.valid_mask] = 0 - expected = torch.zeros(2, len(coords), dtype=torch.int64) - for env in range(2): - for sample in range(len(coords)): - run = rendered[env, 4 * sample : 4 * sample + 4].tolist() - expected[env, sample] = max(run, key=lambda label: (run.count(label), -run.index(label))) - published = camera._data.output["semantic_segmentation"].torch - assert published.dtype == torch.int32 - torch.testing.assert_close(published[..., 0].long(), coords.as_grid(expected, sample_dim=1), rtol=0, atol=0) - assert camera.image_shape == (16, 16) and camera._data.image_shape == (16, 16) - - -def test_native_grid_render_size_must_fill_newton_tiles() -> None: - """A fractional pool_res_mult can give a grid that Newton's tiles do not divide; the camera rejects it.""" - FoveatedNewtonCamera._validate_native_render_layout( - SimpleNamespace(cfg=SimpleNamespace(width=128, height=128)), 16, 8 ) with pytest.raises(ValueError, match="83x83.*16x8"): - FoveatedNewtonCamera._validate_native_render_layout( - SimpleNamespace(cfg=SimpleNamespace(width=83, height=83)), 16, 8 - ) - - -def test_explicit_rays_keep_sample_order_and_pad_whole_tiles() -> None: - """Newton receives one ray per sample from the optical centre, in sample order, padded to whole tiles.""" - wp.init() - directions = torch.nn.functional.normalize(torch.randn(5, 3, generator=torch.Generator().manual_seed(0)), dim=-1) - rays = explicit_rays(directions, 2, 4) - assert rays.shape == (2, 4, 1, 2) and rays.dtype == wp.vec3f - rays = wp.to_torch(rays).reshape(8, 2, 3) - torch.testing.assert_close(rays[:5, 1], directions) - torch.testing.assert_close(rays[5:, 1], directions[-1].expand(3, -1)) - assert not rays[:, 0].any() - with pytest.raises(ValueError, match="shape"): - explicit_rays(torch.zeros(3, 2), 3, 1) - with pytest.raises(ValueError, match="cannot hold"): - explicit_rays(torch.zeros(5, 3), 2, 2) - - -def test_pooled_rgb_is_the_view_of_pooled_rgba(monkeypatch) -> None: - """The renderer publishes rgb as a view of rgba even when only rgba is requested, and so do pooled sample sets.""" - style = "isotropic" - coords = SamplingCoords(60.0, 0.591, 16, style=style, field_geometry="spherical", device="cpu") - highres = coords.clone(resolution=32) - monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 16)) - monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: highres) - monkeypatch.setattr( - newton_camera, "build_pooler", lambda *args, **kwargs: (torch.nn.AdaptiveAvgPool1d(len(coords)), 4) - ) - monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) - - def initialize_renderer(camera): - camera.renderer_rgba = torch.zeros((2, camera.cfg.height, camera.cfg.width, 4), dtype=torch.uint8) - rgba = ProxyArray(wp.from_torch(camera.renderer_rgba)) - camera._data = SimpleNamespace( - output={"rgba": rgba, "rgb": ProxyArray(wp.from_torch(camera.renderer_rgba[..., :3]))} - ) - camera._render_data = SimpleNamespace(camera_rays=None) - camera._renderer = SimpleNamespace(cleanup=lambda render_data: None) - - def render(camera, env_mask): - camera.renderer_rgba.copy_(torch.tensor([10, 20, 30, 255], dtype=torch.uint8)) - - monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) - monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) - camera = new_camera() - camera.cfg = SimpleNamespace( - foveated_style=style, - mask_to_sensor_fov=False, - update_period=0.0, - pool_enabled=True, - pool_mode="avg", - pool_sample_cortex=False, - image_rotation_deg=0, - data_types=["rgba"], - renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), - ) - camera._initialize_impl() - camera._update_buffers_impl(wp.ones(2, dtype=wp.bool, device="cpu")) - - rgb, rgba = camera._data.output["rgb"].torch, camera._data.output["rgba"].torch - assert rgb.any() - torch.testing.assert_close(rgb, rgba[..., :3], rtol=0, atol=0) - # rgb is a view of rgba, not a copy: a write to rgba shows through it. - assert rgb.data_ptr() == rgba.data_ptr() - rgba[..., 0] = 7 - assert bool((rgb[..., 0] == 7).all()) + FoveatedNewtonCamera._initialize_impl(camera) def test_runtime_intrinsics_leave_the_retinas_rays_alone(monkeypatch) -> None: @@ -367,8 +36,9 @@ def test_runtime_intrinsics_leave_the_retinas_rays_alone(monkeypatch) -> None: def replace_rays(*args, **kwargs): raise AssertionError("the stock setter replaces the renderer's rays") - monkeypatch.setattr(newton_camera.Camera, "set_intrinsic_matrices", replace_rays) - camera = new_camera() + monkeypatch.setattr(Camera, "set_intrinsic_matrices", replace_rays) + monkeypatch.setattr(Camera, "__del__", lambda self: None) + camera = object.__new__(FoveatedNewtonCamera) with pytest.warns(UserWarning, match="leaves a foveated camera as configured") as caught: camera.set_intrinsic_matrices(torch.eye(3).repeat(2, 1, 1)) # The warning points at the caller's line. diff --git a/source/isaaclab_fovi/test/test_pooling.py b/source/isaaclab_fovi/test/test_pooling.py deleted file mode 100644 index d8cda0eb5880..000000000000 --- a/source/isaaclab_fovi/test/test_pooling.py +++ /dev/null @@ -1,172 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""The camera's pooling of its sensor buffers, segmentation and sensor mask, without a simulator. - -fovi's poolers are tested in fovi; these tests cover what the camera builds on them. -""" - -import pytest -import torch -from isaaclab_fovi.sensors import FoveatedCameraCfg, pooling -from isaaclab_fovi.sensors.pooling import ( - build_highres_coords, - build_lowres_coords, - build_pooler, - pool_hwc_buffer, - pool_segmentation_buffer, - segmentation_neighbor_indices, -) - -from isaaclab.sim import PinholeCameraCfg -from isaaclab.test.utils import DeviceScope, test_devices - -pytestmark = pytest.mark.kitless - -DEVICE = next(iter(test_devices(DeviceScope.DEFAULT_CUDA)), "cpu") -"""The modal pooling runs the same tensor operations on every device; the default GPU is what simulations use.""" - - -def pooling_cfg(**overrides) -> FoveatedCameraCfg: - """A pooled foveated camera configuration for the pooling helpers, with ``overrides`` applied. - - A 90 degree pinhole window (focal length 1, aperture 2) with a CMF constant of a tenth of it, and a small isotropic - retina pooled from three visual-field neighbours. - """ - values = dict( - prim_path="/World/Camera", - spawn=PinholeCameraCfg(focal_length=1.0, horizontal_aperture=2.0), - cmf_a_deg=9.0, - foveated_res=8, - foveated_style="isotropic", - pool_enabled=True, - pool_k=3, - pool_sample_cortex=False, - ) - return FoveatedCameraCfg(**{**values, **overrides}) - - -def test_camera_pools_its_buffers_by_its_config() -> None: - cfg = pooling_cfg(pool_mode="max") - lowres, matched = build_lowres_coords(cfg, "cpu") - highres = build_highres_coords(cfg, lowres, matched) - # The photoreceptor grid shares the retina's geometry at a higher resolution, and the pooler takes the config. - assert len(highres) > len(lowres) and highres.cmf_a == lowres.cmf_a and highres.fov == lowres.fov - pooler, neighbors = build_pooler(cfg, lowres, highres, "cpu") - assert neighbors == 3 and pooler.mode == "max" - # Pooling keeps each environment's channels apart and in order. - constants = torch.tensor([[0.25, 0.5, 0.75], [3.0, 6.0, 9.0]]) - rendered = constants[:, None, None, :].expand(2, len(highres), 1, 3).clone() - actual = pool_hwc_buffer(pooler, rendered) - assert actual.dtype == rendered.dtype - torch.testing.assert_close(actual, constants[:, None, None, :].expand(2, len(lowres), 1, 3)) - # Without pooling there is no photoreceptor grid. - cfg = pooling_cfg(pool_enabled=False) - lowres, matched = build_lowres_coords(cfg, "cpu") - assert build_highres_coords(cfg, lowres, matched) is None - - -# Three output samples over five input samples; 5 marks an excluded neighbour. Columns are outputs, rows are -# neighbour slots nearest first. -HAND_TABLE = torch.tensor([[0, 3, 5], [1, 4, 5], [2, 5, 5]]) - - -def test_modal_pooling_keeps_majority_color_vector() -> None: - # Output 0 sees [0,0,0,255] twice and [0,0,1,255] once; a per-channel max would give [0,0,1,255]. - # Output 1 sees one vote each for two colors (its third slot is excluded): the nearest neighbour wins. - # Output 2 has no valid neighbour and is zero. - colors = torch.tensor( - [[0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 1, 255], [10, 20, 30, 255], [200, 100, 0, 255]], dtype=torch.uint8 - ) - rendered = colors[None, :, None, :].to(DEVICE) - pooled = pool_segmentation_buffer(HAND_TABLE.to(DEVICE), rendered) - expected = torch.tensor([[0, 0, 0, 255], [10, 20, 30, 255], [0, 0, 0, 0]], dtype=torch.uint8) - assert pooled.dtype == torch.uint8 - assert torch.equal(pooled.cpu(), expected[None, :, None, :]) - # Swapping the tied neighbours' order flips the winner. - swapped = HAND_TABLE[[1, 0, 2]].to(DEVICE) - assert torch.equal(pool_segmentation_buffer(swapped, rendered)[0, 1, 0].cpu(), colors[4]) - - -def test_modal_pooling_preserves_ids_above_float_precision() -> None: - # 2**24 + 1 and 2**24 + 3 round to other values in float32; the IDs must come back exactly. - big = 2**40 - ids = torch.tensor([2**24 + 1, 2**24 + 1, 2**24 + 3, big + 7, big + 7], dtype=torch.int64) - batch = torch.stack([ids, ids.flip(0)])[:, :, None, None].to(DEVICE) - pooled = pool_segmentation_buffer(HAND_TABLE.to(DEVICE), batch) - expected = torch.tensor([[2**24 + 1, big + 7, 0], [big + 7, 2**24 + 1, 0]], dtype=torch.int64) - assert pooled.dtype == torch.int64 - assert torch.equal(pooled[..., 0, 0].cpu(), expected) - # Two int64 channels exceed the 8-byte packed key; vectors differing only in the second channel stay distinct. - vectors = torch.tensor([[1, 2**40], [1, 2**40 + 1], [1, 2**40 + 1], [5, 6], [7, 8]], dtype=torch.int64) - pooled = pool_segmentation_buffer(HAND_TABLE.to(DEVICE), vectors[None, :, None, :].to(DEVICE)) - assert torch.equal(pooled[0, :, 0].cpu(), torch.tensor([[1, 2**40 + 1], [5, 6], [0, 0]])) - - -def reference_modal_pool(table: torch.Tensor, values: torch.Tensor) -> torch.Tensor: - """Brute-force modal pooling of ``(B, N_hi, C)`` values over a ``(k, N_lo)`` neighbour table.""" - batch, num_inputs, channels = values.shape - out = torch.zeros(batch, table.shape[1], channels, dtype=values.dtype) - for b in range(batch): - for n in range(table.shape[1]): - neighbours = [tuple(values[b, i].tolist()) for i in table[:, n].tolist() if i != num_inputs] - if neighbours: - # max() keeps the first of equally common values, i.e. the earliest neighbour slot. - out[b, n] = torch.tensor(max(neighbours, key=neighbours.count), dtype=values.dtype) - return out - - -@pytest.mark.parametrize( - ("style", "pool_k", "sample_cortex"), [("warped_cartesian_as_grid", 9, False), ("isotropic", 3, False)] -) -def test_modal_pooling_uses_the_poolers_neighbourhoods(monkeypatch, style: str, pool_k: int, sample_cortex) -> None: - """Segmentation pools over the same neighbourhoods as the camera's other outputs: grid windows or KNN.""" - cfg = pooling_cfg(foveated_style=style, pool_k=pool_k, pool_sample_cortex=sample_cortex, pool_mode="max") - lowres, matched = build_lowres_coords(cfg, "cpu") - highres = build_highres_coords(cfg, lowres, matched) - pooler, k = build_pooler(cfg, lowres, highres, "cpu") - table = segmentation_neighbor_indices(pooler) - assert table.shape == (k, len(lowres)) - # The table holds exactly the samples the max pooler reduces over: a max over the table matches it. - values = torch.rand(1, len(highres), 1, 1, generator=torch.Generator().manual_seed(0)) + 1 - padded = torch.cat([values[0, :, 0, 0], torch.zeros(1)]) - torch.testing.assert_close(padded[table].max(dim=0).values, pool_hwc_buffer(pooler, values)[0, :, 0, 0]) - - # Few labels so neighbourhoods hold repeats and ties; tiny chunks exercise the batched loop. - monkeypatch.setattr(pooling, "_MODAL_CHUNK_ELEMENTS", 1) - labels = torch.randint(0, 3, (3, len(highres), 1, 2), generator=torch.Generator().manual_seed(1)).to(torch.uint8) - pooled = pool_segmentation_buffer(table, labels) - assert torch.equal(pooled[:, :, 0], reference_modal_pool(table, labels[:, :, 0])) - - -@pytest.mark.parametrize(("style", "pool_k", "mode"), [("warped_cartesian_as_grid", 9, "avg"), ("isotropic", 6, "max")]) -def test_pooling_leaves_out_photoreceptors_the_camera_does_not_see(style: str, pool_k: int, mode: str) -> None: - cfg = pooling_cfg(foveated_style=style, pool_mode=mode, pool_k=pool_k) - lowres, matched = build_lowres_coords(cfg, DEVICE) - highres = build_highres_coords(cfg, lowres, matched) - pooler, _ = build_pooler(cfg, lowres, highres, DEVICE) - # The camera's image edge cuts the retina at x = 0.3 in the first environment; the second sees everything. - visible = torch.stack([highres.cartesian[:, 0] < 0.3, torch.ones(len(highres), dtype=torch.bool, device=DEVICE)]) - # The camera zeroes unseen photoreceptors before pooling. A negative value lets those zeros win a plain max. - value = -0.7 if mode == "max" else 0.7 - values = torch.where(visible, value, 0.0)[:, :, None, None] - pooled = pool_hwc_buffer(pooler, values, visible)[:, :, 0, 0] - unseen = pool_hwc_buffer(pooler, visible.float()[:, :, None, None], visible)[:, :, 0, 0] == 0 - # Some outputs straddle the edge: plain pooling lets the mask's zeros into them. - straddling = (pool_hwc_buffer(pooler, values)[0, :, 0, 0] - value).abs() > 0.01 - assert (straddling & ~unseen[0] & lowres.valid_mask).any() - # Each output pools only what the camera sees: the constant where it sees any photoreceptor, zero where it sees - # none or lies outside the retina. - expected = torch.where(unseen | ~lowres.valid_mask, 0.0, value) - torch.testing.assert_close(pooled, expected) - assert unseen[0].any() and not unseen[1, lowres.valid_mask].any() - - -def test_modal_pooling_leaves_out_labels_the_camera_does_not_see() -> None: - # Output 0 sees labels [1, 1, 2]; hiding the two 1s leaves 2. Output 1 sees [4, 5]; hiding both leaves nothing. - labels = torch.tensor([1, 1, 2, 4, 5], dtype=torch.int32)[None, :, None, None].expand(2, -1, -1, -1) - visible = torch.tensor([[False, False, True, False, False], [True, True, True, True, True]]) - pooled = pool_segmentation_buffer(HAND_TABLE, labels, visible)[..., 0, 0] - assert torch.equal(pooled, torch.tensor([[2, 0, 0], [1, 4, 0]], dtype=torch.int32)) diff --git a/source/isaaclab_fovi/test/test_rtx_camera.py b/source/isaaclab_fovi/test/test_rtx_camera.py index 475536832e13..02594a411ab5 100644 --- a/source/isaaclab_fovi/test/test_rtx_camera.py +++ b/source/isaaclab_fovi/test/test_rtx_camera.py @@ -5,22 +5,18 @@ """RTX camera contracts that need no renderer: construction, lens textures and their USD schema, and capture.""" -import math import tempfile from pathlib import Path from types import SimpleNamespace import pytest -import torch -import warp as wp from isaaclab_fovi.sensors.foveated_camera_cfg import FoveatedCameraCfg from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera -from isaaclab_fovi.sensors.lens_lut import apply_lens_lut_to_prim, build_lut_textures +from isaaclab_fovi.sensors.lens_lut import apply_lens_lut_to_prim from isaaclab_ov.renderers import OVRTXRendererCfg from isaaclab.sensors.camera.camera import Camera from isaaclab.sim import PinholeCameraCfg -from isaaclab.utils.warp import ProxyArray pytestmark = pytest.mark.kitless @@ -46,37 +42,6 @@ def test_near_clip_comes_from_spawn_or_else_the_camera_prim() -> None: assert FoveatedRTXCamera._near_clipping_distance(spawned, prim) == pytest.approx(0.01) -@pytest.mark.parametrize("native_grid", [False, True]) -def test_partial_capture_extracts_only_the_updated_environments(native_grid) -> None: - """Environments outside the update mask keep their samples, and each camera's near-plane offset is added once.""" - height, width = 4, 5 - texture = torch.arange(3 * height * width, dtype=torch.float32).reshape(3, height, width, 1) - if native_grid: - texels = [(py, px) for py in range(height) for px in range(width)] - else: - texels = [(3, 1), (0, 4), (2, 0), (1, 3), (3, 4), (0, 2), (2, 2)] - camera = SimpleNamespace( - cfg=SimpleNamespace(renderer_cfg=SimpleNamespace(renderer_type="ovrtx")), - # An OVRTX camera with distance_to_camera output adds each camera's near clip. - _offset_distance=True, - _native_grid=native_grid, - _near_clip=torch.tensor([0.25, 0.5, 0.75]).view(-1, 1, 1, 1), - # The renderer-bound texture buffers are ProxyArrays, as the parent camera allocates them. - _texture_output={"distance_to_camera": ProxyArray(wp.from_torch(texture))}, - _foveated_output={"distance_to_camera": torch.full((3, len(texels), 1, 1), -1.0)}, - _extract_py=torch.tensor([py for py, _ in texels]), - _extract_px=torch.tensor([px for _, px in texels]), - ) - updated = wp.array([True, False, True], dtype=wp.bool, device="cpu") - for _ in range(2): - FoveatedRTXCamera._extract_foveated_samples(camera, updated) - samples = camera._foveated_output["distance_to_camera"] - for env, near_clip in ((0, 0.25), (2, 0.75)): - expected = torch.tensor([float(texture[env, py, px, 0]) + near_clip for py, px in texels]) - torch.testing.assert_close(samples[env, :, 0, 0], expected, atol=0, rtol=0) - assert bool((samples[1] == -1.0).all()) - - def test_releasing_the_camera_removes_its_lens_textures(monkeypatch, tmp_path) -> None: monkeypatch.setattr(Camera, "__del__", lambda self, *args, **kwargs: None) camera = object.__new__(FoveatedRTXCamera) @@ -101,7 +66,6 @@ def construct(self, cfg): self.stage = stage def prepare(self): - self.cfg.height = self.cfg.width = 64 self._dir_tex_path, self._exit_tex_path = "/textures/enter.exr", "/textures/exit.exr" monkeypatch.setattr(Camera, "__init__", construct) @@ -112,6 +76,7 @@ def prepare(self): spawn=PinholeCameraCfg(), renderer_cfg=OVRTXRendererCfg(), data_types=["rgb"], + foveated_res=64, ) assert cfg.spawn.lock_camera camera = FoveatedRTXCamera(cfg) @@ -141,32 +106,3 @@ def test_lens_lut_survives_usd_export_without_schema_registration() -> None: "generalizedProjectionNDCTexturePath", ): assert not prim.HasProperty(name), name - - -def test_sample_set_lens_textures_place_samples_and_mark_rays_outside_the_field() -> None: - # A sample set with one sample per texel, in shuffled order, puts each sample's ray at its own texel. - size = 4 - axis = (torch.arange(size) + 0.5) / size - row, col = torch.meshgrid(axis, axis, indexing="ij") - centres = torch.stack((col, row), -1).reshape(-1, 2) - order = torch.randperm(size * size, generator=torch.Generator().manual_seed(0)) - directions = torch.nn.functional.normalize(torch.randn(size * size, 3, generator=torch.Generator().manual_seed(1))) - direction_texture, _ = build_lut_textures(centres[order], directions, size, size, 16, 16, device="cpu") - texels = (centres[order] * size).long() - torch.testing.assert_close(direction_texture[texels[:, 1], texels[:, 0]], directions) - - # The inverse lookup sends each in-field ray to its nearest sample, and every other ray to the invalid UV, never - # to the fovea. Three samples: the optical axis (OpenGL -z) and two rays 10 degrees off it. - angle = math.radians(10.0) - directions = torch.tensor( - [[0.0, 0.0, -1.0], [math.sin(angle), 0.0, -math.cos(angle)], [0.0, math.sin(angle), -math.cos(angle)]] - ) - uv = torch.tensor([[0.5, 0.5], [0.9, 0.5], [0.5, 0.9]]) - _, exit_texture = build_lut_textures(uv, directions, 8, 8, 32, 32, device="cpu") - texels = exit_texture.reshape(-1, exit_texture.shape[-1])[:, :2] - invalid = (texels == -1.0).all(dim=-1) - # Rays outside the 10 degree field outnumber those inside it on the hemisphere's octahedral grid. - assert invalid.float().mean() > 0.5 and (~invalid).any() - assert all(any(torch.equal(texel, sample) for sample in uv) for texel in texels[~invalid]) - # The octahedral centre is the optical axis, which reaches the axis sample. - torch.testing.assert_close(exit_texture[exit_texture.shape[0] // 2, exit_texture.shape[1] // 2, :2], uv[0]) diff --git a/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst b/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst deleted file mode 100644 index 94b3efa5d3dc..000000000000 --- a/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst +++ /dev/null @@ -1,3 +0,0 @@ -* Added the ``IsaacContrib-Cartpole-Camera-Fovi`` task in :mod:`isaaclab_tasks.contrib.active_gaze`: the Cartpole - camera task with a foveated camera whose gaze the policy moves, trained with gaze-supervised PPO and a fixed gaze - action noise. It is registered when the ``fovi`` extra is installed. diff --git a/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.minor b/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.minor deleted file mode 100644 index e69de29bb2d1..000000000000 diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/__init__.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/__init__.py deleted file mode 100644 index 9d0c06d83e82..000000000000 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/__init__.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""Active vision with a foveated camera: the policy moves the camera's gaze. - -The camera is :class:`isaaclab_fovi.sensors.FoveatedCamera`, from the optional ``fovi`` extra -(``uv sync --extra fovi``). The task is registered only when that extra is installed. -""" - -from importlib.util import find_spec - -import gymnasium as gym - -ISAACLAB_FOVI_AVAILABLE = find_spec("isaaclab_fovi") is not None and find_spec("fovi") is not None -"""Whether the ``fovi`` extra is installed: the foveated camera package and the fovi library it builds on.""" - -if ISAACLAB_FOVI_AVAILABLE: - gym.register( - id="IsaacContrib-Cartpole-Camera-Fovi", - entry_point="isaaclab.envs:ManagerBasedRLEnv", - disable_env_checker=True, - kwargs={ - "env_cfg_entry_point": f"{__name__}.cartpole_camera_fovi_env_cfg:CartpoleCameraFoviEnvCfg", - "rsl_rl_cfg_entry_point": f"{__name__}.agents:CartpoleCameraFoviPPORunnerCfg", - "default_agent": "rsl_rl", - }, - ) diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py deleted file mode 100644 index 3544c85a35fb..000000000000 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""Building blocks of active-gaze camera tasks: a foveated version of a stock camera, and the gaze observations.""" - -from __future__ import annotations - -from dataclasses import MISSING, fields - -from isaaclab_fovi import mdp -from isaaclab_fovi.sensors import FoveatedCameraCfg - -from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg, SceneEntityCfg -from isaaclab.sensors import CameraCfg -from isaaclab.utils import configclass - -from isaaclab_tasks.utils import PresetCfg, preset - - -def foveated_camera(camera: CameraCfg, foveated_res: int | None = None) -> FoveatedCameraCfg: - """A foveated camera at the camera's mount, with its optics, data types and renderer. - - The retina covers the camera's short side and is ``foveated_res`` samples across, by default the camera's width, - so the number of rendered rays stays close to the camera's pixels. Samples the camera does not see are zero. - The foveated camera keeps its own image size and per-frame pose updates, which render each new gaze. - """ - # A copy, so the foveated camera shares no nested configuration (spawn, renderer, offset) with the preset's. - camera = camera.copy() - own = {"class_type", "width", "height", "update_latest_camera_pose"} - values = {field.name: getattr(camera, field.name) for field in fields(CameraCfg) if field.name not in own} - resolution = camera.width if foveated_res is None else foveated_res - return FoveatedCameraCfg(**values, foveated_res=resolution, mask_to_sensor_fov=True) - - -def foveated_presets(cameras: PresetCfg, foveated_res: int | None = None) -> PresetCfg: - """The foveated version of every camera preset, under the same names. Other sensors are left out. - - ``foveated_res`` applies to every preset; by default each keeps its camera's width. - """ - options = {} - for name in cameras.__dataclass_fields__: - camera = getattr(cameras, name) - if not name.startswith("_") and isinstance(camera, CameraCfg): - options[name] = foveated_camera(camera, foveated_res) - return preset(**options) - - -def select_presets(options: PresetCfg, names) -> PresetCfg: - """The options of a preset whose names are in ``names``, plus its default.""" - return preset( - **{name: getattr(options, name) for name in options.__dataclass_fields__ if name in {*names, "default"}} - ) - - -def oracle_observations( - target_cfg: SceneEntityCfg, offset: tuple[float, float, float] = (0.0, 0.0, 0.0) -) -> OracleObservationsCfg: - """The teacher's gaze labels toward a point fixed to an asset.""" - return OracleObservationsCfg( - labels=ObservationTermCfg(func=mdp.gaze_teacher_labels, params={"target_cfg": target_cfg, "offset": offset}) - ) - - -@configclass -class GazeObservationsCfg(ObservationGroupCfg): - """The gaze, in field radii, and its velocity, in field radii per second.""" - - state = ObservationTermCfg(func=mdp.gaze_state) - - def __post_init__(self): - self.enable_corruption = False - self.concatenate_terms = True - - -@configclass -class OracleObservationsCfg(ObservationGroupCfg): - """The teacher's gaze labels. Training labels, never a policy input.""" - - labels: ObservationTermCfg = MISSING - - def __post_init__(self): - self.enable_corruption = False - self.concatenate_terms = True diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py deleted file mode 100644 index 409c686b00e5..000000000000 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""RSL-RL agents of the active-gaze tasks: the stock PPO with gaze supervision and a fixed gaze noise.""" - -from dataclasses import fields - -from isaaclab.utils import configclass, replace - -from isaaclab_rl.rsl_rl import RslRlMLPModelCfg, RslRlPpoAlgorithmCfg - -from isaaclab_tasks.core.cartpole.agents.rsl_rl_ppo_cfg import CartpoleCameraPPORunnerCfg - -from .gaze_distribution_cfg import GazeGaussianDistributionCfg -from .gaze_supervised_ppo_cfg import GazeSupervisedPPOCfg - - -def gaze_supervised(algorithm: RslRlPpoAlgorithmCfg, **kwargs) -> GazeSupervisedPPOCfg: - """The PPO settings of ``algorithm`` with gaze supervision by the teacher.""" - values = {field.name: getattr(algorithm, field.name) for field in fields(algorithm) if field.name != "class_name"} - return GazeSupervisedPPOCfg(**values, **kwargs) - - -def gaze_actor(actor: RslRlMLPModelCfg) -> RslRlMLPModelCfg: - """The stock actor with a fixed, small noise on its gaze actions, the last two.""" - stock = actor.distribution_cfg - head = GazeGaussianDistributionCfg(init_std=stock.init_std, std_type=stock.std_type, std_range=stock.std_range) - return replace(actor, distribution_cfg=head) - - -@configclass -class CartpoleCameraFoviPPORunnerCfg(CartpoleCameraPPORunnerCfg): - """The stock Cartpole camera PPO with gaze supervision; the actor and critic also see the gaze.""" - - experiment_name = "cartpole_camera_fovi" - obs_groups = {"actor": ["policy", "gaze"], "critic": ["critic", "gaze"]} - actor = gaze_actor(CartpoleCameraPPORunnerCfg().actor) - algorithm = gaze_supervised(CartpoleCameraPPORunnerCfg().algorithm) diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py deleted file mode 100644 index da42ff2226c3..000000000000 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""Cartpole with a foveated camera, in RGB or depth. - -The stock camera task with the camera foveated and two gaze actions. The teacher looks at the pole's tip. The retina -is :data:`RETINA_RES` samples across, enough for a task that only needs to see a bar. The policy gets two gaze actions, -whose noise is fixed, and the teacher's gaze labels supervise them during training. -""" - -from isaaclab_fovi import mdp - -from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg, SceneEntityCfg -from isaaclab.utils import configclass - -from isaaclab_tasks.core.cartpole import mdp as cartpole_mdp -from isaaclab_tasks.core.cartpole.cartpole_common import CartpoleTiledCameraCfg -from isaaclab_tasks.core.cartpole.cartpole_manager_camera_env_cfg import CartpoleCameraEnvCfg, CartpoleCameraSceneCfg -from isaaclab_tasks.core.cartpole.cartpole_manager_env_cfg import ActionsCfg as CartpoleActionsCfg -from isaaclab_tasks.core.cartpole.cartpole_manager_env_cfg import ObservationsCfg as CartpoleObservationsCfg -from isaaclab_tasks.utils import PresetCfg - -from .active_gaze_cfg import GazeObservationsCfg, foveated_presets, oracle_observations, select_presets - -POLE_TIP = (0.0, 0.0, 1.0) -"""The pole's tip in the pole's frame [m].""" - -RETINA_RES = 32 -"""Retina samples across; the stock camera is 96 pixels across.""" - - -def observations(data_type: str, image_term) -> object: - """The stock camera observations of ``data_type``, the gaze, and the teacher's labels.""" - - @configclass - class ObservationsCfg: - @configclass - class PolicyCfg(ObservationGroupCfg): - image = ObservationTermCfg( - func=image_term, - params={ - "sensor_cfg": SceneEntityCfg("tiled_camera"), - "data_type": data_type, - "channel_first": True, - "frame_stack": 2, - }, - ) - - def __post_init__(self): - self.enable_corruption = False - self.concatenate_terms = True - - policy: ObservationGroupCfg = PolicyCfg() - critic: ObservationGroupCfg = CartpoleObservationsCfg.PolicyCfg() - gaze: ObservationGroupCfg = GazeObservationsCfg() - oracle: ObservationGroupCfg = oracle_observations(SceneEntityCfg("robot", body_names="pole"), POLE_TIP) - - return ObservationsCfg() - - -@configclass -class SceneCfg(CartpoleCameraSceneCfg): - tiled_camera = select_presets(foveated_presets(CartpoleTiledCameraCfg(), RETINA_RES), ("rgb", "depth")) - - -@configclass -class ActionsCfg(CartpoleActionsCfg): - # The gaze must be the last action term. - gaze = mdp.GazeActionCfg(asset_name="tiled_camera") - - -@configclass -class CartpoleCameraFoviEnvCfg(PresetCfg): - """Cartpole with a foveated camera; ``presets=depth`` selects depth images.""" - - @configclass - class BaseCfg(CartpoleCameraEnvCfg.BaseCartpoleCameraEnvCfg): - scene: SceneCfg = SceneCfg(num_envs=512, env_spacing=20.0) - actions: ActionsCfg = ActionsCfg() - - rgb = BaseCfg(observations=observations("rgb", cartpole_mdp.image_rgb)) - depth = BaseCfg(observations=observations("depth", cartpole_mdp.image_depth)) - default = rgb diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution.py deleted file mode 100644 index 9829707c282f..000000000000 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution.py +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""Gaussian action head whose gaze actions have a fixed standard deviation.""" - -from __future__ import annotations - -import math - -import torch -from rsl_rl.modules.distribution import GaussianDistribution -from torch.distributions import Normal - -GAZE_ACTIONS = 2 -"""The gaze actions (tilt, pan) are the policy's last two actions.""" - - -class GazeGaussianDistribution(GaussianDistribution): - """Gaussian action head with a learned standard deviation for every action but the gaze, the last two, whose - standard deviation is fixed at ``gaze_std``. - - The gaze step clamps each gaze action to [-1, 1], so beyond that range a wider gaze distribution changes neither - the reward nor PPO's surrogate, and the entropy bonus grows a learned standard deviation without bound; the sampled - gaze then random-walks however well its mean follows the teacher. - - Args: - output_dim: Number of actions, the two gaze actions included. - init_std: Initial standard deviation of the other actions. - std_range: (min, max) clamp of the other actions' standard deviation. - std_type: Parameterization of the other actions' standard deviation: ``"scalar"`` or ``"log"``. - learn_std: Whether the other actions' standard deviation is learned. - gaze_std: Fixed standard deviation of the gaze actions. - """ - - def __init__( - self, - output_dim: int, - init_std: float = 1.0, - std_range: tuple[float, float] = (1e-6, 1e6), - std_type: str = "scalar", - learn_std: bool = True, - gaze_std: float = 0.1, - ) -> None: - if output_dim <= GAZE_ACTIONS: - raise ValueError(f"The gaze head needs actions besides the {GAZE_ACTIONS} gaze actions, got {output_dim}.") - if not (math.isfinite(gaze_std) and gaze_std > 0): - raise ValueError(f"gaze_std must be positive and finite, got {gaze_std!r}.") - # The learned parameter covers the other actions only. - super().__init__(output_dim - GAZE_ACTIONS, init_std, std_range, std_type, learn_std) - self.output_dim = output_dim - self.register_buffer("gaze_std", torch.full((GAZE_ACTIONS,), float(gaze_std))) - - def update(self, mlp_output: torch.Tensor) -> None: - """Update the distribution from the MLP output: learned noise for the other actions, fixed for the gaze.""" - if self.std_type == "scalar": - std = self.std_param.clamp(self.std_range[0], self.std_range[1]) - else: - std = self.log_std_param.clamp(self.log_std_range[0], self.log_std_range[1]).exp() - self._distribution = Normal(mlp_output, torch.cat((std, self.gaze_std))) diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution_cfg.py deleted file mode 100644 index fac45da54582..000000000000 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution_cfg.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""Configuration of :class:`~isaaclab_tasks.contrib.active_gaze.gaze_distribution.GazeGaussianDistribution`.""" - -from __future__ import annotations - -from isaaclab.utils import configclass - -from isaaclab_rl.rsl_rl import RslRlMLPModelCfg - - -@configclass -class GazeGaussianDistributionCfg(RslRlMLPModelCfg.GaussianDistributionCfg): - """Gaussian action head whose gaze actions, the last two, have a fixed standard deviation. - - ``init_std``, ``std_type`` and ``std_range`` apply to the other actions. - """ - - class_name: str = "isaaclab_tasks.contrib.active_gaze.gaze_distribution:GazeGaussianDistribution" - gaze_std: float = 0.1 - """Fixed standard deviation of the gaze actions. One action moves the gaze by the gaze action's ``step_size``.""" diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo.py deleted file mode 100644 index 3e1990dfdeb7..000000000000 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo.py +++ /dev/null @@ -1,134 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""PPO with gaze supervision by a teacher, for RSL-RL. - -The update follows :meth:`rsl_rl.algorithms.PPO.update` (BSD-3-Clause) for feedforward models without RND or -symmetry, and adds the teacher's gaze loss to the PPO loss. -""" - -from __future__ import annotations - -import math - -import torch -from rsl_rl.algorithms import PPO -from torch import nn - -from .gaze_distribution import GAZE_ACTIONS - - -def gaze_loss(mean: torch.Tensor, labels: torch.Tensor) -> torch.Tensor: - """Mean distance between the policy's gaze-action means and the teacher's, over valid labels. - - Args: - mean: The policy's gaze-action means, shape (batch, 2). - labels: The teacher's gaze actions and their validity, shape (batch, 3). - """ - valid = labels[:, 2] > 0.5 - # Invalid rows may hold NaN; replacing it keeps their (discarded) residuals finite, so no NaN reaches the gradients. - residual = torch.where(valid[:, None], mean - torch.nan_to_num(labels[:, :2]), 0.0) - return residual.norm(dim=-1).sum() / valid.sum().clamp_min(1) - - -class GazeSupervisedPPO(PPO): - """PPO whose loss also pulls the policy's gaze toward a teacher's. - - The gaze is the last two actions. The teacher's labels are the observation group ``oracle_group``, as - :class:`isaaclab_fovi.mdp.gaze_teacher_labels` computes them; they never enter the actor or the critic. Only the - means of the gaze actions are supervised; pair it with - :class:`~isaaclab_tasks.contrib.active_gaze.gaze_distribution.GazeGaussianDistribution`, which fixes their noise. - - Args: - oracle_loss_coef: Weight of the gaze loss. Zero trains plain PPO. - oracle_group: Observation group of the teacher's labels. - """ - - def __init__( - self, - actor, - critic, - storage, - *, - oracle_loss_coef: float = 1.0, - oracle_group: str = "oracle", - **kwargs, - ): - if actor.is_recurrent or critic.is_recurrent or kwargs.get("rnd_cfg") or kwargs.get("symmetry_cfg"): - raise ValueError("GazeSupervisedPPO supports feedforward models without RND or symmetry.") - if not math.isfinite(oracle_loss_coef) or oracle_loss_coef < 0: - raise ValueError("oracle_loss_coef must be finite and nonnegative.") - super().__init__(actor, critic, storage, **kwargs) - self.oracle_loss_coef = oracle_loss_coef - self.oracle_group = oracle_group - - def update(self) -> dict[str, float]: - totals = torch.zeros(5, device=self.device) - generator = self.storage.mini_batch_generator(self.num_mini_batches, self.num_learning_epochs) - for batch in generator: - if self.normalize_advantage_per_mini_batch: - with torch.no_grad(): - batch.advantages = (batch.advantages - batch.advantages.mean()) / (batch.advantages.std() + 1e-8) - with torch.amp.autocast( - device_type=torch.device(self.device).type, enabled=self.use_mixed_precision, dtype=torch.bfloat16 - ): - self.actor(batch.observations, stochastic_output=True) - log_prob = self.actor.get_output_log_prob(batch.actions) - values = self.critic(batch.observations) - entropy = self.actor.output_entropy.mean() - if self.desired_kl is not None and self.schedule == "adaptive": - self._adapt_learning_rate(batch.old_distribution_params, self.actor.output_distribution_params) - ratio = torch.exp(log_prob - batch.old_actions_log_prob.squeeze(-1)) - advantages = batch.advantages.squeeze(-1) - surrogate = torch.max( - -advantages * ratio, -advantages * ratio.clamp(1.0 - self.clip_param, 1.0 + self.clip_param) - ).mean() - value_error = (values - batch.returns).pow(2) - if self.use_clipped_value_loss: - clipped = batch.values + (values - batch.values).clamp(-self.clip_param, self.clip_param) - value_error = torch.max(value_error, (clipped - batch.returns).pow(2)) - value_loss = value_error.mean() - loss = surrogate + self.value_loss_coef * value_loss - self.entropy_coef * entropy - if self.oracle_loss_coef > 0: - labels = batch.observations[self.oracle_group].float() - oracle = gaze_loss(self.actor.output_mean[:, -GAZE_ACTIONS:].float(), labels) - valid = (labels[:, 2] > 0.5).float().mean() - loss = loss + self.oracle_loss_coef * oracle - else: - # Plain PPO: the teacher's labels are neither needed nor read. - oracle = valid = torch.zeros((), device=self.device) - self.optimizer.zero_grad() - loss.backward() - if self.is_multi_gpu: - self.reduce_parameters() - nn.utils.clip_grad_norm_(self.actor.parameters(), self.max_grad_norm) - nn.utils.clip_grad_norm_(self.critic.parameters(), self.max_grad_norm) - self.optimizer.step() - totals += torch.stack((value_loss, surrogate, entropy, oracle, valid)).detach().float() - obs = self.storage.observations.flatten(0, 1) - self.actor.update_normalization(obs) - self.critic.update_normalization(obs) - self.storage.clear() - means = (totals / (self.num_learning_epochs * self.num_mini_batches)).tolist() - return dict(zip(("value", "surrogate", "entropy", "oracle", "oracle_valid"), means, strict=True)) - - def _adapt_learning_rate(self, old_params, new_params): - """Adapt the learning rate to the policy's KL divergence, as PPO's adaptive schedule does.""" - with torch.inference_mode(): - kl = self.actor.get_kl_divergence(old_params, new_params).mean() - if self.is_multi_gpu: - torch.distributed.all_reduce(kl, op=torch.distributed.ReduceOp.SUM) - kl /= self.gpu_world_size - if self.gpu_global_rank == 0: - if kl > self.desired_kl * 2.0: - self.learning_rate = max(1e-5, self.learning_rate / 1.5) - elif 0.0 < kl < self.desired_kl / 2.0: - self.learning_rate = min(1e-2, self.learning_rate * 1.5) - if self.is_multi_gpu: - rate = torch.tensor(self.learning_rate, device=self.device) - torch.distributed.broadcast(rate, src=0) - self.learning_rate = rate.item() - for group in self.optimizer.param_groups: - group["lr"] = self.learning_rate diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo_cfg.py deleted file mode 100644 index 907dc6773afb..000000000000 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo_cfg.py +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""Configuration of :class:`~isaaclab_tasks.contrib.active_gaze.gaze_supervised_ppo.GazeSupervisedPPO`.""" - -from __future__ import annotations - -from isaaclab.utils import configclass - -from isaaclab_rl.rsl_rl import RslRlPpoAlgorithmCfg - - -@configclass -class GazeSupervisedPPOCfg(RslRlPpoAlgorithmCfg): - """PPO whose loss also pulls the policy's gaze toward a teacher's. - - See :class:`~isaaclab_tasks.contrib.active_gaze.gaze_supervised_ppo.GazeSupervisedPPO`. - """ - - class_name: str = "isaaclab_tasks.contrib.active_gaze.gaze_supervised_ppo:GazeSupervisedPPO" - oracle_loss_coef: float = 1.0 - """Weight of the gaze loss. Zero trains plain PPO.""" - oracle_group: str = "oracle" - """Observation group of the teacher's labels.""" diff --git a/source/isaaclab_tasks/test/contrib/test_active_gaze_ppo.py b/source/isaaclab_tasks/test/contrib/test_active_gaze_ppo.py deleted file mode 100644 index 3ed040c4f789..000000000000 --- a/source/isaaclab_tasks/test/contrib/test_active_gaze_ppo.py +++ /dev/null @@ -1,129 +0,0 @@ -# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). -# All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause - -"""Gaze-supervised PPO and the fixed-noise gaze head of the active-gaze tasks, without a simulator.""" - -import pytest -import torch -from rsl_rl.algorithms import PPO -from rsl_rl.models import MLPModel -from rsl_rl.storage import RolloutStorage -from tensordict import TensorDict - -from isaaclab_tasks.contrib.active_gaze.gaze_distribution import GazeGaussianDistribution -from isaaclab_tasks.contrib.active_gaze.gaze_distribution_cfg import GazeGaussianDistributionCfg -from isaaclab_tasks.contrib.active_gaze.gaze_supervised_ppo import GazeSupervisedPPO, gaze_loss - -pytestmark = pytest.mark.kitless - -NUM_ENVS = 64 -STEPS = 8 - - -def test_gaze_loss_ignores_invalid_labels(): - mean = torch.tensor([[0.0, 0.0], [1.0, 1.0]], requires_grad=True) - labels = torch.tensor([[0.3, 0.4, 1.0], [float("nan"), float("nan"), 0.0]]) - loss = gaze_loss(mean, labels) - loss.backward() - assert float(loss.detach()) == pytest.approx(0.5) - assert torch.isfinite(mean.grad).all() and not mean.grad[1].any() - - -def _algorithm( - oracle_loss_coef: float = 1.0, with_labels: bool = True, stock: bool = False, gaze_head: bool = False -) -> tuple[PPO | GazeSupervisedPPO, TensorDict]: - torch.manual_seed(0) - labels = torch.rand(NUM_ENVS, 3) * 2 - 1 - labels[:, 2] = (torch.arange(NUM_ENVS) % 4 != 0).float() - labels[labels[:, 2] == 0, :2] = float("nan") - groups = {"policy": torch.randn(NUM_ENVS, 6)} | ({"oracle": labels} if with_labels else {}) - obs = TensorDict(groups, batch_size=[NUM_ENVS]) - model_groups = {"actor": ["policy"], "critic": ["policy"]} - distribution = {"class_name": "GaussianDistribution", "init_std": 1.0} - if gaze_head: - head = GazeGaussianDistributionCfg(init_std=1.0, gaze_std=0.1) - distribution = {"class_name": head.class_name, "init_std": 1.0, "gaze_std": head.gaze_std} - actor = MLPModel(obs, model_groups, "actor", 3, hidden_dims=[32], distribution_cfg=distribution) - critic = MLPModel(obs, model_groups, "critic", 1, hidden_dims=[32]) - storage = RolloutStorage("rl", NUM_ENVS, STEPS, obs, [3], "cpu") - settings = dict(num_learning_epochs=4, num_mini_batches=4, learning_rate=3e-3, schedule="fixed", device="cpu") - if stock: - return PPO(actor, critic, storage, **settings), obs - return GazeSupervisedPPO(actor, critic, storage, oracle_loss_coef=oracle_loss_coef, **settings), obs - - -def _train(algorithm: PPO, obs: TensorDict, iterations: int) -> dict[str, float]: - for _ in range(iterations): - for _ in range(STEPS): - with torch.inference_mode(): - algorithm.act(obs) - algorithm.process_env_step(obs, torch.zeros(NUM_ENVS), torch.zeros(NUM_ENVS), {}) - algorithm.compute_returns(obs) - losses = algorithm.update() - return losses - - -def test_update_pulls_the_gaze_toward_the_teacher(): - algorithm, obs = _algorithm() - valid = obs["oracle"][:, 2] > 0.5 - - def distance() -> float: - with torch.no_grad(): - mean = algorithm.actor(obs)[:, -2:] - return float((mean - obs["oracle"][:, :2])[valid].norm(dim=-1).mean()) - - before = distance() - losses = _train(algorithm, obs, 40) - assert losses["oracle_valid"] == pytest.approx(0.75) - assert all(torch.isfinite(p).all() for p in algorithm.actor.parameters()) - assert distance() < 0.7 * before - - -def test_zero_coefficient_update_matches_stock_ppo_without_labels(): - def updated(stock: bool) -> tuple[list[torch.Tensor], list[torch.Tensor], dict[str, float]]: - algorithm, obs = _algorithm(oracle_loss_coef=0.0, with_labels=False, stock=stock) - modules = (algorithm.actor, algorithm.critic) - initial = [p.detach().clone() for module in modules for p in module.parameters()] - torch.manual_seed(1) - losses = _train(algorithm, obs, 1) - return initial, [p.detach().clone() for module in modules for p in module.parameters()], losses - - initial, gaze_params, losses = updated(stock=False) - stock_initial, stock_params, stock_losses = updated(stock=True) - assert losses["oracle"] == 0.0 and losses["oracle_valid"] == 0.0 - for name in ("value", "surrogate", "entropy"): - assert losses[name] == pytest.approx(stock_losses[name], rel=1e-6, abs=1e-7) - for start, stock_start in zip(initial, stock_initial, strict=True): - torch.testing.assert_close(start, stock_start, atol=0, rtol=0) - for param, stock_param in zip(gaze_params, stock_params, strict=True): - torch.testing.assert_close(param, stock_param, atol=0, rtol=0) - assert all(not torch.equal(param, start) for param, start in zip(gaze_params, initial, strict=True)) - - -def test_gaze_head_keeps_the_gaze_noise_fixed_while_ppo_learns_the_rest(): - """The entropy bonus and the surrogate move the other actions' noise, never the gaze's.""" - algorithm, obs = _algorithm(gaze_head=True) - algorithm.entropy_coef = 0.5 - head = algorithm.actor.distribution - assert isinstance(head, GazeGaussianDistribution) - assert head.std_param.shape == (1,) - _train(algorithm, obs, iterations=3) - with torch.no_grad(): - head.update(torch.zeros(1, 3)) - std = head.std[0] - torch.testing.assert_close(std[1:], torch.full((2,), 0.1)) - assert abs(float(std[0]) - 1.0) > 1e-3 - # The gaze noise is part of the saved policy, so a checkpoint restores it. - assert torch.equal(head.state_dict()["gaze_std"], torch.full((2,), 0.1)) - - -def test_gaze_head_fixes_the_last_two_actions_noise_and_rejects_invalid_settings(): - head = GazeGaussianDistribution(5, init_std=2.0, std_type="log", gaze_std=0.05) - assert head.input_dim == 5 - head.update(torch.zeros(3, 5)) - torch.testing.assert_close(head.std, torch.tensor([[2.0, 2.0, 2.0, 0.05, 0.05]]).expand(3, -1)) - for output_dim, gaze_std in ((5, 0.0), (5, float("inf")), (2, 0.1)): - with pytest.raises(ValueError, match="gaze"): - GazeGaussianDistribution(output_dim, gaze_std=gaze_std) From 72a9d8743566404da6281a1ce4cf684f55da3117 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 15:59:24 -0800 Subject: [PATCH 02/14] Keep Cartpole with stock PPO and concise foveation docs --- .../source/_static/css/environment-browser.js | 1 + .../concepts/sensors/foveated_camera.rst | 230 +++--------------- .../active-gaze-cartpole.added.rst | 2 + .../changelog.d/active-gaze-cartpole.minor | 0 .../contrib/active_gaze/__init__.py | 29 +++ .../contrib/active_gaze/agents.py | 18 ++ .../cartpole_camera_fovi_env_cfg.py | 86 +++++++ .../test/core/test_cartpole_camera_presets.py | 22 ++ 8 files changed, 194 insertions(+), 194 deletions(-) create mode 100644 source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst create mode 100644 source/isaaclab_tasks/changelog.d/active-gaze-cartpole.minor create mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/__init__.py create mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py create mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py diff --git a/docs/source/_static/css/environment-browser.js b/docs/source/_static/css/environment-browser.js index 192099aa37f9..3153655ef5ba 100644 --- a/docs/source/_static/css/environment-browser.js +++ b/docs/source/_static/css/environment-browser.js @@ -63,6 +63,7 @@ ["IsaacContrib-Assemble-Trocar-G129-Dex3", "rlinf", "", "", "", "environments/previews/manipulation/g1_assemble_trocar.jpg"], ["IsaacContrib-AutoMate-Assembly-Direct", "rl_games", "", "", "", "environment-previews/automate_assembly.jpg"], ["IsaacContrib-AutoMate-Disassembly-Direct", "rl_games", "", "", "", "environment-previews/automate_disassembly.jpg"], + ["IsaacContrib-Cartpole-Camera-Fovi", "rsl_rl", "isaacsim_physx,newton_kamino,newton_mjwarp,newton_steel,ovphysx", "isaacsim_rtx,newton_optix,newton_warp,ovrtx", "depth,rgb", "", false, {}, {}, "", null, ["||", "||depth", "||rgb", "|isaacsim_rtx|", "|isaacsim_rtx|depth", "|isaacsim_rtx|rgb", "|newton_optix|", "|newton_optix|depth", "|newton_optix|rgb", "|newton_warp|", "|newton_warp|depth", "|newton_warp|rgb", "|ovrtx|", "|ovrtx|depth", "|ovrtx|rgb", "isaacsim_physx||", "isaacsim_physx||depth", "isaacsim_physx||rgb", "isaacsim_physx|isaacsim_rtx|", "isaacsim_physx|isaacsim_rtx|depth", "isaacsim_physx|isaacsim_rtx|rgb", "isaacsim_physx|newton_optix|", "isaacsim_physx|newton_optix|depth", "isaacsim_physx|newton_optix|rgb", "isaacsim_physx|newton_warp|", "isaacsim_physx|newton_warp|depth", "isaacsim_physx|newton_warp|rgb", "newton_kamino||", "newton_kamino||depth", "newton_kamino||rgb", "newton_kamino|isaacsim_rtx|", "newton_kamino|isaacsim_rtx|depth", "newton_kamino|isaacsim_rtx|rgb", "newton_kamino|newton_optix|", "newton_kamino|newton_optix|depth", "newton_kamino|newton_optix|rgb", "newton_kamino|newton_warp|", "newton_kamino|newton_warp|depth", "newton_kamino|newton_warp|rgb", "newton_kamino|ovrtx|", "newton_kamino|ovrtx|depth", "newton_kamino|ovrtx|rgb", "newton_mjwarp||", "newton_mjwarp||depth", "newton_mjwarp||rgb", "newton_mjwarp|isaacsim_rtx|", "newton_mjwarp|isaacsim_rtx|depth", "newton_mjwarp|isaacsim_rtx|rgb", "newton_mjwarp|newton_optix|", "newton_mjwarp|newton_optix|depth", "newton_mjwarp|newton_optix|rgb", "newton_mjwarp|newton_warp|", "newton_mjwarp|newton_warp|depth", "newton_mjwarp|newton_warp|rgb", "newton_mjwarp|ovrtx|", "newton_mjwarp|ovrtx|depth", "newton_mjwarp|ovrtx|rgb", "newton_steel||", "newton_steel||depth", "newton_steel||rgb", "newton_steel|isaacsim_rtx|", "newton_steel|isaacsim_rtx|depth", "newton_steel|isaacsim_rtx|rgb", "newton_steel|newton_optix|", "newton_steel|newton_optix|depth", "newton_steel|newton_optix|rgb", "newton_steel|newton_warp|", "newton_steel|newton_warp|depth", "newton_steel|newton_warp|rgb", "newton_steel|ovrtx|", "newton_steel|ovrtx|depth", "newton_steel|ovrtx|rgb", "ovphysx||", "ovphysx||depth", "ovphysx||rgb", "ovphysx|newton_optix|", "ovphysx|newton_optix|depth", "ovphysx|newton_optix|rgb", "ovphysx|newton_warp|", "ovphysx|newton_warp|depth", "ovphysx|newton_warp|rgb", "ovphysx|ovrtx|", "ovphysx|ovrtx|depth", "ovphysx|ovrtx|rgb"]], ["IsaacContrib-Cartpole-Camera-Showcase-Direct", "skrl", "", "", "box_box,box_discrete,box_multidiscrete,dict_box,dict_discrete,dict_multidiscrete,tuple_box,tuple_discrete,tuple_multidiscrete", "", false, {}, {}, "", null, ["||", "||box_box", "||box_discrete", "||box_multidiscrete", "||dict_box", "||dict_discrete", "||dict_multidiscrete", "||tuple_box", "||tuple_discrete", "||tuple_multidiscrete"]], ["IsaacContrib-Cartpole-Showcase-Direct", "skrl", "isaacsim_physx,newton_kamino,newton_mjwarp,newton_steel,ovphysx", "", "box_box,box_discrete,box_multidiscrete,dict_box,dict_discrete,dict_multidiscrete,discrete_box,discrete_discrete,discrete_multidiscrete,multidiscrete_box,multidiscrete_discrete,multidiscrete_multidiscrete,tuple_box,tuple_discrete,tuple_multidiscrete", "environment-previews/cartpole.jpg", false, {}, {}, "", null, ["||", "||box_box", "||box_discrete", "||box_multidiscrete", "||dict_box", "||dict_discrete", "||dict_multidiscrete", "||discrete_box", "||discrete_discrete", "||discrete_multidiscrete", "||multidiscrete_box", "||multidiscrete_discrete", "||multidiscrete_multidiscrete", "||tuple_box", "||tuple_discrete", "||tuple_multidiscrete", "isaacsim_physx||", "isaacsim_physx||box_box", "isaacsim_physx||box_discrete", "isaacsim_physx||box_multidiscrete", "isaacsim_physx||dict_box", "isaacsim_physx||dict_discrete", "isaacsim_physx||dict_multidiscrete", "isaacsim_physx||discrete_box", "isaacsim_physx||discrete_discrete", "isaacsim_physx||discrete_multidiscrete", "isaacsim_physx||multidiscrete_box", "isaacsim_physx||multidiscrete_discrete", "isaacsim_physx||multidiscrete_multidiscrete", "isaacsim_physx||tuple_box", "isaacsim_physx||tuple_discrete", "isaacsim_physx||tuple_multidiscrete", "newton_kamino||", "newton_kamino||box_box", "newton_kamino||box_discrete", "newton_kamino||box_multidiscrete", "newton_kamino||dict_box", "newton_kamino||dict_discrete", "newton_kamino||dict_multidiscrete", "newton_kamino||discrete_box", "newton_kamino||discrete_discrete", "newton_kamino||discrete_multidiscrete", "newton_kamino||multidiscrete_box", "newton_kamino||multidiscrete_discrete", "newton_kamino||multidiscrete_multidiscrete", "newton_kamino||tuple_box", "newton_kamino||tuple_discrete", "newton_kamino||tuple_multidiscrete", "newton_mjwarp||", "newton_mjwarp||box_box", "newton_mjwarp||box_discrete", "newton_mjwarp||box_multidiscrete", "newton_mjwarp||dict_box", "newton_mjwarp||dict_discrete", "newton_mjwarp||dict_multidiscrete", "newton_mjwarp||discrete_box", "newton_mjwarp||discrete_discrete", "newton_mjwarp||discrete_multidiscrete", "newton_mjwarp||multidiscrete_box", "newton_mjwarp||multidiscrete_discrete", "newton_mjwarp||multidiscrete_multidiscrete", "newton_mjwarp||tuple_box", "newton_mjwarp||tuple_discrete", "newton_mjwarp||tuple_multidiscrete", "newton_steel||", "newton_steel||box_box", "newton_steel||box_discrete", "newton_steel||box_multidiscrete", "newton_steel||dict_box", "newton_steel||dict_discrete", "newton_steel||dict_multidiscrete", "newton_steel||discrete_box", "newton_steel||discrete_discrete", "newton_steel||discrete_multidiscrete", "newton_steel||multidiscrete_box", "newton_steel||multidiscrete_discrete", "newton_steel||multidiscrete_multidiscrete", "newton_steel||tuple_box", "newton_steel||tuple_discrete", "newton_steel||tuple_multidiscrete", "ovphysx||", "ovphysx||box_box", "ovphysx||box_discrete", "ovphysx||box_multidiscrete", "ovphysx||dict_box", "ovphysx||dict_discrete", "ovphysx||dict_multidiscrete", "ovphysx||discrete_box", "ovphysx||discrete_discrete", "ovphysx||discrete_multidiscrete", "ovphysx||multidiscrete_box", "ovphysx||multidiscrete_discrete", "ovphysx||multidiscrete_multidiscrete", "ovphysx||tuple_box", "ovphysx||tuple_discrete", "ovphysx||tuple_multidiscrete"]], ["IsaacContrib-Deploy-GearAssembly-Rizon4s-Grav", "rsl_rl", "", "", "", "environment-previews/rizon4s_gear_assembly.jpg"], diff --git a/docs/source/concepts/sensors/foveated_camera.rst b/docs/source/concepts/sensors/foveated_camera.rst index f88dbe881771..69dff45ce20e 100644 --- a/docs/source/concepts/sensors/foveated_camera.rst +++ b/docs/source/concepts/sensors/foveated_camera.rst @@ -5,219 +5,61 @@ Foveated Camera =============== -A :class:`~sensors.FoveatedCamera` samples the scene densely where it looks and sparsely in the periphery, as a -retina does, instead of on a uniform pixel grid. It is a :class:`~isaaclab.sensors.Camera` whose rays are laid out -by the `fovi `__ library, and its gaze moves inside the field of view of the -physical camera it looks through. The camera implements the foveated rendering of -`FOVI-Dex `__. +A :class:`~sensors.FoveatedCamera` samples densely at its fixation and sparsely in the periphery. +The `fovi `__ library maps each cell of an upright square grid to a viewing ray. +Moving the gaze rotates these rays relative to the physical camera's mount. .. figure:: ../../_static/overview/sensors/foveated_camera_overview.jpg - :target: ../../_static/overview/sensors/foveated_camera_overview.jpg - :align: center - :figwidth: 100% - :alt: The retina's rays on a viewing sphere and the image the camera publishes, at two fixations. + :alt: The foveated ray grid and the published images at two fixations. - The demo scene through a foveated camera, fixating two objects. Left of each pair: the viewing sphere seen from - behind the camera, textured with the physical camera's 90° pinhole image (green outline). The blue lattice is - every 16th row and column of the 128 × 128 retina, and the blue circle its edge; grey lines fall outside the - physical camera's image. Right: the image the camera publishes, dense at the fixation and sparse in the - periphery. + Each pair shows the retinal rays on the viewing sphere and the image published at that fixation. -The camera comes with the ``fovi`` extra: +Sampling +-------- -.. code-block:: bash - - uv sync --extra fovi - -The demo moves the gaze from object to object while the viewer shows the retina: - -.. code-block:: bash - - uv run --extra fovi isaaclab demo foveated-camera - -How the retina samples the scene --------------------------------- - -The retina places its samples by visual angle, with a density that falls off from the fixation as the cortical -magnification function (CMF) of human vision does. At eccentricity :math:`r` from the fixation, in degrees, +At an angular distance :math:`r` from fixation, the cortical magnification is :math:`M(r)=1/(r+a)`. +For a normalized grid radius :math:`\rho` and retinal half-field angle :math:`h`, the ray's angular distance is .. math:: - M(r) = \frac{1}{r + a}, \qquad w(r) = \int_0^r M(t)\,dt = \log\left(1 + \frac{r}{a}\right), - -where :math:`a` is :attr:`~sensors.FoveatedCameraCfg.cmf_a_deg`, :math:`M` is the cortical distance per degree of -visual angle, and :math:`w` is the cortical distance from the fixation. Samples spaced evenly in :math:`w` are dense -near the fixation and sparse far from it. - -The camera lays an :math:`N \times N` lattice over this cortical -space, with :math:`N` = :attr:`~sensors.FoveatedCameraCfg.foveated_res`. Lattice point -:math:`\mathbf{c}_{ij} = (\xi_i, \xi_j)`, with :math:`\xi_i = -1 + (2i + 1)/N`, samples at angle -:math:`\theta = \operatorname{atan2}(c_y, c_x)` around the fixation and eccentricity - -.. math:: - - r(\rho) = a\left[\left(1 + \frac{r_{\max}}{a}\right)^{\rho} - 1\right], \qquad \rho = \lVert \mathbf{c}_{ij} \rVert_2, - -so the lattice's radius is proportional to :math:`w`. :math:`r_{\max}` is half the retina's field of view. Lattice -points with :math:`\rho > 1` lie outside the circular field and publish zero. The camera casts each sample's ray - -.. math:: - - \mathbf{d} = (\sin r \cos\theta,\; -\sin r \sin\theta,\; \cos r)^\top - -in the camera frame (:math:`x` right, :math:`y` down, :math:`z` forward), turns it by the gaze, and renders it. The -published image keeps the lattice's layout, so it is an upright :math:`N \times N` image that convolutional networks -take as is. - -Configure a foveated camera ---------------------------- - -Add a :class:`~sensors.FoveatedCameraCfg` to a scene like any camera configuration. The renderer selects how the -retina is rendered: - -.. list-table:: - :header-rows: 1 - :widths: 45 55 - - * - Renderer configuration - - Rendering - * - :class:`~isaaclab_newton.renderers.NewtonWarpRendererCfg` - - One ray per retinal sample. - * - :class:`~isaaclab_physx.renderers.IsaacRtxRendererCfg`, - :class:`~isaaclab_ov.renderers.OVRTXRendererCfg` - - A lens lookup texture on the camera prim maps the image to the retina's rays. - -The camera also accepts the Newton OptiX renderer (``optix`` extra), which receives the same rays as Newton Warp. On -the RTX renderers, :attr:`~sensors.FoveatedCameraCfg.exit_texture_size` sets the side of the inverse lens texture, -which maps rays back to samples; the default, four times the grid side and at least 128, separates neighbouring -samples. - -.. figure:: ../../_static/overview/sensors/foveated_camera_renderers.jpg - :target: ../../_static/overview/sensors/foveated_camera_renderers.jpg - :align: center - :figwidth: 80% - :alt: The same retina and fixation rendered by Newton Warp, Isaac RTX and OVRTX. + r(\rho) = a\left[\left(1 + h/a\right)^\rho - 1\right]. - The demo's first fixation on each renderer. Newton Warp shades one ray per sample; the RTX renderers render - through the lens texture with their own anti-aliasing, so their edges are softer. +Smaller :attr:`~sensors.FoveatedCameraCfg.cmf_a_deg` concentrates more samples near fixation. A large value gives +nearly uniform radial angular spacing on the same grid. For a grid of side +:attr:`~sensors.FoveatedCameraCfg.foveated_res`, the camera publishes ``(num_envs, N, N, channels)``. +Cells outside the circular retinal footprint are zero. -.. code-block:: python +Camera setup and gaze +--------------------- - import isaaclab.sim as sim_utils - from isaaclab_fovi.sensors import FoveatedCameraCfg - from isaaclab_newton.renderers import NewtonWarpRendererCfg - - eye = FoveatedCameraCfg( - prim_path="{ENV_REGEX_NS}/Eye", - data_types=["rgb"], - renderer_cfg=NewtonWarpRendererCfg(), - spawn=sim_utils.PinholeCameraCfg(), - foveated_res=64, - ) - -The camera computes its image size from the retina. It publishes an upright image of -shape ``(num_envs, foveated_res, foveated_res, channels)`` in :attr:`~isaaclab.sensors.Camera.data`, like any -camera, and any output the renderer supports. - -The physical camera -~~~~~~~~~~~~~~~~~~~ - -The retina places its samples by visual angle inside the image of a physical camera, and its rays are cast at those -angles, so no pinhole image is resampled. Its field of view, :math:`2 r_{\max}`, is the angle the camera's image -spans across its short side. By default that camera is the one ``spawn`` creates: - -* :class:`~isaaclab.sim.PinholeCameraCfg` optics give an ideal pinhole. -* An OpenCV model in ``spawn.distortion`` gives that calibrated camera. An - :class:`~isaaclab.sim.OpenCvFisheyeDistortionCfg` with zero coefficients is an ideal equidistant fisheye. - -For any other calibrated camera, or a camera prim without spawn configuration, set -:attr:`~sensors.FoveatedCameraCfg.camera_model` to the fields of a ``fovi.sensing.projection.CameraModel``: - -.. code-block:: python - - camera_model = { - "model": "pinhole", # or "fisheye" - "image_size": (480, 640), # (height, width) - "intrinsics": (550.0, 550.0, 319.5, 239.5), # fx, fy, cx, cy [px] - } - -The same fields configure fovi's software sampler on images from a real camera: it samples the camera's image at -the pixels :math:`\Pi(R\,\mathbf{d})` the rendered rays project to, where :math:`\Pi` is the camera's projection -and :math:`R` the gaze rotation, so a policy sees the same retina in simulation and on hardware. - -The projection is set in the configuration. :meth:`~sensors.FoveatedCamera.set_intrinsic_matrices` leaves a -foveated camera as configured and warns, as cameras with an OpenCV lens model do. - -:attr:`~sensors.FoveatedCameraCfg.retinal_window_fraction` shrinks the retina's window to a fraction of the image's -short side, or of its long side with :attr:`~sensors.FoveatedCameraCfg.retinal_window_reference_side` set to -``"long"``. For a camera mounted rolled, :attr:`~sensors.FoveatedCameraCfg.image_rotation_deg` turns the rays back -about the optical axis (180 for an upside-down sensor), so the published image, the sensor mask and the gaze stay -upright. - -Foveation strength -~~~~~~~~~~~~~~~~~~ - -:attr:`~sensors.FoveatedCameraCfg.cmf_a_deg` is the CMF constant :math:`a`. Smaller values concentrate more samples -at the fixation; the default, 0.591, is an estimate from human data. Neighbouring grid samples lie about - -.. math:: - - \Delta r \approx \frac{2}{N} \log\left(1 + \frac{r_{\max}}{a}\right) (r + a) - -apart at eccentricity :math:`r`. For the demo's 128 × 128 retina over a 90° field, that is 0.04° at the fixation -and 3.1° at the edge, compared with a uniform radial angular step of about 0.7°. A value of :math:`a` much larger -than the field of view gives nearly uniform radial angular spacing on the same lattice: +Install the ``fovi`` extra to run the camera demo. .. code-block:: bash - uv run --extra fovi isaaclab demo foveated-camera env.scene.eye.cmf_a_deg=1000 - -.. figure:: ../../_static/overview/sensors/foveated_camera_strength.jpg - :target: ../../_static/overview/sensors/foveated_camera_strength.jpg - :align: center - :figwidth: 100% - :alt: The physical camera's image and the 128 x 128 retina at four CMF constants. - - The demo scene with the gaze on the optical axis. Left: the physical camera's pinhole image, with the retina's - field circled. Right: the published 128 × 128 image at four values of ``cmf_a_deg``. - -Move the gaze -------------- - -The gaze turns the retina relative to the physical camera's optical axis: - -.. code-block:: python + uv run --extra fovi isaaclab demo foveated-camera - # (tilt, pan) [deg] from the optical axis, shape (num_envs, 2): positive tilt looks up, positive pan looks left. - camera.set_gaze_angles(angles) +Add a :class:`~sensors.FoveatedCameraCfg` to a scene like any camera configuration. Newton Warp and OptiX render +the sample rays directly. Isaac RTX and OVRTX use lens lookup textures. -The gaze stays relative to the camera's mount when the mount moves, and -:meth:`~sensors.FoveatedCamera.get_world_poses` reports the mount without the gaze. Set -:attr:`~sensors.FoveatedCameraCfg.mask_to_sensor_fov` to zero the samples that fall outside the physical camera's -image at the current gaze, so that the retina only sees what the camera could. A real camera cannot provide those -samples, so a policy meant for hardware should train with the mask. +The retinal field of view defaults to the angle spanned by the short side of the physical camera's image. +The camera reads ideal pinhole optics or supported OpenCV distortion from ``spawn``. Supply +:attr:`~sensors.FoveatedCameraCfg.camera_model` for explicit calibration, including when using an existing +camera prim. The :attr:`~sensors.FoveatedCameraCfg.retinal_window_fraction` setting shrinks the retinal window. -.. figure:: ../../_static/overview/sensors/foveated_camera_gaze_mask.jpg - :target: ../../_static/overview/sensors/foveated_camera_gaze_mask.jpg - :align: center - :figwidth: 80% - :alt: The retina in the camera image at a gaze 38 degrees to the left, without and with the sensor mask. +Call ``camera.set_gaze_angles(angles)`` with an array shaped ``(num_envs, 2)`` in tilt, pan order and in degrees. +Positive tilt looks up and positive pan looks left. Enable :attr:`~sensors.FoveatedCameraCfg.mask_to_sensor_fov` +to zero rays that land outside the physical image at the current gaze. This mask moves relative to the retinal grid +as the gaze changes. - The gaze 38° left of the optical axis. Left: the retina's lattice in the physical camera's image; its grey part - lies outside the image. Middle: without the mask, rays render beyond the camera's view. Right: with the mask, those - samples are zero. +Cartpole example +---------------- -Gaze actions ------------- +``IsaacContrib-Cartpole-Camera-Fovi`` uses a 32 × 32 retina and two bounded gaze actions. The actor observes the camera +image and the gaze state. Use ``presets=depth`` to select depth instead of RGB. -For a manager-based environment, :class:`~mdp.GazeActionCfg` adds two bounded tilt and pan increments in units of -the retinal field radius. :func:`~mdp.gaze_state` reports the resulting angles and angular velocity. The action -resets the gaze to the optical axis at the start of each episode. +.. code-block:: bash -Further reading ---------------- + uv run --extra fovi --extra rsl-rl isaaclab train --rl_library rsl_rl --task IsaacContrib-Cartpole-Camera-Fovi -* `FOVI-Dex `__: foveated rendering and active gaze for perceptive reinforcement - learning of dexterous manipulation, with interactive demos. -* `fovi `__: the foveated sampling library, its sampling styles, and foveated vision - networks. +For other manager-based tasks, use :class:`~mdp.GazeActionCfg` to add the tilt and pan actions and +:func:`~mdp.gaze_state` to observe the angles and angular velocity in units of the retinal field radius. diff --git a/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst b/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst new file mode 100644 index 000000000000..6a26475420f2 --- /dev/null +++ b/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst @@ -0,0 +1,2 @@ +* Added the ``IsaacContrib-Cartpole-Camera-Fovi`` task with foveated RGB and depth presets, policy-controlled + gaze, and the stock RSL-RL PPO runner. The task is available with the ``fovi`` extra. diff --git a/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.minor b/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.minor new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/__init__.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/__init__.py new file mode 100644 index 000000000000..9d0c06d83e82 --- /dev/null +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/__init__.py @@ -0,0 +1,29 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""Active vision with a foveated camera: the policy moves the camera's gaze. + +The camera is :class:`isaaclab_fovi.sensors.FoveatedCamera`, from the optional ``fovi`` extra +(``uv sync --extra fovi``). The task is registered only when that extra is installed. +""" + +from importlib.util import find_spec + +import gymnasium as gym + +ISAACLAB_FOVI_AVAILABLE = find_spec("isaaclab_fovi") is not None and find_spec("fovi") is not None +"""Whether the ``fovi`` extra is installed: the foveated camera package and the fovi library it builds on.""" + +if ISAACLAB_FOVI_AVAILABLE: + gym.register( + id="IsaacContrib-Cartpole-Camera-Fovi", + entry_point="isaaclab.envs:ManagerBasedRLEnv", + disable_env_checker=True, + kwargs={ + "env_cfg_entry_point": f"{__name__}.cartpole_camera_fovi_env_cfg:CartpoleCameraFoviEnvCfg", + "rsl_rl_cfg_entry_point": f"{__name__}.agents:CartpoleCameraFoviPPORunnerCfg", + "default_agent": "rsl_rl", + }, + ) diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py new file mode 100644 index 000000000000..b3ba0ba05bb2 --- /dev/null +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py @@ -0,0 +1,18 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""Stock Cartpole camera PPO with gaze state in the actor and critic observations.""" + +from isaaclab.utils import configclass + +from isaaclab_tasks.core.cartpole.agents.rsl_rl_ppo_cfg import CartpoleCameraPPORunnerCfg + + +@configclass +class CartpoleCameraFoviPPORunnerCfg(CartpoleCameraPPORunnerCfg): + """Train the camera policy and gaze actions with the stock PPO runner.""" + + experiment_name = "cartpole_camera_fovi" + obs_groups = {"actor": ["policy", "gaze"], "critic": ["critic", "gaze"]} diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py new file mode 100644 index 000000000000..afe967165329 --- /dev/null +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py @@ -0,0 +1,86 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""Camera Cartpole with a foveated view and policy-controlled gaze.""" + +from dataclasses import MISSING + +from isaaclab_fovi import mdp +from isaaclab_fovi.sensors import FoveatedCameraCfg + +from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg +from isaaclab.sensors import CameraCfg +from isaaclab.utils import configclass + +from isaaclab_tasks.core.cartpole.cartpole_common import CartpoleTiledCameraCfg +from isaaclab_tasks.core.cartpole.cartpole_manager_camera_env_cfg import ( + CartpoleCameraEnvCfg, + CartpoleCameraSceneCfg, + image_observations_cfg, +) +from isaaclab_tasks.core.cartpole.cartpole_manager_env_cfg import ActionsCfg as CartpoleActionsCfg +from isaaclab_tasks.utils import PresetCfg + + +def _foveated_camera(camera: CameraCfg) -> FoveatedCameraCfg: + """Apply the retina to the stock Cartpole camera's mount, optics, and renderer.""" + return FoveatedCameraCfg( + prim_path=camera.prim_path, + offset=camera.offset, + spawn=camera.spawn, + data_types=camera.data_types, + renderer_cfg=camera.renderer_cfg, + foveated_res=32, + mask_to_sensor_fov=True, + ) + + +@configclass +class CameraPresetsCfg(PresetCfg): + """Select the foveated RGB or depth output.""" + + rgb = _foveated_camera(CartpoleTiledCameraCfg().rgb) + depth = _foveated_camera(CartpoleTiledCameraCfg().depth) + default = rgb + + +@configclass +class SceneCfg(CartpoleCameraSceneCfg): + tiled_camera: CameraPresetsCfg = CameraPresetsCfg() + + +@configclass +class ActionsCfg(CartpoleActionsCfg): + gaze = mdp.GazeActionCfg(asset_name="tiled_camera") + + +@configclass +class ObservationsCfg: + @configclass + class GazeCfg(ObservationGroupCfg): + state = ObservationTermCfg(func=mdp.gaze_state) + + policy: ObservationGroupCfg = MISSING + critic: ObservationGroupCfg = MISSING + gaze: GazeCfg = GazeCfg() + + +def _observations(data_type: str) -> ObservationsCfg: + images = image_observations_cfg(data_type) + return ObservationsCfg(policy=images.policy, critic=images.critic) + + +@configclass +class CartpoleCameraFoviEnvCfg(PresetCfg): + """Cartpole with gaze control and RGB or depth retinal observations.""" + + @configclass + class BaseCfg(CartpoleCameraEnvCfg.BaseCartpoleCameraEnvCfg): + scene: SceneCfg = SceneCfg(num_envs=512, env_spacing=20.0) + actions: ActionsCfg = ActionsCfg() + + rgb = BaseCfg(observations=_observations("rgb")) + depth = BaseCfg(observations=_observations("depth")) + default = rgb diff --git a/source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py b/source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py index b8235943b28f..d72497bacbcb 100644 --- a/source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py +++ b/source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py @@ -21,6 +21,7 @@ CartpoleCameraEnvCfg as CartpoleManagerCameraEnvCfg, ) from isaaclab_tasks.utils.hydra import resolve_presets +from isaaclab_tasks.utils.parse_cfg import load_cfg_from_registry _ENV_CFG_CLASSES = [ pytest.param(CartpoleDirectCameraEnvCfg, id="direct"), @@ -49,3 +50,24 @@ def test_newton_renderer_accepts_supported_data_types(cfg_cls): """The guard must not reject data types the Newton Warp renderer does publish.""" cfg = resolve_presets(cfg_cls(), {"newton_warp", "rgb"}) validate(cfg) # must not raise + + +def test_foveated_cartpole_presets_connect_the_camera_and_stock_ppo(): + """The registered task selects matching image data and runs without teacher-specific inputs or training code.""" + pytest.importorskip("isaaclab_fovi") + pytest.importorskip("fovi") + task = "IsaacContrib-Cartpole-Camera-Fovi" + for data_type in ("rgb", "depth"): + raw_cfg = load_cfg_from_registry(task, "env_cfg_entry_point") + cfg = resolve_presets(raw_cfg, {data_type, "newton_warp"}) + validate(cfg) + image = cfg.observations.policy.image.params + assert image["data_type"] == data_type + assert cfg.scene.tiled_camera.data_types == [data_type] + assert image["sensor_cfg"].name == cfg.actions.gaze.asset_name + assert not hasattr(cfg.observations, "oracle") + + agent = load_cfg_from_registry(task, "rsl_rl_cfg_entry_point") + assert agent.obs_groups == {"actor": ["policy", "gaze"], "critic": ["critic", "gaze"]} + assert agent.algorithm.class_name == "PPO" + assert agent.actor.distribution_cfg.class_name == "GaussianDistribution" From df1b37a51b3f478ef1b31a41eebe1e97d41e5fd5 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 16:08:20 -0800 Subject: [PATCH 03/14] Preserve FOVI behavior while simplifying RTX lens setup --- docs/conf.py | 3 + .../css/foveation-pooling-isotropic.json | 1 + docs/source/_static/css/foveation-viewer.css | 206 ++++ docs/source/_static/css/foveation-viewer.js | 987 ++++++++++++++++++ .../sensors/foveated_camera_active_gaze.jpg | Bin 0 -> 115472 bytes .../sensors/foveated_camera_pooling.jpg | Bin 0 -> 68546 bytes .../source/api/lab_fovi/isaaclab_fovi.mdp.rst | 4 + .../concepts/sensors/foveated_camera.rst | 81 +- .../changelog.d/fovi-rtx-lens-setup.skip | 0 .../changelog.d/isaaclab-fovi.added.rst | 5 +- .../isaaclab_fovi/mdp/__init__.pyi | 7 +- .../isaaclab_fovi/isaaclab_fovi/mdp/gaze.py | 376 ++++++- .../isaaclab_fovi/mdp/gaze_cfg.py | 18 +- .../sensors/calibrated_geometry.py | 46 +- .../isaaclab_fovi/sensors/foveated_camera.py | 378 +++++-- .../sensors/foveated_camera_cfg.py | 70 +- .../sensors/foveated_newton_camera.py | 250 ++++- .../sensors/foveated_rtx_camera.py | 309 ++++-- .../isaaclab_fovi/sensors/gaze_kernels.py | 89 +- .../isaaclab_fovi/sensors/lens_lut.py | 141 ++- .../isaaclab_fovi/sensors/native_grid.py | 152 ++- .../isaaclab_fovi/sensors/pooling.py | 282 +++++ source/isaaclab_fovi/test/test_active_gaze.py | 216 +++- source/isaaclab_fovi/test/test_camera_cfg.py | 58 +- source/isaaclab_fovi/test/test_camera_gaze.py | 367 ++++--- source/isaaclab_fovi/test/test_native_grid.py | 177 +++- .../isaaclab_fovi/test/test_newton_buffers.py | 356 ++++++- source/isaaclab_fovi/test/test_pooling.py | 172 +++ source/isaaclab_fovi/test/test_rtx_camera.py | 87 +- .../active-gaze-cartpole.added.rst | 5 +- .../contrib/active_gaze/active_gaze_cfg.py | 85 ++ .../contrib/active_gaze/agents.py | 28 +- .../cartpole_camera_fovi_env_cfg.py | 93 +- .../contrib/active_gaze/gaze_distribution.py | 61 ++ .../active_gaze/gaze_distribution_cfg.py | 24 + .../active_gaze/gaze_supervised_ppo.py | 134 +++ .../active_gaze/gaze_supervised_ppo_cfg.py | 26 + .../test/contrib/test_active_gaze_ppo.py | 129 +++ .../test/core/test_cartpole_camera_presets.py | 22 - 39 files changed, 4911 insertions(+), 534 deletions(-) create mode 100644 docs/source/_static/css/foveation-pooling-isotropic.json create mode 100644 docs/source/_static/css/foveation-viewer.css create mode 100644 docs/source/_static/css/foveation-viewer.js create mode 100644 docs/source/_static/overview/sensors/foveated_camera_active_gaze.jpg create mode 100644 docs/source/_static/overview/sensors/foveated_camera_pooling.jpg create mode 100644 source/isaaclab_fovi/changelog.d/fovi-rtx-lens-setup.skip create mode 100644 source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py create mode 100644 source/isaaclab_fovi/test/test_pooling.py create mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py create mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution.py create mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution_cfg.py create mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo.py create mode 100644 source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo_cfg.py create mode 100644 source/isaaclab_tasks/test/contrib/test_active_gaze_ppo.py diff --git a/docs/conf.py b/docs/conf.py index ccff67b21672..8c2e045fa3c8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,6 +48,7 @@ sys.path.insert(0, os.path.abspath("../source/isaaclab_ov/isaaclab_ov")) sys.path.insert(0, os.path.abspath("../source/isaaclab_visualizers")) sys.path.insert(0, os.path.abspath("../source/isaaclab_visualizers/isaaclab_visualizers")) +# Only the package root: the package's ``rsl_rl`` subpackage would shadow RSL-RL as a top-level module. sys.path.insert(0, os.path.abspath("../source/isaaclab_fovi")) # -- Project information ----------------------------------------------------- @@ -350,11 +351,13 @@ def _read_pinned_versions() -> dict: "css/environment-browser.css", "css/demo-browser.css", "css/guide-browser.css", + "css/foveation-viewer.css", ] html_js_files = [ "css/environment-browser.js", "css/demo-browser.js", "css/guide-browser.js", + "css/foveation-viewer.js", ] html_theme_options = { diff --git a/docs/source/_static/css/foveation-pooling-isotropic.json b/docs/source/_static/css/foveation-pooling-isotropic.json new file mode 100644 index 000000000000..90d14b291e94 --- /dev/null +++ b/docs/source/_static/css/foveation-pooling-isotropic.json @@ -0,0 +1 @@ +{"fov":90,"cmfA":2.0,"res":16,"rings":14,"count":243,"mult":{"2":{"rings":28,"count":1026,"defaultK":4,"kMax":8,"geodesic":[0,1,4,2,3,5,6,8,7,18,8,1,19,34,20,2,9,10,8,2,22,21,23,3,11,12,10,3,24,25,23,2,13,14,12,4,27,28,26,5,15,14,16,5,30,29,31,4,17,16,18,6,32,33,31,5,35,55,36,19,56,79,57,34,37,38,36,58,21,20,59,57,39,38,40,22,61,60,23,21,41,40,42,63,24,23,62,64,43,42,44,25,65,66,26,64,46,47,45,69,27,68,28,70,48,49,47,29,71,70,28,72,50,51,49,73,30,31,74,72,52,51,53,32,75,76,31,33,54,53,55,78,33,34,77,79,80,107,81,56,108,109,137,79,82,81,83,110,58,57,111,109,84,83,85,112,59,60,113,111,86,87,85,61,114,115,62,60,88,87,89,63,117,116,62,64,90,89,91,119,65,64,118,120,92,93,91,121,66,67,120,122,94,95,93,68,123,124,122,67,96,95,97,125,70,69,126,124,98,99,97,127,71,72,128,126,100,101,99,73,129,130,74,72,102,101,103,75,132,131,74,76,104,105,103,134,77,76,133,135,106,105,107,136,78,79,135,137,138,170,139,108,171,172,205,109,140,141,139,173,110,174,109,172,142,141,143,175,112,111,176,174,144,145,143,177,113,114,178,176,146,147,145,115,179,180,116,114,148,147,149,117,182,181,118,116,150,151,149,119,184,183,118,120,152,153,151,186,121,120,185,187,154,153,155,188,123,122,187,189,157,158,156,191,125,126,192,190,159,158,160,127,193,194,128,126,161,160,162,129,195,196,128,130,163,162,164,131,198,197,130,132,165,164,166,200,133,132,199,201,167,168,166,202,134,135,201,203,169,168,170,204,136,203,137,205,206,207,242,171,243,244,281,205,208,209,207,245,173,246,172,244,210,209,211,247,175,248,174,246,212,211,213,249,177,250,176,248,214,215,213,251,179,252,178,250,216,217,215,254,180,253,181,255,218,217,219,256,182,255,183,257,220,221,219,258,184,257,185,259,222,223,221,260,186,259,187,261,225,226,224,263,189,264,262,188,227,228,226,265,191,266,190,264,229,230,228,267,193,268,192,266,231,232,230,269,195,270,194,268,233,234,232,271,197,272,196,270,235,234,236,274,198,273,199,275,237,236,238,276,200,275,201,277,239,240,238,278,202,277,203,279,241,242,240,280,204,279,205,281,282,322,283,243,323,364,324,244,284,285,283,325,245,244,326,324,286,287,285,327,247,246,328,326,288,289,287,329,249,248,330,328,290,289,291,331,251,250,332,330,292,293,291,333,253,252,334,332,294,295,293,335,254,255,336,334,296,295,297,256,337,338,257,336,340,339,341,383,299,298,382,384,342,341,343,385,301,300,384,386,344,343,345,387,303,302,388,386,346,347,345,389,304,305,390,388,348,349,347,391,306,307,392,390,309,308,310,269,351,350,268,352,311,310,312,353,271,270,352,354,313,312,314,355,272,273,354,356,315,316,314,357,274,275,356,358,317,318,316,359,276,277,358,360,319,318,320,361,278,279,360,362,321,322,320,363,280,281,362,364,409,410,453,365,454,499,455,366,411,410,412,456,367,457,366,455,413,414,412,458,369,459,368,457,371,370,372,415,329,328,416,414,418,419,417,463,374,464,373,462,420,421,419,465,376,466,375,464,422,421,423,467,378,468,377,466,424,425,423,469,380,470,379,468,426,425,427,471,382,472,381,470,428,429,427,473,384,474,383,472,386,385,387,343,430,431,344,342,388,389,387,345,433,432,344,346,435,434,436,481,390,480,391,482,437,438,436,483,392,482,393,484,439,440,438,485,394,484,395,486,441,440,442,487,396,486,397,488,443,442,444,489,398,488,399,490,445,446,444,491,400,490,401,492,403,404,402,448,359,360,447,449,450,449,451,496,405,495,406,497,452,451,453,498,407,497,408,499,500,545,501,454,546,592,547,499,502,501,503,456,548,549,455,457,504,503,505,458,550,551,457,459,506,507,505,460,552,553,461,459,508,507,509,462,554,555,461,463,510,509,511,464,556,557,463,465,513,514,512,467,559,560,468,466,515,516,514,469,561,562,470,468,517,518,516,471,563,564,470,472,519,518,520,473,565,566,474,472,521,522,520,475,567,568,476,474,523,524,522,477,570,569,478,476,525,524,526,479,572,571,478,480,527,528,526,481,574,573,482,480,529,528,530,483,576,575,484,482,531,532,530,485,578,577,486,484,533,534,532,487,580,579,486,488,536,535,537,490,583,582,489,491,538,539,537,492,585,584,493,491,540,539,541,494,587,586,493,495,542,543,541,496,589,588,495,497,544,543,545,498,591,590,499,497,593,594,640,641,546,642,688,592,595,594,596,643,548,547,642,644,597,596,598,645,550,549,644,646,599,598,600,647,552,551,646,648,601,602,600,649,554,553,650,648,603,602,604,651,556,555,650,652,606,605,607,654,559,558,653,655,608,607,609,656,561,560,657,655,610,611,609,658,563,562,657,659,612,611,613,660,565,564,661,659,614,615,613,662,567,566,663,661,616,615,617,664,569,568,663,665,618,617,619,666,570,571,667,665,620,619,621,668,572,573,669,667,622,623,621,670,574,575,671,669,624,623,625,672,576,577,671,673,626,627,625,674,578,579,675,673,628,629,627,676,580,581,677,675,631,630,632,679,583,584,678,680,633,632,634,681,585,586,680,682,635,636,634,683,587,588,684,682,637,638,636,685,589,590,686,684,639,640,638,687,591,592,688,686,689,690,736,737,641,785,738,642,691,690,692,643,739,740,642,644,693,694,692,645,741,742,644,646,695,694,696,647,743,744,646,648,697,698,696,649,745,746,650,648,699,698,700,651,747,748,650,652,702,701,703,654,750,751,653,655,704,703,705,656,752,753,655,657,706,707,705,658,754,755,659,657,708,707,709,660,756,757,659,661,710,711,709,662,758,759,663,661,712,711,713,664,760,761,663,665,714,715,713,666,763,762,667,665,716,715,717,668,765,764,669,667,718,719,717,670,767,766,671,669,720,719,721,672,769,768,671,673,722,723,721,674,771,770,675,673,724,725,723,676,773,772,677,675,727,726,728,679,776,775,678,680,729,728,730,681,778,777,680,682,731,732,730,683,780,779,684,682,733,734,732,685,782,781,686,684,735,736,734,687,784,783,688,686,786,834,787,835,737,785,738,836,788,789,787,739,837,836,740,738,790,791,789,741,839,838,740,742,792,793,791,743,841,840,744,742,795,796,794,746,844,843,745,747,797,796,798,748,846,845,749,747,799,800,798,750,848,847,749,751,801,802,800,752,850,849,753,751,803,802,804,754,852,851,753,755,805,804,806,756,854,853,755,757,807,806,808,758,856,855,757,759,809,810,808,760,858,857,761,759,812,813,811,763,860,861,764,762,814,813,815,765,862,863,764,766,816,817,815,767,864,865,766,768,818,819,817,769,866,867,770,768,820,819,821,771,868,869,770,772,822,823,821,773,870,871,774,772,824,823,825,775,872,873,774,776,826,827,825,777,874,875,778,776,829,830,828,780,877,878,781,779,831,830,832,782,879,880,781,783,833,834,832,784,881,882,785,783,883,884,930,931,835,932,978,836,885,884,886,933,837,932,934,836,887,886,888,935,839,934,936,838,889,888,890,937,841,936,938,840,891,890,892,939,843,940,938,844,893,892,894,941,845,940,942,844,896,895,897,944,848,943,945,847,898,897,899,946,850,945,947,849,900,901,899,948,852,949,947,853,902,901,903,950,854,949,951,853,904,905,903,952,856,953,951,857,906,905,907,954,858,953,955,857,908,909,907,956,860,957,955,861,910,909,911,958,862,957,959,861,912,913,911,960,864,961,959,865,914,913,915,962,866,963,961,865,916,917,915,964,868,965,963,869,918,919,917,966,870,967,965,871,921,920,922,969,873,968,970,872,923,922,924,971,875,970,972,874,925,926,924,973,877,974,972,878,927,928,926,975,879,976,974,880,929,930,928,977,881,978,976,882,979,-1,1025,980,-1,931,-1,932,981,-1,980,982,933,-1,934,932,983,-1,984,982,935,-1,936,-1,985,-1,984,986,937,-1,-1,938,987,-1,988,986,939,-1,940,-1,989,-1,990,988,941,-1,942,-1,991,-1,990,992,943,-1,944,-1,993,-1,992,994,945,-1,946,-1,995,-1,994,996,-1,947,948,-1,997,-1,996,998,949,-1,950,-1,999,-1,1000,998,951,-1,952,-1,1001,-1,1000,1002,-1,953,954,-1,1004,-1,1005,1003,957,956,-1,-1,1006,-1,1007,1005,-1,959,958,-1,1008,-1,1009,1007,-1,961,960,-1,1010,-1,1011,1009,963,962,-1,-1,1012,-1,1011,1013,965,-1,964,-1,1014,-1,1015,1013,-1,967,966,-1,1016,-1,1017,1015,969,-1,968,-1,1018,-1,1017,1019,971,-1,970,-1,1020,-1,1021,1019,973,-1,972,974,1022,-1,1023,1021,975,-1,-1,974,1024,-1,1023,1025,977,-1,-1,976],"visual":[0,3,4,1,5,2,6,8,7,18,8,19,1,20,34,2,9,8,10,2,22,21,23,3,11,12,10,3,24,25,23,4,13,12,14,27,4,28,26,3,15,14,16,5,30,29,31,6,17,16,18,6,32,33,31,5,35,56,55,36,19,79,57,34,37,38,58,59,36,21,20,57,39,40,61,22,38,60,23,62,41,42,63,24,64,40,23,62,43,44,66,65,25,26,42,45,45,46,68,27,67,69,44,47,48,47,70,71,29,28,49,46,50,49,73,30,72,51,31,74,52,51,75,32,53,76,31,74,54,53,78,77,55,33,34,79,80,108,107,81,56,137,109,79,82,110,81,83,111,58,57,109,84,112,83,85,113,59,60,111,86,114,115,87,85,61,62,60,88,117,116,87,89,63,62,64,90,119,91,89,118,65,64,120,92,121,93,91,120,66,67,122,94,123,95,93,68,122,124,67,96,125,97,95,126,70,69,124,98,127,99,97,128,71,72,126,100,129,130,99,101,73,74,72,102,132,131,101,103,75,74,76,104,134,105,103,133,77,76,135,106,136,107,105,135,78,79,137,138,171,170,139,108,205,172,137,140,173,141,139,174,110,172,109,142,175,143,176,141,112,111,174,144,178,145,177,143,114,113,179,146,180,147,179,145,115,116,181,148,182,149,181,117,183,147,118,150,151,184,185,119,183,149,120,152,153,186,187,121,151,122,185,154,155,188,189,123,153,156,124,157,156,191,190,125,158,124,192,159,158,193,192,127,194,160,126,161,195,160,196,129,194,162,128,163,197,162,198,164,130,131,196,165,199,164,200,166,132,133,198,167,202,166,201,168,134,135,203,169,204,168,170,203,136,205,137,206,243,242,207,244,281,171,205,208,245,209,246,207,173,244,172,210,247,248,211,209,175,246,174,212,249,250,213,211,177,176,251,214,252,215,251,213,179,178,253,216,254,217,253,181,215,255,180,218,256,219,257,255,183,217,182,220,258,221,259,185,257,184,219,222,223,260,261,187,186,221,259,224,225,262,263,188,189,226,223,227,226,265,264,190,191,228,266,229,267,228,266,192,268,193,230,231,269,230,270,268,194,232,195,233,271,232,272,196,234,270,197,235,273,234,274,236,198,199,272,237,275,276,236,238,200,201,274,239,278,277,238,240,202,279,203,241,280,240,279,242,204,281,205,282,323,322,283,364,324,243,244,284,325,285,326,283,324,245,244,286,327,287,328,285,326,247,246,288,329,330,289,287,249,328,248,290,331,332,291,289,251,330,250,292,333,334,293,291,253,252,332,294,336,295,335,293,255,254,337,296,338,297,337,295,257,339,256,340,298,299,339,341,259,297,258,342,300,301,341,343,261,260,299,344,303,302,343,345,263,262,301,346,305,304,347,345,264,265,306,348,307,306,349,347,266,308,267,309,350,308,351,310,268,349,269,311,352,310,353,312,270,271,351,313,354,355,312,314,272,273,353,315,357,356,314,316,274,358,275,317,359,358,316,318,276,360,277,319,361,318,360,320,362,278,279,321,363,320,362,322,364,280,281,409,365,366,408,410,453,323,454,411,367,412,368,366,410,325,456,369,413,414,370,368,412,327,458,371,415,416,372,370,329,414,417,373,418,417,374,331,372,419,463,420,375,376,419,421,333,374,377,422,378,377,421,423,335,379,376,424,380,379,425,423,381,337,469,426,382,381,427,425,383,339,472,384,428,429,383,385,427,341,474,386,430,431,385,387,343,429,476,388,433,432,389,387,345,434,478,390,435,434,391,389,436,347,480,437,392,393,436,438,391,349,482,439,394,395,440,438,393,351,485,441,396,397,442,440,353,395,398,443,399,398,444,442,355,400,397,401,445,446,400,357,402,444,491,403,448,447,402,404,359,449,446,405,450,449,404,406,451,361,496,452,407,451,406,408,453,363,498,500,454,545,501,455,499,409,546,502,456,503,457,501,455,411,548,504,458,505,459,503,457,413,550,506,460,507,461,459,505,415,552,508,462,509,463,461,507,417,555,510,511,464,465,419,463,557,509,513,512,467,466,421,468,559,514,515,469,514,468,470,516,423,561,517,471,516,470,472,518,563,425,519,473,518,472,520,474,427,565,521,475,520,474,522,476,429,567,523,477,522,524,476,478,432,431,525,479,526,480,524,478,434,572,527,481,528,482,526,480,436,574,529,483,530,484,482,528,576,438,531,485,532,486,484,530,440,578,533,534,487,488,442,486,580,532,536,535,490,489,444,491,582,537,538,492,537,491,493,539,446,584,540,494,539,493,495,541,448,587,542,496,541,495,543,497,450,589,544,498,543,497,545,499,452,591,593,546,640,594,592,547,641,500,595,548,596,549,594,547,643,502,597,550,598,551,596,549,645,504,599,552,600,553,551,598,647,506,601,554,602,555,553,600,649,508,603,604,556,557,555,602,651,510,606,605,558,559,557,654,653,607,608,607,560,561,559,609,656,514,610,562,609,563,611,658,561,516,612,564,611,565,613,660,563,518,614,566,567,613,615,662,520,565,616,568,569,615,617,664,522,567,618,571,570,619,617,666,524,572,620,573,572,621,619,668,526,574,622,575,623,574,621,670,576,528,624,577,625,576,623,672,578,530,626,627,579,578,580,625,674,532,628,629,581,580,582,676,677,627,631,630,583,582,584,632,679,536,633,585,632,584,586,634,681,538,635,587,634,586,588,636,683,540,637,589,636,588,638,590,685,542,639,591,638,590,640,592,687,544,689,641,690,736,688,642,737,593,691,643,692,690,644,642,739,595,693,645,694,646,692,741,644,742,695,647,696,648,694,743,646,744,697,698,649,650,696,746,745,648,699,700,651,652,748,747,698,650,702,701,654,653,750,703,749,700,704,703,656,655,752,705,657,608,706,705,658,657,754,707,659,610,708,660,707,659,709,756,661,757,710,662,709,661,711,663,758,759,712,664,711,713,663,665,760,761,714,666,715,713,667,665,763,762,716,668,717,669,715,667,765,764,718,670,719,671,717,767,669,766,720,721,672,673,769,719,671,624,722,723,674,675,771,721,673,626,724,725,676,677,773,723,774,726,727,726,679,678,775,776,728,680,729,728,681,680,730,777,778,682,731,683,730,682,732,780,684,779,733,685,732,684,734,782,686,781,735,687,734,736,686,688,784,639,786,737,834,787,835,785,738,689,788,739,789,740,787,837,738,838,790,791,741,742,839,789,740,840,792,793,743,744,841,791,842,742,795,794,746,745,843,844,796,793,797,796,748,747,845,846,798,749,799,798,750,749,800,848,847,751,801,752,800,802,751,850,753,849,803,754,804,802,755,852,753,851,805,756,806,757,804,854,755,853,807,808,758,759,856,806,757,855,809,810,760,761,858,808,759,811,812,811,763,762,860,813,764,810,814,813,765,764,862,815,766,863,816,767,815,766,817,864,768,865,818,769,817,819,768,866,770,867,820,771,821,819,772,868,770,869,822,823,773,774,821,870,871,772,824,825,775,776,873,872,823,774,826,827,777,778,875,874,825,828,829,828,780,779,877,830,876,781,831,830,782,781,879,832,783,878,833,784,832,783,834,881,785,880,883,835,930,884,931,882,836,932,885,837,886,933,884,838,836,934,887,888,839,935,840,886,838,936,889,890,841,842,937,888,938,840,891,892,843,844,939,940,890,842,893,894,845,846,941,942,892,895,896,895,848,847,944,943,897,894,898,897,850,849,946,945,899,851,900,899,852,851,948,901,947,853,902,901,854,853,950,903,949,855,904,856,903,952,905,855,857,951,906,858,905,907,954,857,859,953,908,860,909,907,956,861,859,957,910,862,911,958,909,863,861,959,912,913,864,865,960,911,961,863,914,915,866,867,962,913,963,865,916,917,868,869,964,965,915,867,918,919,870,871,966,967,917,920,921,920,873,872,969,968,922,919,923,922,875,874,971,970,924,876,925,924,877,876,973,926,972,878,927,926,879,975,878,928,880,974,929,881,928,977,930,880,882,976,979,931,-1,-1,1025,980,-1,978,981,933,-1,982,-1,980,934,932,983,935,-1,984,982,-1,936,934,985,-1,986,937,938,984,-1,-1,987,988,939,-1,-1,940,986,938,989,990,-1,941,942,-1,988,-1,991,992,-1,944,943,-1,990,-1,993,994,946,-1,-1,945,992,947,995,996,-1,948,947,-1,-1,994,997,998,950,-1,-1,949,996,951,999,1000,952,-1,-1,951,953,998,1001,1002,954,-1,-1,953,955,-1,1004,1003,956,-1,-1,957,955,1005,1006,1005,958,-1,-1,959,957,-1,1008,1007,-1,960,961,-1,-1,1009,1010,1009,962,-1,-1,963,1011,961,1012,1011,-1,964,965,-1,1013,-1,1014,1013,-1,966,967,-1,1015,-1,1016,1015,-1,969,968,-1,1017,-1,1018,1017,-1,971,970,1019,-1,-1,1020,1019,973,-1,-1,972,1021,974,1022,975,-1,1021,1023,-1,974,976,1024,977,-1,1023,1025,-1,976,978]},"3":{"rings":42,"count":2340,"defaultK":10,"kMax":18,"geodesic":[0,6,3,4,2,7,1,5,14,9,19,12,16,17,11,10,18,15,20,21,36,8,37,38,58,19,9,22,35,39,57,1,59,60,85,7,23,24,22,41,10,40,42,11,9,39,21,25,64,2,43,63,65,3,26,27,25,45,12,44,13,46,11,43,24,28,69,68,3,4,47,14,28,27,29,47,14,48,13,46,49,15,30,26,72,4,71,12,73,5,31,30,32,51,16,52,15,50,17,53,33,29,76,77,6,5,49,14,34,35,33,55,18,56,54,17,19,57,36,32,81,7,53,82,80,6,86,116,87,59,117,150,118,60,85,115,88,37,151,119,149,188,152,84,89,90,88,120,62,61,121,119,63,122,91,87,60,39,155,154,40,156,92,93,91,64,124,123,65,63,125,122,90,94,41,158,159,66,42,157,95,96,94,127,67,126,66,128,68,97,93,162,125,43,44,65,163,161,98,97,99,130,69,70,131,129,68,71,96,100,132,166,46,45,165,128,102,103,101,73,135,134,72,74,136,133,104,100,171,48,170,49,71,172,105,104,106,138,76,75,137,139,77,74,103,107,136,174,50,51,175,140,108,109,107,141,78,142,79,140,77,106,110,178,143,53,52,80,177,179,111,112,110,81,144,145,80,82,143,146,113,109,55,182,181,79,54,183,114,115,113,148,83,84,147,149,82,146,112,116,85,57,185,186,56,184,189,229,190,151,230,231,273,188,152,228,191,117,274,232,272,320,275,150,192,191,193,233,154,234,153,232,155,235,194,190,277,278,119,120,152,231,195,194,196,236,157,237,156,235,158,238,155,197,193,122,281,280,282,121,198,197,199,240,159,239,160,241,158,238,161,196,200,284,124,125,285,283,201,200,202,243,162,242,163,244,161,199,203,127,288,241,287,164,126,245,204,205,203,246,165,247,164,245,166,206,202,291,129,248,130,292,163,244,249,250,248,294,207,295,206,293,208,296,251,247,205,343,167,342,168,344,252,251,253,297,298,209,210,296,299,208,211,250,254,170,346,345,347,169,255,256,254,301,212,300,213,302,211,299,257,253,214,349,173,350,172,348,215,214,216,258,175,257,176,259,174,213,217,304,139,256,138,303,177,260,218,217,219,261,178,262,177,260,179,220,216,141,307,263,308,176,142,259,221,222,220,264,181,265,180,263,182,266,179,223,219,311,144,143,310,312,224,225,223,268,183,267,184,269,182,266,185,226,222,146,314,315,313,147,227,228,226,271,186,270,187,272,185,269,229,225,318,317,149,148,188,273,371,372,422,321,423,476,424,370,322,421,373,274,477,425,475,478,532,369,374,375,373,426,324,427,323,425,325,376,372,480,277,428,481,276,322,424,377,378,376,429,327,430,326,428,328,379,375,431,325,279,483,484,280,427,381,382,380,433,331,434,330,432,332,435,329,379,383,283,488,487,284,282,384,383,385,436,437,333,334,435,438,332,335,382,386,491,286,285,490,492,387,388,386,440,336,439,337,441,335,438,338,385,389,494,288,289,495,493,391,392,390,444,340,443,341,445,339,393,389,442,292,342,499,498,293,291,394,395,393,447,343,446,344,448,342,396,392,295,502,445,501,345,294,449,397,396,398,346,450,449,451,345,347,395,399,505,297,298,448,452,504,506,400,401,399,453,349,454,348,452,350,402,398,300,508,455,509,347,301,451,404,405,403,457,353,458,352,456,354,459,406,402,304,351,513,512,303,305,407,408,406,460,356,461,355,459,357,462,354,409,405,516,307,306,515,517,410,409,411,463,464,358,359,462,465,357,360,408,412,519,309,310,518,520,413,412,414,467,361,466,362,468,360,465,363,411,415,312,522,523,311,313,417,416,418,471,365,470,366,472,364,415,419,469,367,316,527,526,315,473,420,419,421,474,368,473,369,475,367,422,418,530,318,472,529,319,370,476,533,534,590,477,591,650,592,532,478,535,589,423,651,593,649,652,712,476,536,535,537,594,480,595,479,593,481,538,534,654,426,596,655,425,478,592,539,538,540,597,483,598,482,596,484,537,541,599,657,429,481,658,428,595,543,542,544,601,487,602,486,600,488,603,485,541,545,662,432,661,433,663,546,547,545,604,490,605,489,603,491,606,488,544,548,665,435,664,436,666,549,550,548,608,492,607,493,609,491,606,494,551,547,668,438,669,437,667,552,551,553,611,495,610,496,612,494,609,497,550,554,671,441,672,440,670,556,555,557,615,499,614,500,616,498,554,558,613,676,444,501,675,445,617,559,560,558,618,502,617,503,619,501,561,557,679,447,616,678,448,504,620,562,561,563,505,621,620,622,504,506,560,564,450,682,619,623,681,683,449,565,564,566,624,508,625,507,623,509,563,567,685,453,626,686,452,506,622,568,569,567,627,511,628,510,626,512,570,566,629,688,456,509,689,455,625,572,573,571,631,515,632,514,630,516,633,513,574,570,693,459,692,460,694,575,576,574,634,518,635,517,633,519,636,516,577,573,696,462,695,463,697,578,579,577,638,520,637,521,639,519,636,522,580,576,699,465,700,464,698,581,582,580,641,523,640,524,642,522,639,525,583,579,702,468,703,467,701,585,584,586,645,527,644,528,646,526,587,583,643,707,471,529,706,472,647,588,587,589,648,530,647,531,649,529,586,590,710,474,646,709,475,532,650,713,714,775,651,776,839,777,712,652,774,715,591,840,838,778,841,905,711,716,715,717,779,654,780,653,778,655,718,714,843,594,844,781,593,652,777,719,718,720,782,657,783,656,781,658,717,721,846,597,847,596,784,655,780,722,721,723,785,660,786,659,784,661,724,720,849,600,850,599,787,658,783,726,727,725,789,664,790,663,788,665,724,728,854,791,603,662,853,604,787,729,728,730,792,667,793,666,791,668,731,727,794,665,857,606,856,607,858,732,731,733,795,670,796,669,794,671,797,668,730,734,860,609,859,610,861,735,736,734,798,673,799,672,797,674,800,671,737,733,863,612,864,611,862,738,739,737,801,676,802,675,800,677,803,674,736,740,866,615,867,614,865,741,740,742,804,679,805,678,803,680,806,677,743,739,869,618,870,617,868,744,743,745,807,682,808,681,806,683,809,680,742,746,872,621,873,620,871,748,749,747,812,685,811,686,813,684,810,687,746,750,877,624,876,625,878,751,750,752,815,688,814,689,816,687,813,690,753,749,880,627,879,628,881,754,753,755,818,691,817,692,819,690,816,693,752,756,883,630,882,631,884,757,758,756,821,694,820,695,822,693,819,696,759,755,886,633,887,632,885,760,761,759,824,697,823,698,825,696,758,762,822,699,889,636,890,635,888,763,762,764,827,700,826,701,828,699,765,761,892,825,639,702,893,638,829,767,766,768,831,704,830,705,832,703,765,769,897,642,896,643,829,706,833,770,771,769,834,707,833,708,835,706,772,768,900,645,899,646,832,709,836,773,772,774,837,710,836,711,838,709,775,771,903,648,902,835,649,712,839,906,907,972,840,973,974,1040,841,905,971,908,776,1041,1039,975,1042,1109,904,909,910,908,976,843,977,842,975,844,911,907,1044,779,978,778,1045,841,974,912,911,913,979,846,980,845,978,847,910,914,1047,782,981,781,844,1048,977,916,917,915,983,850,984,849,982,851,914,918,1051,786,985,785,848,1052,981,919,920,918,986,853,987,852,985,854,921,917,1054,988,788,851,789,1055,984,922,923,921,989,856,990,855,988,857,924,920,991,854,791,1057,1058,792,790,925,924,926,992,859,993,858,991,860,994,927,923,857,794,1061,1060,795,793,928,927,929,995,862,996,861,994,863,997,860,926,930,797,1064,1063,798,796,932,931,933,999,866,1000,865,998,867,1001,864,930,934,801,1068,1067,800,802,935,936,934,1002,869,1003,868,1001,870,1004,867,937,933,1071,804,803,1070,1072,938,937,939,1005,872,1006,871,1004,873,1007,870,936,940,1074,807,806,1073,1075,941,940,942,1009,874,1008,875,1010,873,1007,876,939,943,1077,809,810,1078,1076,944,943,945,1012,877,1011,878,1013,876,1010,879,942,946,1080,812,813,1081,1079,947,946,948,1015,880,1014,881,1016,879,1013,882,945,949,815,1083,1084,816,814,951,952,950,1019,884,1018,885,1020,883,1017,886,953,949,819,1087,1088,818,820,954,955,953,1022,887,1021,888,1023,886,1020,952,956,889,822,1090,1091,821,823,957,956,958,1025,890,1024,891,1026,889,955,959,1023,892,825,1094,1093,824,826,960,959,961,1028,893,1027,894,1029,892,958,962,1097,1026,828,895,827,1096,1030,963,962,964,1031,896,1030,897,1032,895,961,965,1100,830,1029,831,898,1099,1033,967,966,968,1035,900,1034,901,1036,899,969,965,1104,834,1033,835,902,1103,1037,970,969,971,1038,903,1037,904,1039,902,968,972,1107,837,1036,838,1106,905,1040,1110,1179,1111,1180,1041,1249,1181,1042,1109,1178,1112,973,1250,1248,1182,1251,1320,1043,1113,1112,1114,1183,1044,1043,1182,1184,1045,1111,1115,1253,976,1042,975,1254,1181,1185,1116,1115,1117,1186,1047,1046,1185,1187,1048,1114,1118,1256,979,1045,978,1257,1184,1188,1120,1121,1119,1190,1051,1050,1191,1189,1052,1122,1118,1260,983,1049,982,1261,1192,1188,1123,1122,1124,1193,1054,1053,1192,1194,1055,1125,1121,1263,986,1052,985,1264,1195,1191,1126,1125,1127,1196,1057,1056,1195,1197,1058,1128,1124,1266,1055,989,988,1267,1194,1198,1129,1130,1128,1199,1060,1059,1200,1198,1061,1131,1127,1058,1269,991,992,1270,1201,1197,1132,1133,1131,1202,1063,1062,1203,1201,1064,1061,1130,1134,1272,994,995,1273,1204,1200,1135,1134,1136,1205,1066,1065,1206,1204,1067,1064,1137,1133,997,1275,1276,998,1207,1203,1139,1138,1140,1209,1070,1069,1208,1210,1071,1068,1137,1141,1001,1279,1280,1002,1207,1211,1142,1143,1141,1212,1073,1072,1213,1211,1074,1071,1144,1140,1004,1282,1283,1005,1214,1210,1145,1146,1144,1215,1076,1075,1216,1214,1077,1074,1147,1143,1007,1286,1285,1217,1213,1008,1148,1147,1149,1218,1078,1079,1217,1219,1077,1080,1150,1146,1010,1289,1288,1009,1216,1220,1151,1152,1150,1221,1081,1082,1222,1220,1080,1083,1153,1149,1013,1292,1291,1012,1223,1219,1155,1154,1156,1225,1085,1086,1224,1226,1084,1087,1153,1157,1017,1296,1295,1016,1223,1227,1158,1159,1157,1228,1088,1089,1227,1229,1087,1090,1160,1156,1299,1020,1019,1298,1230,1226,1161,1160,1162,1231,1091,1092,1230,1232,1090,1159,1163,1093,1302,1023,1022,1301,1229,1233,1164,1163,1165,1234,1094,1095,1233,1235,1093,1162,1166,1305,1096,1025,1026,1304,1232,1236,1167,1168,1166,1237,1097,1098,1238,1236,1096,1169,1165,1308,1028,1099,1029,1307,1239,1235,1170,1171,1169,1240,1100,1101,1241,1239,1099,1168,1172,1311,1031,1102,1032,1310,1242,1238,1174,1173,1175,1244,1104,1105,1245,1243,1103,1172,1176,1315,1035,1106,1036,1314,1246,1242,1177,1176,1178,1247,1107,1108,1246,1248,1106,1175,1179,1318,1038,1109,1039,1317,1245,1249,1321,1322,1392,1393,1250,1394,1464,1251,1320,1323,1391,1465,1180,1395,1463,1466,1537,1252,1324,1325,1323,1396,1253,1252,1397,1395,1254,1326,1322,1468,1183,1251,1182,1469,1398,1394,1327,1328,1326,1399,1256,1255,1400,1398,1257,1329,1325,1471,1186,1254,1185,1472,1401,1397,1330,1329,1331,1402,1259,1258,1401,1403,1260,1328,1332,1474,1189,1257,1188,1475,1404,1400,1334,1333,1335,1406,1263,1262,1405,1407,1264,1336,1332,1478,1193,1261,1192,1479,1408,1404,1337,1336,1338,1409,1266,1265,1410,1408,1267,1339,1335,1481,1264,1196,1195,1482,1407,1411,1340,1339,1341,1412,1269,1268,1413,1411,1270,1338,1342,1267,1484,1198,1199,1485,1410,1414,1343,1344,1342,1415,1272,1271,1414,1416,1273,1270,1341,1345,1487,1201,1202,1488,1413,1417,1346,1347,1345,1418,1275,1274,1419,1417,1276,1273,1348,1344,1204,1490,1491,1205,1420,1416,1349,1350,1348,1421,1278,1277,1422,1420,1279,1276,1347,1351,1207,1493,1494,1208,1419,1423,1352,1351,1353,1424,1281,1280,1423,1425,1282,1279,1354,1350,1210,1496,1497,1211,1426,1422,1355,1356,1354,1427,1284,1283,1428,1426,1285,1282,1353,1357,1213,1499,1500,1214,1429,1425,1359,1360,1358,1431,1287,1288,1432,1430,1286,1289,1361,1357,1217,1504,1503,1216,1433,1429,1362,1363,1361,1434,1290,1291,1435,1433,1289,1292,1364,1360,1220,1507,1506,1219,1436,1432,1365,1364,1366,1437,1293,1294,1436,1438,1292,1295,1367,1363,1223,1510,1509,1222,1439,1435,1368,1367,1369,1440,1296,1297,1439,1441,1295,1298,1366,1370,1226,1513,1512,1225,1438,1442,1371,1370,1372,1443,1299,1300,1442,1444,1298,1301,1373,1369,1516,1229,1228,1515,1445,1441,1374,1375,1373,1446,1302,1303,1447,1445,1301,1376,1372,1304,1519,1232,1231,1518,1444,1448,1377,1378,1376,1449,1305,1306,1450,1448,1304,1379,1375,1522,1307,1234,1235,1521,1451,1447,1380,1379,1381,1452,1308,1309,1451,1453,1307,1378,1382,1525,1237,1310,1238,1524,1450,1454,1384,1383,1385,1456,1312,1313,1455,1457,1311,1382,1386,1529,1241,1314,1242,1528,1454,1458,1387,1386,1388,1459,1315,1316,1460,1458,1314,1389,1385,1532,1244,1317,1245,1531,1461,1457,1390,1391,1389,1462,1318,1319,1463,1461,1317,1392,1388,1535,1247,1320,1248,1534,1464,1460,1611,1612,1683,1684,1538,1757,1685,1539,1610,1613,1682,1758,1465,1686,1756,1540,1609,1831,1614,1613,1615,1541,1687,1688,1540,1542,1686,1612,1616,1468,1761,1689,1762,1539,1543,1467,1617,1618,1616,1544,1690,1691,1545,1543,1689,1619,1615,1471,1764,1692,1765,1542,1546,1472,1621,1620,1622,1548,1694,1695,1547,1549,1693,1619,1623,1475,1768,1696,1769,1546,1550,1474,1624,1623,1625,1551,1697,1698,1550,1552,1696,1626,1622,1478,1771,1699,1772,1549,1553,1477,1627,1628,1626,1554,1700,1701,1553,1555,1699,1629,1625,1481,1774,1702,1775,1556,1552,1482,1630,1631,1629,1557,1703,1704,1556,1558,1702,1705,1628,1632,1484,1777,1778,1555,1559,1485,1633,1632,1634,1560,1706,1707,1559,1561,1705,1708,1631,1635,1487,1780,1781,1558,1562,1486,1636,1637,1635,1563,1709,1710,1564,1562,1708,1711,1638,1634,1490,1783,1784,1565,1561,1491,1640,1641,1639,1567,1713,1714,1568,1566,1712,1715,1642,1638,1494,1787,1788,1565,1569,1495,1643,1644,1642,1570,1716,1717,1571,1569,1715,1718,1645,1641,1497,1790,1791,1572,1568,1498,1646,1645,1647,1573,1719,1720,1572,1574,1718,1721,1644,1648,1500,1793,1794,1571,1575,1501,1649,1650,1648,1576,1723,1722,1575,1577,1724,1721,1651,1647,1503,1797,1796,1578,1574,1502,1652,1653,1651,1579,1726,1725,1580,1578,1727,1724,1654,1650,1506,1800,1799,1581,1577,1507,1655,1654,1656,1582,1729,1728,1583,1581,1730,1727,1657,1653,1509,1803,1802,1584,1580,1510,1659,1658,1660,1586,1733,1732,1585,1587,1734,1731,1657,1661,1513,1807,1806,1584,1588,1512,1662,1663,1661,1589,1736,1735,1588,1590,1737,1734,1660,1664,1516,1810,1809,1591,1587,1517,1665,1666,1664,1592,1739,1738,1593,1591,1740,1737,1663,1667,1519,1813,1812,1594,1590,1520,1668,1667,1669,1595,1742,1741,1594,1596,1743,1666,1670,1522,1816,1740,1815,1593,1597,1521,1671,1672,1670,1598,1745,1744,1599,1597,1746,1669,1673,1525,1819,1743,1818,1596,1600,1524,1674,1673,1675,1601,1748,1747,1602,1600,1749,1676,1672,1528,1822,1746,1821,1603,1599,1527,1678,1679,1677,1605,1752,1751,1606,1604,1753,1676,1680,1532,1826,1750,1825,1607,1603,1533,1681,1680,1682,1608,1755,1754,1609,1607,1756,1683,1679,1535,1829,1753,1828,1606,1610,1534,1832,1905,1833,1906,1758,1831,1759,1907,1978,1834,1904,1979,1684,1760,1830,1757,1685,1980,1835,1836,1834,1761,1909,1908,1762,1760,1910,1833,1837,1687,1982,1907,1759,1763,1981,1688,1838,1837,1839,1764,1912,1911,1765,1763,1913,1836,1840,1690,1985,1910,1984,1766,1762,1691,1842,1841,1843,1768,1916,1915,1767,1769,1917,1844,1840,1694,1989,1914,1988,1770,1766,1695,1845,1844,1846,1771,1919,1918,1770,1772,1920,1843,1847,1697,1992,1917,1991,1769,1773,1696,1848,1849,1847,1774,1922,1921,1773,1775,1923,1850,1846,1700,1995,1920,1994,1776,1772,1701,1851,1852,1850,1777,1925,1924,1778,1776,1926,1853,1849,1703,1923,1998,1997,1779,1775,1704,1855,1854,1856,1781,1929,1928,1780,1782,1930,1927,1853,1857,1707,2002,2001,1779,1783,1708,1858,1857,1859,1784,1932,1931,1783,1785,1933,1930,1856,1860,1710,2005,2004,1782,1786,1709,1861,1860,1862,1787,1935,1934,1786,1788,1936,1933,1859,1863,1713,2008,2007,1785,1789,1712,1864,1865,1863,1790,1938,1937,1789,1791,1939,1936,1866,1862,1716,2011,2010,1792,1788,1717,1867,1868,1866,1793,1941,1940,1794,1792,1942,1939,1865,1869,1719,2014,2013,1795,1791,1720,1871,1870,1872,1797,1944,1945,1796,1798,1943,1946,1869,1873,1723,2017,2018,1795,1799,1722,1874,1875,1873,1800,1947,1948,1801,1799,1946,1949,1876,1872,1726,2020,2021,1802,1798,1727,1877,1876,1878,1803,1950,1951,1802,1804,1949,1952,1875,1879,1729,2023,2024,1801,1805,1728,1880,1879,1881,1806,1953,1954,1805,1807,1952,1955,1878,1882,1732,2026,2027,1804,1808,1731,1883,1884,1882,1809,1956,1957,1810,1808,1955,1958,1885,1881,1735,2029,2030,1811,1807,1736,1887,1888,1886,1813,1960,1961,1814,1812,1959,1889,1885,1739,1962,2033,2034,1815,1811,1740,1890,1891,1889,1816,1963,1964,1815,1817,1962,1888,1892,1742,2036,1965,2037,1814,1818,1741,1893,1894,1892,1819,1966,1967,1820,1818,1965,1895,1891,1745,2039,1968,2040,1821,1817,1746,1896,1895,1897,1822,1969,1970,1821,1823,1968,1894,1898,1748,2042,1971,2043,1820,1824,1747,1900,1901,1899,1826,1973,1974,1825,1827,1972,1898,1902,1752,2046,1975,2047,1824,1828,1753,1903,1904,1902,1829,1976,1977,1830,1828,1975,1905,1901,1755,2049,1978,1831,1827,2050,1756,2052,2053,2124,1979,2125,1980,2051,2126,2196,2054,2123,2197,1906,1981,2050,1907,1978,2198,2055,2056,2054,1982,2128,2127,1983,1981,2129,2057,2053,1909,2200,2126,2199,1984,1980,1908,2058,2059,2057,1985,2131,2130,1986,1984,2132,2060,2056,1912,2203,2129,2202,1987,1983,1911,2062,2061,2063,1989,2135,2134,1988,1990,2136,2060,2064,1916,2207,2133,2206,1987,1991,1917,2065,2064,2066,1992,2138,2137,1991,1993,2139,2067,2063,1919,2210,2136,2209,1994,1990,1918,2068,2069,2067,1995,2141,2140,1994,1996,2142,2070,2066,1922,2213,2139,2212,1997,1993,1921,2071,2072,2070,1998,2144,2143,1999,1997,2145,2069,2073,1925,2142,2216,2215,1996,2000,1926,2074,2073,2075,2001,2147,2146,2002,2000,2148,2145,2072,2076,1928,2219,2218,1999,2003,1927,2077,2078,2076,2004,2150,2149,2005,2003,2151,2148,2079,2075,1931,2222,2221,2006,2002,1932,2081,2082,2080,2008,2154,2153,2009,2007,2155,2152,2079,2083,1935,2226,2225,2006,2010,1936,2084,2085,2083,2011,2157,2156,2012,2010,2158,2155,2086,2082,1938,2229,2228,2013,2009,1939,2087,2086,2088,2014,2160,2159,2013,2015,2161,2158,2085,2089,1941,2232,2231,2012,2016,1940,2090,2089,2091,2017,2162,2163,2016,2018,2161,2164,2092,2088,1944,2234,2235,2019,2015,1945,2093,2094,2092,2020,2165,2166,2021,2019,2164,2167,2095,2091,1947,2237,2238,2022,2018,1946,2096,2095,2097,2023,2168,2169,2022,2024,2167,2170,2098,2094,1950,2240,2241,2021,2025,1949,2100,2099,2101,2027,2172,2173,2026,2028,2171,2174,2098,2102,1954,2244,2245,2025,2029,1953,2103,2102,2104,2030,2175,2176,2029,2031,2174,2177,2101,2105,1957,2247,2248,2032,2028,1956,2106,2107,2105,2033,2178,2179,2034,2032,2177,2108,2104,1960,2180,2250,2251,2035,2031,1959,2109,2108,2110,2036,2181,2182,2035,2037,2180,2107,2111,1963,2253,2183,2254,2034,2038,1962,2112,2113,2111,2039,2184,2185,2040,2038,2183,2114,2110,1966,2256,2186,2257,2041,2037,1967,2115,2116,2114,2042,2187,2188,2043,2041,2186,2113,2117,1969,2259,2189,2260,2040,2044,1968,2119,2118,2120,2046,2191,2192,2045,2047,2190,2117,2121,1973,2263,2193,2264,2048,2044,1972,2122,2121,2123,2049,2194,2195,2048,2050,2193,2120,2124,1976,2266,2196,2267,2047,2051,1975,2269,-1,-1,2339,2270,2197,-1,-1,2198,2268,-1,-1,-1,2271,2338,-1,2125,-1,2272,2273,2271,-1,2200,-1,2201,2199,-1,-1,-1,-1,2270,2274,2128,2202,-1,2129,2275,-1,2276,2274,2203,-1,2204,-1,2202,-1,-1,-1,2277,2273,2131,-1,-1,2205,2278,-1,2279,2277,2206,-1,2207,-1,2205,-1,-1,-1,2280,2276,2134,2208,-1,-1,2281,-1,2282,2280,2209,-1,2210,-1,2208,-1,-1,-1,2283,2279,2137,2211,-1,2138,2284,-1,2283,2285,2212,-1,2213,-1,2211,-1,-1,-1,2282,2286,2140,2214,-1,-1,2288,-1,2289,2287,2216,-1,2217,-1,2215,-1,-1,-1,2218,2290,2286,2144,-1,2145,2291,-1,2290,2292,2219,-1,2220,-1,2218,-1,-1,-1,2221,2289,2293,2147,-1,-1,2294,2293,2295,-1,-1,2222,2223,-1,-1,2221,-1,-1,2224,2296,2292,2150,2151,-1,2297,-1,2298,2296,2225,2226,-1,-1,2224,-1,2227,-1,-1,2299,2295,-1,-1,2153,2300,2301,2299,-1,-1,2228,2229,-1,-1,2227,2230,-1,-1,2302,2298,2156,2157,-1,2303,-1,2304,2302,2231,2232,-1,-1,2230,-1,2233,-1,-1,2305,2301,-1,-1,2159,2306,-1,2307,2305,2235,-1,2234,-1,-1,2236,2233,-1,-1,2308,2304,2163,2162,-1,2309,-1,2308,2310,2238,-1,2237,-1,2239,-1,-1,2236,-1,2307,2311,2166,2165,-1,2312,-1,2311,2313,2241,2240,-1,-1,2242,-1,-1,2239,-1,2310,2314,2169,-1,-1,2315,2314,2316,-1,2244,-1,2243,-1,-1,2245,-1,-1,2242,2317,2313,2172,2171,-1,2318,-1,2317,2319,2247,2246,-1,-1,2248,-1,-1,2245,-1,-1,2316,2320,-1,2175,2321,2320,2322,-1,2250,-1,2249,-1,2251,-1,-1,-1,2248,2319,2323,2178,2177,-1,2325,-1,2326,2324,2254,-1,2253,-1,2255,-1,-1,-1,-1,2327,2323,-1,2182,2252,2328,2329,2327,-1,2257,-1,2256,2258,-1,-1,-1,-1,2330,2326,2185,2255,2184,-1,2331,-1,2332,2330,2260,-1,2259,-1,2261,-1,-1,-1,2333,2329,2188,-1,-1,2258,2334,-1,2335,2333,2263,-1,2262,2264,-1,-1,-1,-1,2336,2332,2191,-1,2261,2190,2337,-1,2338,2336,2266,-1,2265,-1,2267,-1,-1,-1,2339,2335,2194,-1,-1,2264],"visual":[0,5,4,3,1,7,6,2,16,8,17,9,10,15,11,18,14,12,20,37,36,21,8,38,58,19,9,22,35,59,1,39,57,60,85,7,23,22,41,40,10,24,42,9,11,39,21,2,64,63,25,3,43,65,26,25,44,45,12,27,43,13,11,24,46,68,3,69,67,4,42,28,29,28,48,14,49,47,30,27,15,13,50,46,72,73,4,5,74,71,31,32,52,51,16,30,53,15,17,33,50,77,6,78,76,5,54,29,34,35,55,56,18,33,54,17,19,57,36,7,81,82,32,6,53,83,86,117,116,87,150,118,59,85,60,151,115,88,188,152,119,149,37,84,89,120,121,90,88,62,61,119,122,63,155,91,154,87,60,39,156,40,92,124,93,123,91,64,125,65,94,159,63,158,122,66,41,90,42,160,95,127,96,128,67,94,126,68,66,97,162,163,129,44,43,161,93,69,98,99,131,130,70,97,69,132,100,129,71,166,167,46,165,68,45,96,101,102,134,133,135,73,72,100,103,170,74,71,169,171,136,132,48,49,105,104,137,138,75,106,76,136,103,139,74,174,173,50,175,77,51,107,108,141,107,140,78,109,142,77,79,106,178,177,139,52,53,179,110,76,111,144,110,145,112,81,143,80,109,181,82,182,146,79,55,113,54,180,114,148,147,113,115,83,84,149,146,82,185,112,186,116,85,57,184,56,189,230,229,190,273,231,151,274,152,188,320,275,228,191,232,272,117,187,192,233,234,191,193,232,154,153,277,278,155,235,190,194,276,152,231,119,195,236,237,194,196,235,156,157,281,280,238,193,155,158,282,197,122,234,198,239,240,197,199,159,238,160,284,241,158,196,285,283,200,124,161,125,201,243,242,200,202,162,244,161,241,287,288,199,163,286,127,289,160,203,204,246,203,245,247,205,165,164,291,202,244,290,166,292,163,129,248,206,249,207,206,248,250,167,208,168,205,294,295,166,247,293,169,251,132,131,252,209,210,253,251,170,208,211,171,169,297,298,250,254,296,299,134,168,255,212,213,256,254,173,211,172,214,301,300,174,257,302,171,253,136,137,215,258,216,259,257,214,175,176,304,217,260,305,174,303,177,139,256,213,218,261,262,219,217,178,260,179,263,308,307,220,177,309,141,306,180,216,221,265,264,222,220,181,266,180,311,263,182,223,310,312,219,144,179,143,224,268,267,225,223,269,184,183,314,315,266,226,185,182,313,222,146,270,227,271,270,228,226,272,186,187,318,317,185,269,229,225,319,188,273,149,371,321,372,422,370,322,423,274,476,424,320,275,373,421,369,323,230,276,374,324,375,325,323,373,426,277,427,276,376,278,326,425,322,428,372,233,377,378,327,328,326,430,280,376,379,429,279,329,281,431,325,428,278,235,381,330,380,331,382,433,329,283,332,282,434,379,432,284,383,281,238,328,384,333,334,383,385,286,437,436,332,335,285,287,386,382,438,435,284,241,387,337,388,336,386,440,338,289,288,335,439,389,441,290,287,385,244,339,391,390,340,339,341,443,392,389,292,291,444,338,442,293,290,342,445,246,394,343,393,342,344,395,447,295,446,294,392,341,448,296,293,345,445,396,397,346,398,396,345,347,450,297,298,449,451,395,399,344,348,296,299,252,400,349,401,350,348,399,453,300,454,301,402,351,452,299,302,347,455,398,403,404,352,353,351,457,405,402,303,304,456,354,458,302,305,350,455,258,407,355,406,356,408,460,354,306,307,357,461,405,459,305,308,409,260,353,410,359,358,409,411,309,463,464,357,360,310,308,412,408,462,465,311,263,413,362,414,361,412,467,363,312,360,313,466,415,468,311,411,314,266,364,416,417,365,364,366,470,315,418,415,471,316,363,314,469,367,472,317,269,420,368,419,367,369,421,474,318,473,319,418,317,366,475,370,472,422,271,533,477,534,590,532,478,591,650,592,423,476,424,535,589,531,479,593,649,536,480,537,481,535,479,594,595,426,538,593,425,427,482,596,478,534,654,539,540,483,484,598,482,597,538,541,429,599,485,430,428,596,481,658,537,543,542,486,487,601,544,485,600,602,432,541,488,433,431,545,484,599,603,546,489,545,490,547,604,605,488,435,491,603,544,434,436,548,606,665,487,549,493,550,492,548,608,607,494,438,491,609,551,437,439,547,606,668,495,552,553,496,495,611,551,497,612,610,441,554,494,440,442,550,498,613,609,556,555,499,498,614,500,615,557,554,444,613,497,443,445,616,501,675,558,559,502,558,501,560,503,618,617,447,557,619,448,446,500,616,504,561,679,562,505,563,561,506,504,621,622,620,450,449,451,560,564,507,503,619,623,565,508,566,509,564,507,624,625,453,567,623,452,454,510,626,506,563,685,568,569,511,512,628,510,627,567,570,456,629,513,455,457,626,509,689,566,572,571,514,515,631,573,513,630,632,459,570,516,458,460,574,512,633,629,575,517,574,518,576,634,635,516,462,519,633,573,461,463,577,636,696,515,578,521,579,520,577,638,637,522,465,519,639,580,464,466,576,636,699,523,581,582,524,523,641,580,525,642,640,468,583,522,467,469,579,526,639,643,585,584,527,526,644,528,645,586,583,471,643,525,470,472,646,529,706,587,588,530,587,529,589,531,648,647,474,586,649,475,473,528,646,532,590,710,713,651,714,775,776,652,712,839,777,591,774,715,592,650,711,653,840,778,716,717,654,779,715,655,653,780,778,594,718,593,595,656,714,781,652,843,719,720,657,658,782,783,718,656,721,597,781,659,784,598,596,717,847,655,722,723,660,661,786,785,721,659,724,600,787,662,784,599,601,850,658,720,726,725,663,664,789,788,727,724,662,790,665,603,602,604,787,853,728,854,729,728,667,666,792,730,791,793,665,668,727,606,607,605,731,857,856,790,732,731,670,669,733,795,796,671,794,668,609,730,610,608,734,797,860,859,735,673,736,734,672,798,799,674,612,797,671,737,800,611,613,733,863,675,738,739,676,675,802,737,801,677,615,740,803,674,800,616,614,736,866,678,741,742,679,805,678,740,680,804,743,806,618,619,617,677,803,681,870,739,745,744,682,808,681,683,746,743,807,809,621,622,620,680,684,873,806,810,748,747,685,811,686,749,684,812,746,810,624,623,625,687,813,683,876,750,751,750,688,689,814,752,815,687,627,749,813,690,816,628,626,753,880,686,754,691,753,755,692,818,817,690,630,819,693,752,816,629,631,756,883,689,757,758,694,695,756,821,820,693,822,696,633,759,632,634,755,819,886,887,760,761,697,698,824,759,823,825,696,699,762,636,637,635,758,890,889,826,763,764,701,700,827,828,762,765,702,826,699,639,638,640,829,893,761,892,767,766,704,703,830,831,768,705,765,642,829,702,832,643,641,896,706,769,770,769,707,706,834,833,771,708,768,645,835,705,832,644,646,772,899,709,773,772,710,837,774,709,711,836,838,648,771,649,647,708,775,835,712,903,906,973,972,907,840,1040,974,841,905,776,971,908,1041,839,777,904,842,1039,909,910,976,843,908,977,844,842,975,911,779,978,845,1044,780,778,907,1045,912,913,846,979,980,847,911,914,845,978,981,782,848,783,1048,1047,781,910,916,915,983,849,850,982,917,914,984,848,851,785,981,1051,786,784,1050,1052,919,918,986,853,852,920,985,987,854,917,851,788,789,1054,984,921,787,1055,922,921,989,923,856,855,990,988,857,791,920,854,924,792,991,1057,1058,790,925,926,859,992,993,924,858,860,991,927,994,794,795,857,1061,923,1060,793,928,929,996,862,995,927,863,861,930,997,797,994,798,1064,864,860,796,926,932,931,999,865,866,998,933,1000,864,930,800,801,867,1067,997,1068,863,799,935,934,1002,868,869,936,1003,1001,867,933,870,803,804,1071,1004,1070,937,802,938,937,1005,939,871,1006,872,1004,870,873,936,1007,806,807,940,1074,1073,805,941,942,1009,940,875,1008,874,1010,876,873,943,1007,810,809,939,1077,1078,811,944,945,1012,878,877,943,1011,1013,879,946,876,813,812,1080,1010,1081,942,814,947,948,1015,881,880,1016,946,1014,882,949,816,815,879,1084,1017,1083,883,817,951,950,1018,884,1019,952,885,883,949,1017,819,1020,818,1087,886,882,820,953,954,953,887,1022,1021,955,888,886,1023,952,1020,822,821,889,1090,956,1091,823,957,958,1025,956,890,891,1024,1026,889,825,959,892,955,824,1023,1094,1093,826,960,961,1028,893,894,959,1029,1027,892,962,895,828,827,1097,1030,958,829,1096,963,964,1031,897,896,1032,962,965,1030,898,895,831,1033,1100,830,832,1101,1099,967,966,900,1035,1034,899,968,965,901,1036,1033,834,898,833,1103,1104,835,969,970,969,1038,903,971,1037,902,904,1039,968,837,1036,901,1107,836,838,972,1106,1110,1180,1111,1179,1041,1249,1181,1042,1109,1250,1178,1112,973,1320,1251,1248,1182,1043,1113,1183,1114,1184,1044,1112,1045,1182,1043,1115,1253,1185,976,1254,1046,1111,977,975,1116,1117,1186,1187,1047,1048,1115,1185,1118,1046,1188,1256,1257,1049,979,980,978,1114,1120,1119,1190,1189,1050,1051,1121,1118,1191,1188,1049,1052,1260,1259,982,983,1261,981,1123,1122,1193,1192,1054,1124,1053,1194,1121,1055,1052,1263,1191,985,1262,986,1264,1125,1126,1196,1125,1127,1057,1195,1056,1197,1058,1124,1266,1055,1128,988,1267,989,1194,1265,1129,1199,1130,1128,1060,1200,1198,1059,1061,1131,1269,1270,1127,992,1058,991,1201,1197,1132,1133,1202,1203,1063,1131,1062,1201,1064,1134,1273,1204,1272,995,994,1061,1130,1065,1135,1136,1205,1206,1066,1134,1067,1137,1065,1204,1207,1276,998,1275,997,1068,1277,1064,1139,1138,1209,1208,1069,1140,1070,1210,1137,1068,1207,1279,1001,1071,1280,1000,1278,1002,1142,1212,1141,1211,1143,1072,1073,1213,1071,1140,1282,1074,1210,1283,1004,1144,1003,1005,1145,1215,1144,1146,1075,1076,1216,1214,1077,1074,1286,1285,1147,1143,1007,1217,1213,1006,1148,1218,1149,1219,1147,1079,1078,1217,1080,1150,1289,1077,1220,1288,1010,1146,1011,1009,1151,1152,1221,1222,1082,1150,1081,1220,1153,1083,1223,1292,1013,1080,1291,1014,1293,1012,1155,1154,1225,1224,1085,1156,1084,1153,1086,1226,1223,1295,1016,1296,1017,1083,1294,1087,1158,1157,1228,1227,1088,1159,1089,1229,1087,1156,1298,1226,1299,1019,1020,1090,1160,1086,1161,1231,1160,1162,1091,1230,1232,1092,1090,1159,1302,1301,1163,1022,1093,1023,1229,1233,1164,1234,1165,1163,1094,1235,1095,1233,1093,1166,1305,1096,1162,1026,1304,1025,1236,1306,1167,1168,1237,1238,1097,1166,1098,1236,1169,1096,1099,1308,1239,1029,1309,1028,1307,1165,1170,1171,1240,1241,1101,1100,1169,1172,1239,1242,1102,1099,1311,1312,1032,1031,1310,1033,1174,1173,1244,1243,1104,1103,1175,1245,1172,1105,1242,1315,1314,1102,1035,1034,1036,1176,1177,1247,1176,1246,1107,1178,1106,1248,1108,1175,1318,1245,1038,1317,1105,1179,1037,1039,1321,1393,1322,1392,1464,1394,1250,1251,1320,1465,1323,1391,1537,1466,1395,1463,1180,1319,1324,1396,1325,1397,1323,1253,1395,1254,1252,1468,1326,1469,1398,1467,1322,1183,1255,1394,1327,1399,1328,1400,1326,1256,1398,1257,1255,1471,1329,1472,1401,1186,1258,1470,1325,1187,1330,1331,1402,1403,1259,1329,1260,1401,1332,1404,1258,1475,1474,1261,1189,1190,1476,1473,1334,1333,1406,1405,1262,1263,1335,1332,1407,1404,1478,1261,1477,1264,1192,1479,1193,1191,1337,1409,1336,1408,1265,1338,1266,1410,1335,1481,1407,1264,1480,1267,1482,1195,1196,1339,1340,1412,1339,1411,1341,1269,1268,1413,1484,1338,1270,1410,1267,1485,1483,1198,1342,1199,1343,1415,1342,1414,1344,1416,1272,1271,1487,1273,1488,1341,1270,1413,1345,1486,1201,1417,1346,1418,1347,1345,1419,1417,1275,1274,1490,1276,1491,1348,1344,1273,1420,1416,1204,1205,1349,1421,1350,1422,1348,1278,1420,1277,1279,1494,1493,1351,1423,1276,1347,1207,1208,1495,1352,1424,1353,1425,1281,1351,1423,1280,1282,1354,1497,1426,1496,1498,1210,1279,1211,1350,1355,1356,1427,1428,1284,1354,1357,1283,1426,1285,1500,1429,1499,1501,1213,1214,1282,1286,1359,1358,1431,1430,1287,1360,1357,1288,1432,1286,1503,1429,1504,1502,1217,1216,1289,1285,1362,1434,1361,1433,1290,1363,1435,1291,1289,1360,1506,1432,1507,1505,1220,1292,1219,1364,1365,1437,1364,1436,1366,1293,1438,1294,1292,1509,1510,1363,1435,1295,1367,1223,1222,1508,1368,1440,1367,1369,1439,1441,1296,1297,1513,1295,1512,1366,1370,1298,1438,1442,1226,1225,1371,1443,1372,1444,1370,1442,1299,1300,1516,1298,1515,1373,1301,1445,1369,1517,1229,1441,1374,1446,1375,1447,1373,1302,1303,1445,1519,1376,1301,1448,1304,1518,1520,1232,1372,1231,1377,1449,1378,1450,1306,1376,1305,1448,1379,1522,1451,1307,1523,1304,1521,1235,1234,1375,1380,1381,1452,1453,1309,1308,1379,1382,1451,1454,1525,1310,1526,1307,1238,1524,1237,1239,1384,1383,1456,1455,1312,1385,1311,1457,1382,1454,1313,1528,1529,1310,1241,1240,1527,1530,1387,1459,1386,1458,1388,1315,1460,1314,1316,1532,1385,1531,1457,1244,1313,1533,1389,1243,1390,1462,1389,1461,1391,1318,1463,1317,1319,1535,1388,1534,1460,1536,1392,1247,1316,1464,1611,1538,1539,1610,1612,1683,1465,1684,1466,1537,1685,1757,1540,1609,1613,1682,1393,1467,1614,1541,1542,1615,1540,1613,1468,1687,1469,1688,1467,1543,1616,1686,1539,1470,1612,1396,1617,1544,1618,1545,1543,1616,1471,1472,1690,1691,1546,1619,1470,1473,1689,1692,1399,1542,1621,1548,1620,1547,1475,1474,1549,1694,1546,1622,1619,1693,1476,1473,1695,1402,1692,1403,1624,1551,1623,1550,1552,1625,1478,1697,1477,1549,1696,1622,1479,1698,1476,1406,1553,1405,1627,1554,1553,1626,1555,1628,1481,1700,1480,1482,1701,1552,1699,1625,1556,1629,1479,1409,1630,1557,1558,1631,1556,1629,1484,1703,1485,1704,1483,1559,1702,1632,1555,1628,1412,1486,1633,1560,1634,1561,1559,1632,1487,1707,1488,1706,1562,1486,1635,1708,1489,1705,1558,1415,1636,1563,1637,1564,1562,1490,1635,1491,1710,1565,1638,1709,1489,1711,1492,1418,1708,1561,1640,1567,1639,1566,1494,1568,1713,1493,1641,1565,1638,1712,1714,1495,1492,1421,1422,1569,1643,1570,1642,1569,1571,1644,1497,1716,1496,1717,1568,1641,1498,1715,1495,1572,1424,1645,1646,1573,1572,1645,1574,1647,1500,1719,1720,1499,1501,1571,1644,1575,1718,1648,1721,1498,1649,1576,1577,1650,1575,1648,1503,1723,1722,1504,1502,1578,1651,1574,1724,1647,1721,1505,1652,1579,1653,1580,1578,1651,1506,1726,1507,1725,1581,1654,1505,1727,1508,1577,1434,1650,1655,1582,1656,1583,1509,1581,1729,1510,1654,1584,1657,1730,1728,1508,1511,1437,1436,1580,1659,1586,1658,1585,1587,1513,1660,1512,1732,1584,1657,1733,1514,1731,1511,1440,1734,1588,1662,1589,1661,1588,1590,1663,1516,1735,1515,1736,1587,1517,1660,1734,1514,1737,1591,1443,1665,1592,1591,1664,1593,1666,1519,1739,1518,1738,1520,1590,1740,1663,1594,1667,1446,1517,1668,1595,1596,1669,1594,1667,1522,1742,1523,1521,1741,1597,1743,1670,1593,1666,1524,1449,1671,1598,1672,1599,1597,1670,1525,1745,1526,1600,1746,1673,1524,1744,1527,1452,1596,1453,1674,1601,1675,1602,1528,1529,1600,1748,1603,1673,1676,1749,1527,1530,1747,1456,1750,1455,1678,1605,1677,1604,1606,1679,1532,1531,1752,1751,1603,1676,1533,1530,1753,1750,1459,1607,1681,1608,1607,1680,1609,1682,1535,1755,1534,1754,1536,1606,1679,1756,1610,1533,1683,1462,1832,1758,1833,1905,1759,1831,1906,1684,1978,1907,1685,1757,1834,1904,1830,1760,1611,1756,1835,1761,1836,1762,1834,1760,1909,1687,1910,1688,1837,1908,1763,1686,1759,1833,1689,1911,1838,1839,1764,1765,1912,1837,1913,1763,1690,1840,1691,1766,1911,1689,1692,1914,1617,1618,1842,1841,1768,1767,1843,1916,1915,1769,1694,1693,1840,1766,1695,1917,1914,1692,1770,1844,1845,1771,1844,1770,1846,1772,1919,1918,1697,1696,1698,1843,1769,1920,1773,1847,1917,1695,1848,1774,1849,1775,1847,1773,1922,1700,1921,1701,1923,1699,1850,1776,1772,1846,1702,1627,1851,1777,1852,1778,1925,1850,1776,1703,1704,1926,1853,1924,1779,1702,1705,1775,1849,1630,1855,1854,1781,1780,1928,1856,1853,1782,1929,1707,1779,1706,1927,1708,1705,1930,1633,2001,1858,1784,1857,1783,1859,1785,1931,1932,1710,1709,1856,1782,1711,1930,1933,1708,1786,1860,1861,1787,1860,1862,1786,1788,1935,1934,1713,1712,1714,1859,1785,1936,1789,1863,1933,1711,1864,1790,1865,1791,1863,1789,1938,1716,1937,1717,1866,1792,1715,1939,1788,1862,1936,1718,1867,1868,1793,1794,1941,1866,1792,1719,1720,1869,1940,1795,1942,1718,1721,1646,1791,1865,1871,1870,1797,1796,1944,1872,1798,1723,1722,1869,1945,1795,1943,1724,1721,1649,1799,1873,1874,1800,1873,1799,1875,1801,1947,1726,1948,1725,1872,1798,1727,1946,1802,1876,1949,1724,1877,1803,1878,1876,1804,1802,1950,1951,1729,1730,1728,1879,1805,1949,1801,1875,1952,1731,1880,1806,1881,1807,1879,1805,1954,1953,1732,1733,1882,1808,1731,1955,1952,1734,1804,1878,1883,1884,1809,1810,1957,1882,1885,1808,1956,1735,1811,1736,1958,1734,1737,1955,1662,2030,1887,1813,1886,1812,1960,1888,1814,1739,1738,1959,1885,1961,1811,1740,1737,1815,1889,1665,1890,1816,1889,1815,1891,1817,1963,1742,1964,1741,1962,1743,1888,1814,1818,1892,1740,1668,1893,1819,1894,1820,1892,1818,1966,1967,1745,1746,1744,1895,1821,1965,1817,1891,1968,1747,1896,1897,1822,1823,1895,1969,1970,1821,1748,1749,1898,1824,1747,1968,1971,1750,1820,1894,1900,1899,1826,1825,1973,1901,1972,1827,1752,1898,1751,1824,1974,1753,1750,1971,1678,1677,1903,1829,1902,1828,1904,1830,1976,1755,1975,1754,1901,1977,1827,1756,1831,1905,1753,1974,2052,1979,2053,2124,2125,1980,2051,2126,2196,1906,1907,1978,2054,2123,2050,1981,2197,2127,2055,1982,2056,1983,2128,2054,1981,2129,1909,2127,1910,2057,1984,1908,2053,2200,1980,2130,2058,2059,1985,1986,2131,2057,2132,1984,1912,2060,1913,2130,1987,1911,2133,1914,2203,2204,2062,2061,1989,1988,2134,2135,2063,2060,1990,1987,1916,1915,2133,2136,1917,1914,2206,2207,2065,2064,1992,1991,2138,2137,2066,1993,1919,2063,1918,1990,2139,2136,1920,1917,2210,2209,2068,1995,2067,1994,2069,2141,2140,1996,1922,1921,2142,2066,1923,1993,2139,2070,1997,2213,2071,1998,2072,2070,2144,1999,1997,2143,1925,2145,1926,1924,2073,2000,2069,1996,2142,2216,2074,2075,2001,2002,2147,2073,2000,2146,2148,1928,1929,2076,2003,1927,2219,2072,1999,1930,2077,2078,2004,2005,2150,2076,2151,2003,2149,2079,1931,1932,2006,1930,1933,2222,2152,2075,2081,2080,2008,2007,2153,2154,2082,2079,2009,1935,2152,2006,1934,1936,1933,2225,2155,2226,2084,2083,2011,2010,2156,2085,2157,2012,1938,2082,1937,2155,2009,1939,2158,2228,2086,1936,2087,2014,2086,2088,2013,2159,2160,2015,1941,1940,2158,1942,2085,2012,2161,2089,2016,2231,2090,2017,2091,2089,2018,2163,2162,2016,1944,1945,2164,1943,2092,2019,2161,2088,2015,2235,2093,2094,2020,2021,2166,2092,2165,2019,1947,2095,1948,2167,2022,1946,2164,2238,2091,1949,2096,2097,2023,2024,2169,2168,2095,2098,2022,1950,2170,2025,1951,1949,1952,2241,2167,2240,2100,2099,2027,2026,2172,2101,2171,2028,2173,2098,1954,1953,2025,1955,1952,2244,2170,2102,2103,2102,2030,2029,2175,2104,2031,2176,2174,1957,1956,2101,2028,1958,2247,2105,2032,1955,2106,2033,2105,2107,2178,2032,2034,2179,1960,2177,1959,1961,2104,2031,2108,2035,2180,2250,2109,2036,2110,2037,2108,2181,2182,2035,1963,1964,2180,2111,1962,2038,2183,2107,2034,2253,2112,2113,2039,2040,2184,2185,2111,2038,1966,2114,1967,2041,2183,2186,1965,1968,2256,2257,2115,2116,2042,2043,2188,2187,2114,2117,2041,2044,1969,1970,2189,2186,1968,1971,2260,2259,2119,2118,2046,2045,2191,2120,2190,2047,1973,2117,1972,2192,2044,1974,2189,1971,2263,2262,2122,2049,2121,2048,2194,2123,2050,2193,1976,2195,1975,2120,2047,1977,2124,2266,2051,2192,2269,2197,-1,-1,2270,2339,-1,2198,2268,-1,2125,-1,-1,2126,2196,-1,2338,2271,2272,2200,2273,-1,-1,2271,2201,2199,-1,-1,2128,-1,-1,2129,2274,2202,2127,2270,2275,2276,-1,2203,2204,2274,-1,-1,2202,2131,-1,2132,2277,2205,-1,-1,-1,2130,2278,2279,2206,-1,-1,2207,2277,-1,2205,-1,2134,2280,2208,2135,-1,-1,2133,-1,2281,2282,-1,2210,2209,-1,-1,2280,2211,2283,2208,2138,2137,-1,-1,-1,-1,-1,2284,2285,-1,2213,-1,2212,2283,-1,2214,2286,2141,-1,-1,2140,2211,-1,2142,-1,2288,2287,-1,2216,2215,-1,-1,2217,2289,2286,2144,-1,2143,-1,2214,-1,2145,-1,2291,2290,2219,-1,-1,2218,2220,2292,-1,2289,2147,-1,-1,-1,2146,2148,2217,-1,2294,2293,2222,-1,-1,2223,2295,2221,-1,2150,2292,-1,-1,-1,2151,2149,2224,-1,2297,2296,2225,-1,-1,2226,2298,2224,-1,2153,-1,2295,-1,2154,-1,2227,2152,-1,2300,2299,-1,2228,-1,2229,2301,-1,2227,2156,-1,-1,2157,2230,2298,-1,2155,2302,2303,-1,2302,2231,2232,2304,-1,-1,2230,2233,2159,-1,2160,-1,-1,2301,2305,-1,2306,-1,2307,2235,2234,2305,-1,-1,2236,2233,2163,-1,2162,-1,-1,2308,2304,2164,2309,2310,-1,2238,2237,2308,-1,-1,2239,2166,-1,2165,2236,2311,-1,-1,-1,2167,2312,2313,2241,-1,-1,2240,2311,2242,-1,-1,2169,2314,-1,-1,2168,2239,2170,-1,2315,2316,2244,-1,-1,2243,-1,2314,2245,2172,2317,-1,2171,2173,-1,-1,-1,2242,2318,2319,2247,-1,-1,2248,2246,2317,-1,2320,-1,2175,-1,-1,2176,2174,2249,2245,2321,2322,-1,2250,2251,-1,-1,2249,2320,2323,2178,-1,2179,2252,-1,-1,-1,-1,2325,2324,2253,-1,-1,2254,2326,2252,2323,-1,-1,2181,2182,2255,-1,-1,2180,-1,2328,2327,-1,2256,2257,-1,-1,2329,2255,2326,2258,2184,2185,-1,-1,-1,-1,-1,2331,2330,2260,-1,-1,2259,2332,-1,2261,-1,2188,2329,2258,2187,-1,-1,2189,-1,2334,2333,-1,2263,2262,2335,-1,-1,2264,2191,-1,2190,2332,2261,-1,-1,2192,-1,2337,2266,2336,-1,-1,2338,2265,2267,-1,2194,-1,-1,-1,2193,2335,2264,2195,2339]},"4":{"rings":56,"count":4187,"defaultK":17,"kMax":32,"geodesic":[0,5,4,1,2,6,3,7,14,9,19,16,12,17,11,10,18,15,13,8,24,34,21,37,31,27,36,22,29,28,30,32,38,60,39,20,61,88,62,21,37,59,40,8,89,87,63,90,120,22,36,19,9,91,119,64,86,41,58,1,121,122,157,92,42,43,41,66,23,65,24,67,22,64,40,44,10,95,94,68,25,96,11,93,9,21,63,97,39,45,69,92,127,2,128,126,46,47,45,71,26,70,27,72,25,69,44,48,100,12,101,28,99,73,13,102,11,68,24,98,43,49,134,74,133,3,29,103,49,50,48,74,29,75,28,73,76,30,51,47,27,104,14,105,13,103,72,106,77,15,31,102,52,46,26,107,139,138,4,12,53,52,54,79,32,80,31,78,33,81,55,51,110,16,109,30,111,77,15,108,17,82,34,112,56,50,145,76,146,6,29,107,57,58,56,84,35,85,34,83,36,86,59,55,18,115,116,82,33,114,17,117,19,37,87,113,60,54,81,118,152,7,151,153,158,198,159,121,199,200,243,157,122,197,160,89,244,201,242,245,291,156,123,120,90,290,246,196,161,241,202,61,292,119,91,293,162,163,161,203,125,204,124,202,126,205,123,164,160,92,249,248,93,250,91,201,247,206,127,122,94,251,165,159,297,64,90,298,166,165,167,208,128,207,129,209,127,206,164,168,95,253,254,130,96,210,252,94,126,255,205,97,163,169,251,302,131,66,67,303,170,169,171,212,132,213,131,211,133,172,168,214,258,98,99,130,259,257,210,134,97,260,100,256,215,173,167,307,69,129,308,209,217,218,216,263,174,175,264,262,173,176,219,215,265,313,136,312,135,314,261,137,311,172,134,315,177,266,214,220,366,102,138,367,179,178,180,222,140,223,139,221,141,181,177,269,105,268,224,106,220,138,142,270,267,104,107,225,182,176,271,319,219,75,318,266,226,225,227,273,183,182,272,274,184,181,224,228,271,323,143,324,144,322,275,142,325,185,145,321,180,270,229,223,377,108,141,376,187,186,188,231,147,230,148,232,146,185,189,229,278,112,111,149,277,279,233,145,113,276,110,280,228,184,190,329,81,150,328,234,191,192,190,235,151,236,150,234,152,237,193,189,115,283,282,149,114,233,284,116,153,281,238,113,194,188,285,334,148,84,83,333,195,194,196,240,154,239,155,241,153,238,156,193,197,118,287,288,117,286,119,242,289,237,152,157,116,285,192,198,339,86,120,338,399,400,456,344,457,517,458,345,398,401,455,292,518,516,459,581,519,293,343,346,397,580,520,342,294,402,454,244,582,515,460,583,403,402,404,461,348,462,347,460,349,405,401,463,522,296,523,346,295,459,521,350,297,524,294,464,406,400,345,247,520,587,586,248,407,406,408,465,352,466,351,464,353,467,350,409,405,527,299,526,300,528,298,463,525,354,468,301,349,529,404,410,591,297,251,250,411,410,412,470,355,469,356,471,354,468,357,409,413,531,303,532,302,530,304,472,533,353,301,467,358,529,408,414,254,596,595,305,416,415,417,475,360,474,361,476,359,414,418,537,307,473,536,308,362,477,538,358,306,535,309,539,472,413,419,258,601,602,305,363,420,421,419,479,364,480,363,478,365,422,418,541,311,481,542,310,362,477,540,312,366,543,309,539,423,417,482,606,313,261,262,605,424,423,425,483,368,484,367,482,369,485,422,426,366,546,314,545,315,547,481,313,544,370,316,486,365,421,427,265,548,610,611,264,428,427,429,487,488,371,372,486,489,370,373,426,430,318,550,549,551,317,319,485,490,369,374,548,552,316,320,425,431,268,615,614,432,431,433,492,375,491,376,493,374,490,430,434,377,554,322,555,321,553,494,323,556,373,320,489,378,429,435,271,552,620,619,272,436,435,437,496,379,495,380,497,378,434,438,559,325,494,558,326,381,498,560,324,377,557,327,561,433,439,493,624,323,275,274,625,440,439,441,500,383,501,382,499,384,438,442,563,329,502,564,328,381,498,562,385,330,565,327,561,503,443,437,278,629,628,331,380,445,446,444,505,388,506,387,504,389,507,386,447,443,569,333,568,334,570,332,503,567,390,335,508,385,571,442,448,282,634,635,331,449,448,450,510,391,509,392,511,390,508,393,447,451,573,337,574,336,572,338,512,575,389,507,335,394,571,446,452,639,339,285,286,453,452,454,514,395,513,396,515,394,451,455,512,578,340,577,397,341,516,579,393,339,576,342,511,450,456,398,289,580,643,644,288,648,649,716,582,717,787,718,647,583,650,715,518,788,719,786,789,860,581,519,646,584,790,859,580,520,651,714,457,861,785,720,862,652,651,653,721,586,585,722,720,587,650,654,792,522,723,584,521,793,719,791,523,588,794,520,790,655,649,724,865,583,461,460,866,657,656,658,726,591,590,727,725,592,589,728,655,659,526,798,797,527,724,525,799,796,528,593,588,729,654,660,465,871,870,800,524,661,660,662,730,594,595,731,729,593,732,596,663,659,530,802,801,531,529,803,728,800,592,733,597,532,528,804,664,658,875,468,469,665,664,666,598,734,735,599,597,733,736,663,667,806,534,600,533,805,807,535,596,732,737,532,804,808,601,662,668,472,879,536,880,670,669,671,603,740,739,604,602,741,738,668,672,811,538,539,812,605,601,810,537,742,540,813,737,667,673,809,885,476,477,884,606,674,673,675,607,744,743,606,608,745,672,676,742,542,816,815,605,543,541,609,746,817,814,544,741,540,677,671,480,889,604,890,818,678,679,677,748,611,610,747,749,612,680,676,609,546,820,746,819,545,750,547,821,613,818,544,608,822,681,675,745,548,894,484,483,683,684,682,753,615,616,754,752,614,617,685,681,825,550,551,755,751,826,824,549,552,613,618,827,823,686,680,488,899,756,750,900,687,688,686,757,619,620,758,756,618,685,689,621,554,829,759,830,555,755,553,828,617,831,556,622,827,684,690,760,552,903,491,492,691,692,690,623,761,762,624,622,760,693,689,763,558,833,834,625,557,559,621,759,832,835,556,764,560,694,688,495,908,626,907,831,695,694,696,627,765,766,626,628,764,767,693,697,838,562,561,837,625,629,839,563,763,560,836,768,692,698,840,912,499,498,913,624,700,699,701,632,771,770,631,633,772,769,698,702,843,566,630,567,844,842,565,634,773,768,568,845,841,629,697,703,503,918,564,917,704,705,703,775,636,635,774,776,637,773,634,706,702,570,847,848,569,571,846,777,849,638,772,633,568,572,845,707,701,922,507,506,708,709,707,779,639,640,778,780,638,641,777,710,706,574,851,852,573,781,575,850,853,572,637,642,776,711,705,510,926,927,849,576,713,714,712,784,644,645,783,785,643,715,711,857,578,782,646,579,856,786,858,577,642,855,580,859,716,710,781,932,647,514,515,931,936,937,1012,861,1013,1014,1091,862,935,938,1011,788,1092,1090,1015,1172,1093,789,860,863,934,1171,1094,790,859,1010,939,717,1173,1016,1089,1254,940,941,939,1017,865,1018,864,1016,866,942,938,1096,792,1019,1097,863,791,1015,1095,867,793,1098,790,1094,943,937,1020,1177,794,721,720,1178,945,946,944,1022,870,1023,869,1021,871,947,943,1024,868,1101,797,1102,796,1020,1100,872,1103,798,795,1025,867,948,942,725,1183,1182,726,1099,949,950,948,1026,874,1027,873,1025,875,1028,872,951,947,1106,800,1105,801,1107,799,1024,876,1104,802,1029,871,952,946,729,1187,1108,798,1186,953,954,952,1030,878,1031,877,1029,879,1032,876,955,951,1110,804,1109,805,1111,803,1028,880,1033,1108,875,806,1112,802,956,950,1191,733,732,957,958,956,1035,881,1034,882,1036,880,1033,883,959,955,1114,808,1115,807,1113,809,1037,879,1032,1116,884,806,1112,810,954,960,1195,736,1196,962,963,961,1040,886,1039,887,1041,885,1038,888,964,960,1119,813,1120,812,1118,814,1042,884,1121,811,1037,889,965,959,741,1201,1117,1200,815,966,965,967,1044,890,1043,891,1045,889,968,964,1042,1124,816,892,1123,817,1046,1125,888,815,1122,818,1041,893,963,969,1205,745,744,1126,1204,970,971,969,1048,894,1047,895,1049,893,972,968,1128,820,1046,1127,896,821,1050,1129,892,819,1126,822,1130,973,967,1045,1209,748,818,897,749,975,976,974,1053,899,1054,1052,898,900,977,973,1133,825,1055,1134,1051,1132,824,897,826,901,1135,1131,823,827,978,972,753,1215,1214,1056,1050,979,978,980,1057,903,1058,902,1056,904,977,981,1137,829,1059,1138,901,828,1055,1136,905,830,1139,827,1135,976,982,1060,1219,757,831,900,756,983,984,982,1061,907,1062,906,1060,908,985,981,1063,1141,833,905,1142,832,1059,1140,909,834,1143,831,1064,904,986,980,1223,760,761,1139,1224,987,986,988,1065,911,1066,910,1064,912,1067,909,985,989,1146,836,1145,837,1147,835,1063,913,1144,838,1068,908,984,990,764,1227,1148,1228,834,992,991,993,1070,916,1071,915,1069,917,1072,914,990,994,1151,841,1150,842,1152,840,1068,918,1073,1149,913,843,1153,839,989,995,1233,769,1232,996,997,995,1075,919,1074,920,1076,918,1073,921,994,998,1155,845,1156,844,1154,846,1077,917,1072,1157,922,843,1153,847,993,999,1237,772,773,1000,1001,999,1079,923,1078,924,1080,922,1077,925,998,1002,1159,849,1160,848,1158,850,1081,921,1161,847,1076,926,1003,997,776,1241,1157,851,1242,1004,1005,1003,1083,927,1082,928,1084,926,1006,1002,1081,929,1164,852,1163,853,1085,1165,925,1162,851,854,1080,930,1007,1001,780,1245,1246,779,1166,1009,1010,1008,1088,932,1087,933,1089,931,1011,1007,1169,857,1086,1168,934,858,1090,1170,930,856,1167,859,1171,1012,1006,1085,1251,855,784,785,1250,1255,1338,1256,1339,1173,1340,1423,1254,1174,1337,1257,1092,1424,1341,1422,1425,1509,1172,1093,1253,1175,1508,1426,1171,1094,1336,1258,1013,1510,1342,1421,1511,1259,1260,1258,1343,1177,1176,1344,1342,1178,1261,1257,1428,1096,1175,1345,1095,1429,1341,1427,1097,1179,1094,1430,1426,1098,1262,1256,1514,1017,1346,1174,1016,1263,1264,1262,1347,1181,1180,1348,1346,1182,1265,1261,1432,1100,1179,1099,1349,1433,1345,1431,1101,1183,1098,1434,1430,1266,1260,1178,1518,1350,1021,1020,1102,1268,1269,1267,1352,1186,1185,1353,1351,1187,1184,1270,1266,1437,1105,1104,1354,1438,1350,1436,1106,1188,1103,1439,1183,1271,1265,1355,1025,1524,1435,1523,1026,1272,1271,1273,1356,1190,1189,1357,1355,1191,1188,1270,1274,1358,1108,1441,1442,1109,1354,1440,1107,1443,1110,1192,1187,1359,1269,1275,1029,1528,1439,1527,1106,1276,1275,1277,1360,1193,1194,1361,1359,1192,1195,1274,1278,1362,1112,1446,1445,1113,1111,1358,1444,1447,1114,1191,1196,1363,1279,1273,1532,1033,1110,1032,1533,1280,1281,1279,1364,1197,1198,1365,1363,1196,1199,1366,1278,1282,1116,1450,1449,1117,1115,1451,1362,1448,1195,1118,1200,1367,1114,1277,1283,1536,1037,1036,1452,1284,1283,1285,1201,1368,1369,1202,1200,1367,1370,1203,1282,1286,1120,1454,1453,1119,1121,1455,1366,1199,1452,1371,1118,1122,1204,1287,1281,1040,1540,1456,1541,1289,1288,1290,1206,1373,1374,1207,1205,1372,1375,1287,1291,1459,1125,1208,1124,1458,1460,1126,1204,1371,1457,1123,1376,1461,1286,1292,1209,1127,1045,1546,1545,1293,1292,1294,1210,1377,1378,1211,1209,1376,1379,1291,1295,1463,1129,1128,1212,1462,1464,1208,1130,1127,1375,1380,1461,1465,1290,1296,1550,1049,1213,1048,1549,1297,1298,1296,1214,1382,1381,1215,1213,1383,1380,1295,1299,1467,1132,1133,1468,1466,1212,1216,1131,1134,1384,1379,1469,1465,1294,1300,1554,1053,1052,1553,1555,1301,1302,1300,1218,1386,1385,1217,1219,1387,1384,1303,1299,1471,1136,1137,1216,1472,1470,1220,1135,1138,1388,1383,1473,1469,1304,1298,1558,1056,1215,1057,1559,1305,1306,1304,1222,1390,1389,1221,1223,1391,1388,1307,1303,1475,1140,1220,1141,1476,1474,1139,1224,1392,1477,1142,1387,1473,1308,1302,1219,1138,1060,1562,1563,1310,1311,1309,1227,1395,1394,1226,1228,1396,1393,1225,1312,1308,1145,1480,1481,1146,1144,1479,1397,1229,1482,1392,1147,1143,1224,1313,1307,1065,1568,1478,1567,1314,1313,1315,1399,1231,1230,1398,1400,1232,1229,1397,1312,1316,1149,1484,1485,1148,1150,1483,1401,1486,1233,1147,1228,1396,1151,1311,1317,1572,1068,1069,1482,1318,1317,1319,1403,1234,1235,1402,1404,1233,1236,1316,1320,1401,1153,1488,1489,1152,1154,1405,1490,1487,1151,1232,1237,1400,1315,1321,1576,1072,1155,1073,1575,1322,1323,1321,1407,1238,1239,1406,1408,1237,1240,1324,1320,1405,1157,1493,1492,1156,1409,1494,1158,1491,1155,1236,1241,1404,1325,1319,1076,1580,1495,1581,1159,1326,1325,1327,1411,1242,1243,1410,1412,1241,1244,1328,1324,1497,1160,1161,1409,1496,1413,1498,1159,1240,1162,1495,1245,1329,1323,1408,1080,1584,1499,1585,1079,1331,1330,1332,1416,1247,1248,1415,1417,1246,1329,1333,1502,1165,1249,1166,1414,1501,1418,1503,1164,1245,1167,1500,1504,1328,1334,1250,1590,1413,1084,1085,1163,1335,1336,1334,1420,1251,1252,1419,1421,1250,1333,1337,1506,1169,1253,1418,1170,1505,1422,1507,1168,1249,1171,1504,1508,1167,1332,1338,1594,1088,1417,1254,1089,1687,1776,1688,1777,1598,1778,1867,1686,1599,1775,1689,1868,1510,1779,1866,1959,1869,1685,1600,1511,1597,1958,1870,1596,1512,1690,1774,1424,1960,1780,1865,2052,1691,1692,1690,1781,1602,1782,1601,1780,1603,1689,1693,1872,1514,1783,1873,1600,1513,1779,1871,1604,1515,1874,1512,1870,1516,1688,1694,1964,1428,1784,1427,1965,1696,1695,1697,1786,1607,1787,1606,1785,1608,1694,1698,1877,1519,1788,1605,1878,1518,1784,1876,1609,1520,1879,1517,1875,1521,1693,1699,1969,1433,1789,1432,1604,1700,1699,1701,1790,1611,1791,1610,1789,1612,1698,1702,1881,1523,1792,1609,1882,1522,1788,1613,1880,1524,1883,1521,1697,1703,1793,1879,1608,1973,1436,1525,1974,1704,1703,1705,1794,1615,1795,1614,1793,1616,1702,1706,1885,1527,1796,1613,1886,1526,1792,1617,1884,1528,1887,1525,1797,1612,1701,1707,1440,1978,1977,1883,1441,1708,1709,1707,1798,1619,1799,1618,1797,1620,1710,1706,1800,1617,1889,1531,1890,1530,1796,1621,1888,1532,1891,1529,1801,1616,1711,1705,1444,1982,1981,1887,1445,1713,1714,1712,1803,1624,1804,1623,1802,1625,1805,1622,1711,1715,1895,1535,1894,1536,1896,1534,1801,1626,1893,1537,1806,1621,1710,1716,1987,1449,1897,1986,1448,1717,1718,1716,1807,1628,1808,1627,1806,1629,1809,1626,1719,1715,1899,1539,1898,1540,1900,1538,1805,1630,1897,1541,1810,1625,1714,1720,1991,1453,1901,1452,1537,1721,1720,1722,1811,1632,1812,1631,1810,1633,1813,1630,1719,1723,1903,1543,1902,1544,1904,1542,1809,1634,1901,1545,1814,1629,1905,1718,1724,1995,1541,1456,1457,1726,1727,1725,1816,1637,1817,1636,1815,1638,1818,1635,1728,1724,1908,1548,1907,1549,1909,1547,1814,1639,1906,1819,1550,1634,1910,1546,1729,1723,1461,2000,2001,1730,1729,1731,1820,1641,1821,1640,1819,1642,1822,1639,1728,1732,1912,1552,1911,1553,1913,1551,1818,1643,1823,1638,1910,1554,1914,1550,1727,1733,1465,2004,2005,1734,1735,1733,1825,1644,1824,1645,1826,1643,1823,1646,1736,1732,1916,1556,1917,1555,1915,1557,1827,1642,1822,1647,1918,1554,1914,1558,1737,1731,1469,2009,2008,1738,1737,1739,1829,1648,1828,1649,1830,1647,1827,1650,1736,1740,1920,1560,1921,1559,1919,1561,1831,1646,1922,1826,1558,1651,1918,1562,1735,1741,1473,2013,2012,1743,1744,1742,1834,1653,1833,1654,1835,1652,1832,1655,1745,1741,1925,1565,1926,1564,1924,1566,1836,1651,1927,1563,1831,1656,1923,1746,1740,2018,1567,1478,1477,1747,1748,1746,1838,1657,1837,1658,1839,1656,1836,1659,1749,1745,1929,1569,1930,1568,1928,1570,1840,1655,1931,1567,1835,1660,1750,1744,2022,1481,1927,1482,1571,1751,1750,1752,1842,1661,1841,1662,1843,1660,1840,1663,1753,1749,1933,1573,1934,1572,1932,1574,1844,1659,1935,1571,1839,1664,1748,1754,2026,1485,1931,2027,1486,1756,1755,1757,1847,1666,1846,1667,1848,1665,1754,1758,1845,1668,1939,1577,1938,1578,1849,1664,1940,1576,1937,1579,1844,1669,1753,1759,1490,2031,2032,1941,1489,1760,1759,1761,1851,1670,1850,1671,1852,1669,1758,1762,1943,1581,1849,1672,1942,1582,1853,1668,1944,1580,1941,1583,1848,1673,1757,1763,1494,2035,2036,1945,1493,1764,1763,1765,1855,1674,1854,1675,1856,1673,1766,1762,1947,1585,1853,1676,1946,1586,1857,1672,1948,1584,1945,1587,1767,1761,1852,1949,1677,2040,1498,1583,2039,1768,1769,1767,1859,1678,1858,1679,1860,1677,1770,1766,1951,1589,1857,1680,1950,1590,1861,1952,1676,1588,1949,1591,1953,1587,1765,1771,2044,1501,1856,1502,1681,1773,1774,1772,1864,1683,1863,1684,1865,1682,1771,1775,1956,1594,1862,1955,1685,1595,1866,1957,1681,1593,1954,1596,1958,1592,1770,1776,2049,1506,1861,1507,2048,2053,2146,2054,2147,1960,2240,2148,2052,1961,2145,2055,1868,2241,2239,2149,2242,2335,2051,1962,1959,1869,2243,2334,1958,1870,2144,2056,1777,2336,2238,2150,2050,2057,2056,2058,2151,1964,1963,2152,2150,1965,2059,2055,2245,1872,1962,1871,2246,2149,2153,2244,1966,1873,1870,2247,2243,1874,2054,2060,2340,1781,1961,1780,2341,2062,2061,2063,2156,1969,1968,2155,2157,1970,2060,2064,2250,1877,1967,1876,2251,2154,2158,2249,1971,1878,1875,2252,2248,1879,2065,2059,2345,1786,1966,1785,2346,2066,2065,2067,2160,1973,1972,2159,2161,1974,2064,2068,2254,1881,1971,1880,2255,2158,2162,2253,1975,1882,1879,2256,2252,2063,2069,2349,1970,1790,1883,1789,2350,2070,2071,2069,2164,1977,1976,2165,2163,1978,2072,2068,2258,1885,1975,1884,2259,2166,2162,2257,1979,1886,1883,2260,2256,2067,2073,1974,2353,1793,1794,2354,1887,2074,2073,2075,2168,1981,1980,2167,2169,1982,2072,2076,2262,1979,1889,1888,2263,2166,2170,2261,1983,1890,1887,2264,1978,2260,2071,2077,1797,2357,2358,1798,2165,2079,2080,2078,2173,1986,1985,2174,2172,1987,2081,2077,1984,2267,1893,1894,2268,2175,2171,2266,1892,1988,1895,2269,1983,2082,2076,1802,2265,2363,2362,1803,2176,2083,2082,2084,2177,1990,1989,2176,2178,1991,1988,2081,2085,2271,1897,1898,2272,2179,2175,2270,1896,1992,1899,2273,1987,2080,2086,1806,2367,2269,2366,1895,2174,2087,2086,2088,2181,1994,1993,2180,2182,1995,1992,2089,2085,1901,2275,2276,1902,2183,2179,1900,2274,1996,2277,1903,1991,2090,2084,1810,2371,1899,2273,2370,1809,2091,2092,2090,2185,1998,1997,2186,2184,1999,1996,2089,2093,1905,2279,2280,1906,2183,2187,1904,2278,2281,2000,1907,1995,1903,2088,2094,2375,1814,2374,1813,2277,2096,2097,2095,2190,2003,2002,2191,2189,2004,2001,2098,2094,1910,2284,2285,1911,2192,2188,1909,2283,2286,2005,2000,1912,1908,2093,2099,2380,1819,1818,2379,2282,2100,2101,2099,2194,2007,2006,2195,2193,2008,2005,2102,2098,1914,2289,2288,2196,2192,1915,1913,2290,2287,2009,2004,1916,1912,2103,2097,2384,1823,1822,2197,2191,2104,2105,2103,2198,2010,2011,2199,2197,2009,2012,2106,2102,1918,2293,2292,1917,2200,2196,1919,2294,2291,2008,2013,1916,1920,2107,2101,2388,1826,1827,2389,2295,2109,2108,2110,2203,2015,2016,2202,2204,2014,2017,2111,2107,1923,2298,2297,1922,2205,2201,1924,2299,2296,2013,1921,2018,1925,2112,2106,2393,1831,2394,1832,2300,2113,2112,2114,2207,2019,2020,2206,2208,2018,2021,2111,2115,1927,2302,2301,1926,2205,2209,1928,2303,2017,2300,1925,2022,2110,2116,1835,2397,1929,2304,2398,1836,2117,2118,2116,2211,2023,2024,2212,2210,2022,2025,2119,2115,2306,1931,1930,2305,2213,2209,2307,1932,2021,1929,2304,2026,2120,2114,1839,2401,2308,2402,1933,2214,2121,2122,2120,2215,2027,2028,2216,2214,2026,2123,2119,2029,2310,1935,1934,2309,2217,2213,2311,1936,2025,1933,2308,2030,2124,2118,1843,2312,2405,2406,1842,2218,2126,2125,2127,2220,2032,2033,2219,2221,2031,2124,2128,2315,2034,1939,1940,2314,2218,2222,2316,2030,1938,1941,2313,2035,2317,2123,2129,1848,2411,2410,1847,2217,2130,2131,2129,2224,2036,2037,2225,2223,2035,2132,2128,2319,1943,2038,1944,2318,2226,2222,2320,2034,1942,1945,2317,2321,2133,2127,2039,2415,1852,1851,2414,1941,2134,2133,2135,2228,2040,2041,2227,2229,2039,2132,2136,2323,1947,2042,1948,2322,2226,2230,2324,2038,1946,1949,2321,2325,2131,2137,2419,2043,1855,1945,1856,2418,2138,2139,2137,2232,2044,2045,2233,2231,2043,2140,2136,2327,1951,2046,1952,2326,2234,2230,2328,2042,1950,1953,2325,2329,1949,2135,2141,2423,1859,2047,1860,2422,2143,2142,2144,2237,2049,2050,2236,2238,2048,2141,2145,2332,1956,2051,1957,2331,2235,2239,2333,2047,1955,1958,2330,2334,1954,2146,2140,2428,1864,2052,1865,2427,2432,2527,2433,2336,2528,2624,2529,2431,2337,2434,2526,2241,2625,2623,2530,2338,2430,2721,2626,2335,2242,2720,2627,2243,2334,2525,2435,2147,2722,2622,2531,2429,2436,2437,2435,2340,2532,2533,2339,2341,2531,2434,2438,2245,2629,2534,2630,2244,2338,2342,2628,2246,2530,2631,2243,2627,2247,2433,2439,2726,2151,2535,2727,2150,2440,2439,2441,2344,2536,2537,2343,2345,2535,2442,2438,2633,2249,2538,2634,2248,2342,2346,2632,2250,2534,2635,2247,2631,2251,2437,2443,2730,2155,2539,2731,2154,2445,2444,2446,2349,2541,2542,2348,2350,2540,2443,2447,2638,2254,2543,2639,2253,2347,2351,2637,2255,2539,2640,2252,2636,2256,2442,2448,2544,2735,2160,2736,2159,2449,2450,2448,2353,2545,2546,2352,2354,2544,2447,2451,2642,2258,2547,2643,2257,2351,2355,2641,2259,2543,2644,2256,2640,2260,2548,2446,2452,2739,2164,2740,2163,2453,2454,2452,2357,2549,2550,2358,2356,2548,2455,2451,2646,2262,2551,2647,2261,2359,2355,2645,2263,2547,2648,2260,2552,2644,2264,2456,2450,2743,2168,2744,2167,2457,2458,2456,2361,2553,2554,2362,2360,2552,2555,2455,2459,2650,2266,2651,2265,2359,2363,2649,2267,2551,2652,2264,2556,2454,2460,2648,2268,2748,2171,2747,2172,2461,2460,2462,2365,2557,2558,2364,2366,2556,2559,2463,2459,2654,2270,2655,2269,2367,2363,2653,2271,2555,2656,2268,2560,2464,2458,2752,2175,2652,2272,2751,2176,2465,2466,2464,2369,2561,2562,2370,2368,2560,2563,2467,2463,2658,2274,2659,2273,2371,2367,2657,2275,2559,2660,2272,2564,2468,2462,2756,2179,2656,2755,2180,2276,2470,2469,2471,2374,2566,2567,2373,2375,2565,2568,2468,2472,2663,2279,2664,2278,2372,2376,2662,2280,2665,2277,2564,2569,2467,2473,2761,2184,2760,2185,2661,2281,2474,2475,2473,2378,2570,2571,2379,2377,2569,2572,2476,2472,2667,2283,2668,2282,2380,2376,2666,2284,2669,2281,2568,2573,2477,2471,2765,2188,2764,2189,2665,2381,2478,2479,2477,2382,2574,2575,2383,2381,2573,2576,2476,2480,2671,2287,2672,2286,2380,2384,2670,2288,2673,2285,2572,2577,2475,2481,2769,2192,2768,2379,2385,2193,2482,2481,2483,2386,2579,2578,2385,2387,2580,2577,2480,2484,2676,2290,2675,2291,2388,2384,2677,2289,2674,2292,2581,2576,2485,2479,2773,2196,2774,2383,2389,2195,2486,2485,2487,2390,2583,2582,2389,2391,2584,2581,2484,2488,2680,2294,2679,2295,2388,2392,2681,2293,2678,2296,2585,2580,2483,2489,2777,2200,2778,2199,2682,2387,2490,2491,2489,2394,2587,2586,2395,2393,2588,2585,2492,2488,2684,2298,2683,2299,2396,2392,2685,2297,2682,2300,2589,2584,2493,2487,2781,2204,2782,2203,2686,2296,2495,2496,2494,2399,2592,2591,2400,2398,2593,2590,2497,2493,2689,2303,2688,2304,2401,2397,2690,2302,2594,2687,2305,2589,2492,2498,2786,2209,2691,2787,2208,2301,2499,2498,2500,2403,2596,2595,2402,2404,2597,2594,2501,2497,2693,2307,2692,2308,2405,2401,2694,2306,2598,2691,2309,2593,2502,2496,2790,2213,2695,2305,2791,2212,2503,2504,2502,2407,2600,2599,2408,2406,2601,2598,2501,2505,2697,2311,2696,2312,2405,2409,2698,2310,2602,2695,2313,2597,2506,2500,2699,2309,2794,2217,2795,2216,2507,2506,2508,2411,2604,2603,2410,2412,2605,2505,2509,2701,2315,2602,2700,2316,2409,2413,2702,2314,2606,2699,2317,2601,2703,2313,2510,2504,2799,2220,2798,2221,2511,2512,2510,2415,2608,2607,2416,2414,2609,2509,2513,2705,2319,2606,2704,2320,2413,2417,2706,2318,2610,2703,2321,2707,2317,2605,2514,2508,2803,2224,2802,2225,2515,2514,2516,2419,2612,2611,2418,2420,2613,2513,2517,2709,2323,2610,2708,2324,2417,2421,2710,2322,2614,2707,2325,2711,2321,2512,2518,2609,2807,2228,2806,2229,2520,2521,2519,2424,2617,2616,2425,2423,2618,2522,2518,2714,2328,2615,2713,2329,2426,2422,2715,2327,2619,2712,2330,2716,2326,2523,2517,2812,2233,2614,2811,2234,2524,2523,2525,2428,2621,2620,2427,2429,2622,2526,2522,2332,2718,2619,2717,2333,2430,2426,2719,2331,2623,2716,2334,2720,2330,2521,2527,2816,2237,2618,2815,2238,2820,2917,2821,2722,2918,2819,2723,3015,2919,2916,2822,2625,3016,2818,2724,3014,2920,3113,3017,2721,2626,3112,3018,2720,2627,2915,2823,3114,2528,2817,2725,3013,2824,2825,2823,2726,2922,2727,2725,2923,2921,2826,2822,3020,2629,2628,2728,2724,2924,2920,3019,3021,2630,2627,3022,3018,2631,2827,2821,3118,2532,2729,2723,3119,2829,2830,2828,2731,2927,2730,2732,2928,2926,2827,2831,3025,2634,2633,2729,2733,2925,2929,3026,3024,2635,2632,3027,3023,2636,2826,2832,3123,2537,3124,2536,2728,2833,2832,2834,2735,2931,2734,2736,2930,2932,2831,2835,3029,2638,2637,2733,2737,2929,2933,3028,3030,2639,2636,3027,3031,2640,2830,2836,3127,2541,3128,2540,2732,2837,2836,2838,2739,2935,2740,2738,2934,2936,2835,2839,3033,2642,2641,2737,2741,2933,2937,3032,3034,2643,2640,3031,3035,2644,2834,2840,3131,2545,3132,2544,2736,2841,2842,2840,2743,2939,2742,2744,2938,2940,2843,2839,3037,2646,2645,2745,2741,2937,2941,3038,3036,2647,2644,3039,3035,2838,2844,2648,3135,2549,3136,2548,2746,2846,2847,2845,2748,2944,2749,2747,2945,2943,2848,2844,3042,2651,2650,2750,2746,2946,2942,3043,3041,2652,2649,3044,3040,2849,2843,3140,2554,2653,3141,2553,2751,2850,2849,2851,2752,2948,2753,2751,2947,2949,2848,2852,3046,2655,2654,2750,2754,2950,2946,3045,3047,2656,2653,3044,3048,2847,2853,3144,2558,2657,3145,2557,2749,2854,2853,2855,2756,2952,2755,2757,2951,2953,2852,2856,3050,2659,2658,2754,2758,2950,2954,3049,3051,2660,2657,3048,3052,2851,2857,3148,2562,3149,2561,2661,2753,2858,2857,2859,2760,2956,2759,2761,2955,2957,2856,2860,3054,2663,2662,2758,2762,2954,2958,3055,3053,2664,2661,3052,3056,2855,2861,3152,2566,3153,2565,2665,2757,2863,2864,2862,2765,2961,2766,2764,2962,2960,2865,2861,3059,2668,2667,2767,2763,2963,2959,3058,3060,2669,2666,3061,3057,2860,2866,3157,2571,3158,2570,2762,2768,2867,2866,2868,2769,2965,2768,2770,2966,2964,2869,2865,3063,2672,2671,2771,2767,2967,2963,3062,3064,2673,2670,3065,3061,2870,2864,3161,2575,3162,2574,2772,2766,2871,2872,2870,2773,2969,2774,2772,2968,2970,2873,2869,3067,2675,2676,2775,2771,2971,2967,3068,3066,2674,2677,3069,3065,2874,2868,3166,2578,3165,2579,2776,2770,2875,2876,2874,2777,2973,2778,2776,2972,2974,2873,2877,3071,2679,2680,2775,2779,2971,2975,3070,3072,2678,2681,3069,3073,2872,2878,3170,2582,3169,2583,2774,2780,2880,2881,2879,2782,2978,2781,2783,2977,2979,2878,2882,3076,2684,2685,2780,2784,2976,2980,3077,3075,2683,2686,3074,3078,2877,2883,3175,2587,3174,2588,2682,2785,2884,2885,2883,2786,2982,2787,2785,2983,2981,2886,2882,3080,2688,2689,2788,2784,2984,2980,3081,3079,2687,2690,3082,3078,2887,2881,3179,2591,3178,2592,2686,2789,2888,2887,2889,2790,2986,2791,2789,2985,2987,2886,2890,3084,2692,2693,2788,2792,2984,2988,3083,3085,2691,2694,3082,3086,2885,2891,3183,2595,2690,3182,2596,2787,2892,2893,2891,2794,2990,2793,2795,2991,2989,2894,2890,3088,2696,2697,2796,2792,2992,2988,3089,3087,2695,2698,3090,3086,2895,2889,3187,2599,2694,3186,2600,2797,2897,2896,2898,2799,2995,2798,2800,2994,2996,2895,2899,3093,2701,2702,2797,2801,2993,2997,3092,3094,2700,2703,3091,3095,2894,2900,2699,3192,2604,3191,2605,2796,2901,2900,2902,2803,2999,2802,2804,2998,3000,2903,2899,3097,2705,2706,2805,2801,3001,2997,3096,3098,2704,2707,3099,3095,2703,2904,2898,3196,2608,3195,2609,2806,2905,2904,2906,3003,2807,2806,2808,3002,3004,2903,2907,3101,2709,2710,2805,2809,3005,3001,3102,3100,2708,2711,3103,3099,2707,2908,2902,3200,2612,3199,2613,2810,2909,2910,2908,2811,3007,2812,2810,3008,3006,2907,2911,3105,2713,2714,2809,2813,3005,3009,3106,3104,2712,2715,3103,3107,2711,2906,2912,3204,2616,3203,2617,2808,2914,2915,2913,3012,2816,2817,2815,3013,3011,2916,2912,3110,2718,2719,2818,2814,3014,3010,3109,3111,2717,2720,3112,3108,2716,2917,2911,3209,2621,2819,2813,3208,3312,3410,3313,3411,3213,3214,3311,3508,3412,3409,3314,3509,3114,3310,3215,3212,3115,3606,3510,3507,3413,3211,3116,3605,3511,3408,3315,3607,3016,3309,3216,3608,3316,3317,3315,3217,3415,3414,3218,3216,3416,3318,3314,3118,3513,3413,3512,3219,3215,3117,3119,3514,3417,3511,3120,3116,3515,3319,3313,3611,3020,3412,3214,3220,3321,3320,3322,3222,3420,3419,3221,3223,3421,3323,3319,3123,3518,3418,3517,3224,3220,3124,3122,3519,3422,3516,3125,3121,3520,3318,3324,3616,3025,3417,3615,3024,3325,3324,3326,3226,3424,3423,3227,3225,3425,3327,3323,3127,3522,3422,3521,3228,3224,3128,3126,3523,3426,3520,3129,3125,3524,3328,3322,3620,3029,3421,3619,3028,3329,3328,3330,3230,3428,3427,3229,3231,3429,3331,3327,3131,3526,3426,3525,3232,3228,3130,3132,3527,3430,3524,3133,3129,3528,3326,3332,3425,3624,3033,3623,3032,3334,3333,3335,3235,3433,3432,3234,3236,3434,3332,3336,3136,3531,3431,3530,3233,3237,3135,3137,3532,3435,3529,3134,3138,3430,3331,3337,3533,3629,3038,3628,3037,3338,3339,3337,3239,3437,3436,3240,3238,3438,3340,3336,3140,3435,3535,3534,3241,3237,3141,3139,3536,3439,3533,3142,3138,3434,3341,3335,3633,3042,3537,3632,3041,3342,3341,3343,3243,3441,3440,3242,3244,3442,3439,3340,3344,3144,3539,3538,3241,3245,3143,3145,3540,3443,3537,3142,3146,3438,3339,3345,3637,3046,3541,3636,3045,3346,3347,3345,3247,3445,3444,3248,3246,3446,3443,3348,3344,3148,3543,3542,3249,3245,3149,3147,3544,3447,3541,3150,3146,3442,3349,3343,3641,3050,3640,3049,3545,3351,3350,3352,3252,3450,3449,3251,3253,3451,3448,3349,3353,3153,3548,3547,3250,3254,3152,3154,3549,3546,3452,3447,3151,3155,3348,3354,3646,3055,3645,3054,3550,3355,3356,3354,3256,3454,3453,3257,3255,3455,3452,3357,3353,3157,3552,3551,3258,3254,3158,3156,3553,3550,3456,3451,3159,3155,3358,3352,3650,3059,3649,3058,3259,3359,3360,3358,3260,3458,3457,3259,3261,3459,3456,3357,3361,3161,3556,3555,3258,3262,3162,3160,3557,3554,3460,3455,3159,3163,3356,3362,3654,3063,3653,3062,3257,3364,3365,3363,3265,3462,3463,3266,3264,3461,3464,3366,3362,3166,3560,3561,3267,3263,3167,3165,3559,3562,3460,3465,3168,3164,3367,3361,3658,3067,3659,3068,3268,3368,3369,3367,3269,3466,3467,3270,3268,3465,3468,3370,3366,3170,3564,3565,3271,3267,3171,3169,3563,3566,3464,3469,3172,3168,3371,3365,3662,3071,3663,3072,3272,3372,3371,3373,3273,3470,3471,3274,3272,3469,3472,3374,3370,3174,3568,3569,3275,3271,3175,3173,3567,3570,3468,3473,3176,3172,3375,3369,3666,3075,3667,3076,3566,3377,3376,3378,3278,3475,3476,3277,3279,3474,3477,3375,3379,3179,3573,3574,3276,3280,3178,3180,3572,3473,3575,3177,3181,3478,3374,3380,3671,3080,3672,3081,3571,3381,3382,3380,3282,3479,3480,3283,3281,3478,3481,3383,3379,3183,3577,3578,3280,3284,3184,3182,3576,3477,3579,3185,3181,3482,3384,3378,3675,3084,3575,3676,3085,3385,3384,3386,3286,3483,3484,3285,3287,3482,3383,3387,3187,3485,3581,3582,3284,3288,3186,3188,3580,3481,3583,3185,3189,3486,3382,3388,3679,3088,3579,3680,3089,3389,3390,3388,3290,3487,3488,3291,3289,3486,3391,3387,3191,3585,3489,3586,3292,3288,3192,3190,3584,3485,3587,3193,3189,3490,3386,3392,3583,3683,3092,3684,3093,3394,3395,3393,3295,3492,3493,3296,3294,3491,3392,3396,3196,3590,3494,3591,3297,3293,3197,3195,3589,3490,3592,3198,3194,3588,3397,3391,3495,3688,3097,3689,3098,3398,3397,3399,3299,3496,3497,3298,3300,3495,3400,3396,3200,3594,3498,3595,3301,3297,3201,3199,3593,3494,3596,3202,3198,3592,3401,3395,3692,3101,3499,3693,3102,3402,3401,3403,3303,3500,3501,3302,3304,3499,3400,3404,3204,3598,3502,3599,3301,3305,3203,3205,3597,3498,3600,3202,3206,3596,3399,3405,3696,3105,3503,3697,3106,3407,3408,3406,3308,3505,3506,3309,3307,3504,3409,3405,3209,3603,3507,3604,3310,3306,3210,3208,3602,3503,3605,3211,3207,3601,3410,3404,3701,3110,3508,3311,3305,3705,3802,3706,3803,3607,3704,3608,3899,3804,3801,3707,3900,3509,3703,3609,3606,3510,3898,3805,3995,3901,3605,3511,3994,3902,3800,3708,3996,3411,3702,3610,3897,3709,3708,3710,3611,3807,3806,3610,3612,3808,3711,3707,3513,3904,3805,3903,3609,3613,3512,3514,3809,3905,3902,3515,3511,3906,3706,3712,3415,4000,3804,3999,3608,3714,3713,3715,3616,3812,3811,3615,3617,3813,3712,3716,3518,3909,3810,3908,3614,3618,3519,3517,3814,3910,3907,3516,3520,3911,3717,3711,3420,4005,3809,4004,3619,3718,3717,3719,3620,3816,3815,3619,3621,3817,3716,3720,3522,3913,3814,3912,3618,3622,3523,3521,3818,3914,3911,3524,3520,3715,3721,3424,4009,3915,3813,4008,3617,3722,3721,3723,3624,3820,3819,3623,3625,3821,3720,3724,3526,3917,3818,3916,3622,3626,3525,3527,3822,3918,3915,3524,3528,3719,3725,3817,3428,4013,4012,3919,3621,3726,3727,3725,3628,3824,3823,3629,3627,3825,3728,3724,3530,3822,3921,3920,3630,3626,3531,3529,3826,3922,3919,3532,3528,3821,3723,3729,3432,4017,4016,3631,3625,3731,3732,3730,3633,3829,3828,3634,3632,3830,3733,3729,3535,3827,3925,3926,3635,3631,3536,3534,3831,3924,3927,3537,3533,3826,3734,3728,3437,4021,4022,3636,3630,3735,3734,3736,3637,3833,3832,3636,3638,3834,3831,3733,3737,3539,3929,3930,3635,3639,3540,3538,3928,3835,3931,3541,3537,3830,3732,3738,3441,4025,4026,3927,3634,3739,3738,3740,3641,3837,3836,3640,3642,3838,3835,3737,3741,3543,3933,3934,3639,3643,3544,3542,3932,3839,3935,3541,3545,3834,3736,3742,3445,4029,3931,4030,3638,3743,3742,3744,3645,3841,3840,3644,3646,3842,3839,3741,3745,3547,3937,3938,3643,3647,3546,3548,3936,3843,3939,3838,3545,3549,3740,3746,3449,3935,4033,4034,3642,3748,3747,3749,3650,3846,3845,3649,3651,3847,3844,3750,3746,3552,3942,3943,3652,3648,3553,3551,3941,3848,3843,3944,3554,3550,3940,3745,3751,3454,4038,4039,3647,3752,3751,3753,3654,3850,3849,3653,3655,3851,3848,3754,3750,3556,3946,3947,3656,3652,3555,3557,3945,3852,3847,3948,3554,3558,3944,3755,3749,3458,4042,3657,3651,3756,3757,3755,3658,3853,3854,3659,3657,3852,3855,3758,3754,3560,3950,3949,3660,3656,3561,3559,3951,3851,3856,3948,3562,3558,3952,3759,3753,3462,4046,3661,3655,3760,3761,3759,3662,3857,3858,3663,3661,3856,3859,3758,3762,3564,3954,3953,3660,3664,3565,3563,3955,3855,3860,3952,3562,3566,3956,3757,3763,3466,4050,4049,3659,3765,3764,3766,3667,3862,3863,3666,3668,3861,3864,3763,3767,3569,3959,3958,3665,3669,3568,3570,3960,3860,3957,3865,3567,3571,3762,3768,3471,3961,4055,4054,3664,3769,3770,3768,3671,3866,3867,3672,3670,3865,3868,3771,3767,3573,3963,3962,3673,3669,3574,3572,3964,3864,3961,3571,3575,3869,3772,3766,3475,4059,3965,4058,3674,3773,3772,3774,3675,3870,3871,3676,3674,3869,3872,3771,3775,3577,3967,3966,3673,3677,3578,3576,3968,3868,3965,3575,3579,3873,3770,3776,3479,4063,4062,3969,3672,3777,3776,3778,3679,3874,3875,3680,3678,3873,3779,3775,3581,3876,3971,3970,3681,3677,3582,3580,3872,3972,3969,3579,3583,3877,3780,3774,3483,4067,4066,3682,3676,3782,3781,3783,3684,3879,3880,3683,3685,3878,3780,3784,3586,3881,3975,3976,3682,3686,3585,3587,3877,3974,3977,3588,3584,3882,3779,3785,3488,4071,4072,3681,3687,3786,3785,3787,3688,3883,3884,3687,3689,3882,3788,3784,3590,3979,3885,3980,3690,3686,3591,3589,3881,3978,3981,3592,3588,3789,3783,3886,3492,4075,4076,3977,3691,3790,3791,3789,3692,3887,3888,3691,3693,3886,3792,3788,3594,3983,3889,3984,3694,3690,3595,3593,3885,3982,3985,3596,3592,3793,3787,3496,4079,3981,3890,4080,3695,3794,3793,3795,3696,3891,3892,3695,3697,3890,3792,3796,3598,3987,3893,3988,3694,3698,3599,3597,3889,3986,3989,3596,3600,3985,3791,3797,3500,4083,3894,4084,3693,3799,3798,3800,3701,3896,3897,3702,3700,3895,3801,3797,3603,3992,3898,3993,3703,3699,3604,3602,3894,3991,3994,3605,3601,3990,3796,3802,3505,4088,3899,4089,3704,4092,-1,4093,4186,3996,-1,-1,4091,3997,-1,-1,-1,-1,4094,4185,3900,-1,3998,4090,3995,3901,-1,-1,-1,-1,-1,-1,3902,3994,-1,4095,4184,4096,4095,4097,4000,-1,-1,4001,3999,-1,-1,-1,-1,4094,4098,3904,4002,3905,-1,3998,3903,-1,-1,-1,-1,-1,3906,-1,3902,-1,-1,4093,4099,4100,-1,4099,4101,4004,-1,-1,4005,4003,-1,-1,4098,4102,3908,-1,-1,-1,4006,3909,3907,4002,-1,-1,-1,-1,3910,-1,-1,-1,3906,4097,4103,4104,4103,4105,-1,4008,-1,4009,4007,-1,-1,-1,-1,4106,4102,3912,4010,3913,-1,-1,3911,-1,4006,-1,-1,3914,-1,-1,3910,-1,-1,4107,4101,4109,-1,4108,4110,4013,-1,4014,-1,4012,-1,-1,-1,4107,4111,3917,4015,-1,3918,-1,3916,-1,4011,-1,3919,-1,-1,-1,-1,3915,4016,-1,4106,4113,-1,4114,4112,4017,-1,4018,-1,4016,-1,-1,-1,4115,4111,3921,4019,-1,-1,3922,3920,4015,-1,-1,-1,3923,-1,-1,-1,-1,4020,3919,4116,4117,4116,4118,-1,4021,-1,4022,-1,4020,-1,-1,-1,4023,4115,4119,3925,3926,-1,-1,-1,3924,4019,-1,3927,-1,-1,-1,4024,-1,-1,4114,4120,4121,-1,4122,4120,4025,4026,-1,-1,4024,-1,-1,4027,4119,4123,-1,3929,-1,-1,3930,3928,-1,4023,-1,3931,-1,-1,-1,-1,4028,-1,4118,4124,4125,4124,4126,-1,-1,4029,4030,-1,-1,4028,-1,-1,4031,4123,4127,3933,3934,-1,-1,-1,-1,3932,4027,3935,-1,-1,4032,-1,-1,-1,4122,4128,4129,-1,4130,4128,4033,4034,-1,-1,4032,-1,4035,-1,-1,4127,4131,-1,-1,3937,3938,3936,-1,-1,3939,4031,-1,4036,-1,-1,-1,-1,4126,4132,4133,4132,4134,-1,-1,4037,4038,-1,-1,4036,4039,-1,-1,4135,4131,3941,3942,-1,-1,-1,-1,3940,3943,4035,-1,4040,-1,-1,-1,-1,4136,4130,4137,-1,4136,4138,4041,4042,-1,-1,4040,4043,-1,-1,4135,4139,-1,-1,3945,3946,-1,3944,-1,3947,-1,4039,4044,-1,-1,-1,-1,-1,4134,4140,4142,-1,4141,4143,4047,4046,-1,-1,4048,-1,4045,-1,-1,4140,4144,3951,3950,-1,-1,-1,3952,3949,-1,4049,-1,4044,-1,-1,-1,-1,4139,4145,4146,-1,4147,4145,4051,-1,4050,-1,4052,-1,4049,-1,-1,4148,4144,3955,3954,-1,-1,-1,3956,-1,3953,4053,-1,-1,4048,-1,-1,-1,4143,4149,4150,-1,4151,4149,4055,4054,-1,-1,4056,-1,-1,4053,-1,4152,4148,3959,3958,-1,-1,3960,-1,3957,4057,-1,-1,-1,4052,-1,-1,-1,4153,4147,4154,4155,4153,-1,4059,-1,4058,-1,4060,-1,-1,4057,-1,4156,4152,3963,3962,-1,-1,-1,3964,-1,4061,3961,-1,-1,-1,4056,-1,-1,4157,4151,4158,-1,4157,4159,4063,4062,-1,-1,4064,-1,-1,4061,4156,4160,-1,3967,-1,-1,3966,3968,-1,4065,-1,3965,-1,-1,-1,-1,4060,-1,4155,4161,4162,4163,4161,-1,4067,-1,4066,-1,4068,-1,-1,-1,4065,4164,4160,3971,3970,-1,-1,-1,3972,-1,4069,3969,-1,-1,-1,-1,4064,-1,4165,4159,4166,-1,4165,4167,4071,4070,-1,-1,4072,-1,-1,-1,4164,4168,3975,4069,-1,-1,3974,3976,4073,-1,-1,3973,-1,-1,-1,-1,-1,4068,3977,4163,4170,4169,4171,4075,-1,-1,4074,4076,-1,-1,-1,-1,4168,4172,3979,4073,3978,-1,-1,3980,-1,4077,-1,3977,-1,-1,-1,-1,3981,4072,-1,4167,4175,-1,4176,4174,4080,-1,4079,-1,4081,-1,-1,-1,4177,4173,3984,4078,-1,-1,3983,3985,4082,-1,-1,-1,-1,3982,-1,-1,3986,-1,4178,4172,4179,-1,4178,4180,4084,-1,4083,-1,4085,-1,-1,-1,4177,4181,3988,-1,4082,-1,3987,3989,4086,-1,-1,-1,-1,3986,-1,3990,-1,-1,4182,4176,4183,-1,4184,4182,4088,-1,4087,4089,-1,-1,-1,-1,4185,4181,3992,-1,4086,3991,-1,4090,3993,-1,-1,-1,-1,-1,3990,3994,-1,-1,4186,4180],"visual":[0,7,4,2,1,3,6,5,9,10,16,15,8,18,19,17,11,12,13,14,31,20,21,22,23,24,25,26,27,28,29,30,38,61,60,39,20,88,62,21,37,89,59,40,63,87,120,90,8,22,36,19,9,91,119,64,86,41,58,1,121,157,122,118,42,66,41,65,43,23,67,24,22,64,40,94,95,10,44,93,68,96,25,21,9,11,63,39,92,2,127,97,45,128,69,126,46,45,70,71,26,47,69,27,25,44,72,100,99,12,101,68,48,98,28,24,13,11,73,43,102,3,133,97,134,67,4,49,50,49,75,29,74,76,48,51,30,28,105,73,77,106,104,14,31,27,52,47,15,13,107,103,78,72,139,140,4,5,108,102,53,54,80,79,32,52,81,33,31,55,78,110,111,16,109,82,51,112,34,30,15,17,77,56,108,6,146,113,145,83,5,50,57,84,58,85,56,35,83,36,34,86,59,116,115,18,55,117,82,114,33,37,17,19,87,60,118,7,152,113,54,151,81,153,158,199,198,159,200,243,121,244,157,122,245,291,201,242,197,160,89,156,123,290,246,120,90,292,293,343,241,202,196,161,91,119,162,204,203,163,161,125,202,205,124,249,248,126,164,250,160,123,92,247,93,201,206,91,251,127,297,298,165,296,94,122,159,64,166,208,167,209,207,165,128,129,254,253,168,127,206,210,255,130,164,252,95,96,94,302,126,169,303,256,97,205,211,131,251,301,170,212,213,171,169,132,211,214,258,133,259,172,131,257,260,168,99,134,98,215,210,130,173,100,308,307,256,97,261,309,306,69,217,174,175,218,216,136,173,135,263,176,264,137,262,219,215,134,102,265,172,101,177,138,103,261,313,312,220,214,314,100,133,72,178,179,222,221,139,140,177,180,220,223,268,267,269,141,138,105,224,219,176,181,266,270,104,106,318,137,142,319,317,103,107,75,226,183,182,227,225,143,184,144,273,181,272,142,274,228,224,145,108,271,185,109,180,141,107,275,323,324,229,223,322,110,146,78,187,231,230,186,188,147,229,232,278,146,277,185,148,279,276,189,111,145,112,228,233,149,184,110,328,329,280,113,275,327,330,81,191,235,190,234,236,192,151,150,282,283,189,152,237,233,281,149,193,284,115,114,116,334,153,188,333,280,113,238,232,148,285,335,195,240,239,194,196,154,241,238,155,287,288,153,193,286,197,156,118,289,117,242,237,119,285,152,339,338,192,340,116,157,198,86,399,344,400,456,398,345,457,292,517,458,293,343,455,401,397,346,516,459,518,244,294,342,581,519,245,291,402,454,347,396,580,520,403,348,404,347,402,349,461,462,296,295,405,460,346,297,463,401,350,294,523,247,522,248,459,298,406,524,246,521,249,464,345,351,407,352,408,351,406,353,466,465,299,300,409,467,350,298,464,354,301,405,527,251,528,250,468,410,526,252,297,349,302,463,529,249,411,412,356,355,470,357,410,413,303,471,469,304,354,302,358,472,409,305,468,532,254,414,531,255,301,533,253,353,530,256,473,306,416,415,360,359,474,361,417,475,414,307,306,358,473,308,476,362,418,305,536,258,413,537,257,309,357,472,535,259,477,538,256,304,420,364,419,363,421,479,365,478,311,310,418,362,480,312,477,309,422,366,541,261,481,540,262,361,417,542,260,313,308,476,539,263,424,368,367,423,425,483,369,484,314,366,315,482,422,313,426,485,316,370,545,481,265,546,264,365,312,421,544,266,547,263,317,427,428,372,371,429,427,487,488,318,373,370,317,319,430,426,486,489,550,268,316,320,374,369,549,551,267,269,490,485,431,425,548,552,432,375,376,433,431,492,374,491,322,377,321,493,434,323,430,490,320,373,555,494,271,554,272,378,324,435,556,270,553,273,319,429,436,379,437,380,435,496,378,497,325,326,438,381,495,324,498,327,434,377,559,275,494,560,274,382,439,558,276,323,328,499,561,273,440,441,383,384,501,382,439,500,442,329,330,385,502,328,499,381,438,331,564,278,443,563,279,327,386,503,565,277,498,562,280,332,445,444,387,388,505,386,446,443,333,504,506,332,389,334,385,503,447,331,507,568,282,442,569,281,335,567,283,390,570,280,502,330,449,391,448,392,450,390,509,510,337,336,447,508,393,338,511,389,335,451,573,285,572,286,507,446,574,284,339,394,334,512,571,287,453,395,452,396,454,394,514,513,340,341,451,515,397,339,512,455,393,342,577,289,578,288,516,338,450,576,290,579,287,511,398,392,648,582,649,716,717,647,583,787,718,518,650,715,581,519,584,646,788,786,719,789,860,520,580,457,517,458,651,714,859,790,645,585,652,653,586,721,587,722,651,585,654,522,720,723,588,521,523,793,584,792,650,794,655,520,524,719,461,791,724,460,462,589,583,459,657,656,590,726,591,658,725,589,727,655,526,592,525,527,724,797,659,798,588,728,796,654,524,528,465,464,593,799,466,723,795,463,661,660,594,662,595,730,731,593,729,530,596,659,732,663,531,529,802,801,592,728,803,528,532,468,597,469,800,658,733,664,467,470,665,666,599,598,735,664,734,736,600,597,667,534,533,535,733,806,663,807,737,805,596,601,532,536,472,668,473,808,471,732,474,804,670,669,603,602,739,740,671,668,604,738,538,601,537,539,741,811,810,672,737,605,812,667,536,540,476,600,477,809,475,742,813,478,674,673,607,675,606,744,743,608,745,542,672,605,742,543,541,676,815,816,609,814,746,544,540,480,817,479,671,604,741,481,677,478,678,679,611,748,677,610,612,749,747,680,546,609,545,547,676,820,750,613,746,819,821,548,544,484,483,681,818,608,485,822,675,482,683,682,615,753,752,616,614,684,681,550,751,754,549,551,617,613,825,824,685,680,548,552,826,823,487,488,750,755,486,489,618,612,687,686,619,757,688,620,618,756,758,685,554,621,553,555,689,829,755,617,759,830,828,556,552,491,492,684,831,622,490,827,690,493,691,692,623,690,624,761,762,622,760,558,693,625,763,557,559,689,834,833,621,835,759,560,556,495,832,496,694,626,764,494,688,497,695,696,627,628,766,765,694,697,626,767,562,629,563,561,764,838,839,693,768,625,837,698,564,560,499,630,498,840,500,763,836,497,700,699,631,632,770,701,771,769,630,633,698,566,565,567,772,843,702,842,768,844,634,629,568,564,503,697,502,841,504,773,501,845,704,705,636,703,635,775,774,637,776,570,634,706,773,702,571,569,847,848,638,777,846,572,568,507,633,506,849,707,772,701,508,505,708,709,640,779,639,707,780,641,778,710,574,638,575,573,781,852,706,851,642,777,853,711,576,572,510,511,637,850,509,782,854,512,713,712,644,784,643,783,714,645,711,578,785,782,642,579,577,856,646,857,715,855,710,580,576,786,514,858,781,515,513,641,647,516,936,1013,937,1012,861,1014,1091,935,862,1092,938,1011,788,1090,1015,1172,1093,789,860,863,934,790,859,1171,1094,717,1010,939,787,718,1173,864,940,941,1017,1018,865,939,866,864,1016,942,1019,1097,1096,792,867,793,938,791,863,1095,1098,1015,943,794,1020,790,721,868,720,722,1178,1177,945,944,1022,869,1021,870,946,1023,943,868,1101,871,1020,796,797,1100,1102,795,1024,947,867,942,798,1099,1103,872,794,725,1019,724,726,1182,949,948,1026,950,1027,874,873,1025,947,875,872,1106,1105,800,1028,951,801,799,1024,1107,1104,876,871,802,946,729,798,1029,728,730,1187,952,953,954,1031,1030,952,878,877,1032,879,1029,955,1110,876,804,951,805,1109,1111,803,880,1033,806,1028,1108,1112,875,956,733,802,732,950,1191,957,958,1035,882,1034,1036,881,956,883,959,1114,1115,808,880,1033,809,1037,807,955,884,1113,1116,960,810,737,736,879,806,1032,1196,738,1038,962,961,1039,1040,886,963,887,885,1038,960,1041,1119,812,813,1118,1120,888,884,964,811,1037,814,959,1042,1117,1121,741,740,810,1200,889,883,966,1044,965,967,890,1043,891,1045,889,964,1042,1124,1123,968,816,817,892,888,815,1046,1122,1125,818,1041,745,963,744,893,969,814,1205,746,970,971,1048,894,969,1049,895,1047,893,972,1128,896,820,1050,821,1129,1127,968,1046,819,822,892,973,1130,1126,897,749,748,1051,818,1209,1210,975,974,1052,1053,898,899,973,976,1051,1054,897,900,1132,1133,825,824,1131,1134,972,977,826,823,1050,1055,896,901,752,753,1214,827,822,1130,979,978,1057,903,980,1056,902,1058,904,977,1137,901,829,1055,828,1136,1138,981,1059,830,827,905,976,1135,1139,900,756,757,1054,831,1219,1218,983,1061,984,982,907,1062,906,1060,908,985,1063,1142,1141,981,833,832,905,909,834,1059,1140,1143,831,1064,760,986,761,904,980,835,1223,759,987,988,1066,1065,911,986,910,912,1067,989,1064,1146,837,836,1145,1147,913,909,985,838,1068,835,990,1063,1144,1148,764,765,839,1228,914,908,992,991,1070,915,1071,1069,916,993,914,990,1150,1151,841,917,1072,840,1068,842,994,913,1149,1152,989,839,768,769,918,843,1073,1232,767,1067,996,995,1074,1075,997,919,920,1073,918,1076,994,1155,921,845,998,844,1154,1156,846,917,1072,843,1077,1153,1157,922,993,772,847,773,999,1237,1000,1001,1079,999,1078,924,923,1080,1002,922,925,1159,1160,849,1077,998,848,850,1081,1161,1158,921,926,847,1003,776,851,1076,777,775,1241,997,1004,1005,1083,928,1084,927,1003,1082,1006,929,1164,926,1085,853,852,1163,1165,854,1081,1002,930,1007,851,1162,1166,925,855,780,1086,781,779,1246,1009,1008,1088,1087,932,1010,931,933,1089,1007,1086,1169,1168,857,930,856,1011,858,934,1167,1170,1090,1006,855,1085,859,784,929,785,783,1250,1251,1255,1339,1338,1256,1340,1423,1173,1174,1254,1424,1425,1509,1257,1337,1341,1422,1092,1175,1253,1172,1093,1508,1426,1510,1171,1094,1258,1336,1511,1597,1013,1342,1259,1343,1260,1344,1258,1177,1342,1178,1176,1428,1261,1429,1345,1427,1257,1096,1179,1341,1097,1175,1095,1430,1262,1346,1514,1515,1098,1426,1094,1017,1180,1256,1263,1264,1347,1348,1181,1262,1182,1265,1346,1349,1433,1180,1432,1183,1434,1100,1431,1101,1261,1099,1179,1266,1350,1345,1519,1102,1518,1098,1435,1184,1021,1520,1268,1352,1267,1351,1185,1353,1269,1186,1266,1437,1184,1350,1436,1438,1187,1104,1354,1105,1270,1103,1265,1435,1183,1439,1523,1106,1349,1188,1524,1102,1025,1522,1272,1356,1271,1357,1355,1273,1189,1190,1441,1270,1442,1188,1191,1440,1354,1358,1274,1108,1109,1107,1443,1187,1269,1110,1439,1192,1528,1527,1106,1029,1353,1359,1276,1360,1361,1277,1275,1359,1194,1193,1446,1445,1362,1192,1195,1274,1278,1112,1444,1447,1113,1358,1111,1191,1196,1114,1532,1363,1279,1273,1533,1531,1110,1033,1280,1365,1364,1281,1279,1198,1197,1366,1363,1450,1282,1449,1199,1196,1451,1278,1116,1117,1448,1115,1362,1367,1200,1118,1283,1452,1195,1536,1537,1037,1114,1036,1284,1369,1285,1368,1202,1370,1283,1201,1286,1454,1203,1367,1455,1453,1200,1120,1121,1371,1282,1119,1287,1456,1204,1122,1452,1541,1366,1199,1540,1542,1041,1040,1289,1373,1288,1374,1372,1206,1290,1205,1287,1458,1207,1459,1375,1371,1204,1457,1124,1125,1460,1291,1208,1286,1123,1126,1545,1546,1456,1203,1376,1370,1544,1045,1293,1377,1292,1378,1294,1210,1376,1209,1211,1463,1291,1462,1379,1464,1295,1128,1208,1129,1375,1212,1461,1127,1130,1290,1380,1550,1549,1465,1049,1207,1048,1296,1297,1382,1381,1296,1298,1214,1383,1380,1215,1213,1467,1466,1468,1295,1299,1132,1133,1212,1216,1384,1379,1131,1134,1465,1469,1554,1294,1300,1553,1555,1052,1053,1301,1386,1302,1385,1300,1218,1387,1219,1217,1471,1303,1472,1384,1470,1299,1137,1220,1136,1388,1216,1473,1138,1135,1304,1383,1558,1559,1469,1056,1221,1057,1298,1305,1390,1306,1391,1389,1222,1304,1223,1307,1476,1221,1475,1392,1388,1224,1477,1141,1140,1474,1303,1220,1308,1142,1139,1563,1562,1478,1225,1393,1387,1564,1060,1310,1394,1309,1395,1226,1393,1311,1227,1308,1480,1225,1396,1479,1481,1228,1145,1144,1392,1312,1146,1307,1478,1224,1143,1482,1567,1397,1229,1568,1566,1064,1065,1314,1399,1398,1313,1315,1230,1231,1397,1400,1484,1312,1485,1229,1232,1483,1316,1149,1148,1486,1150,1396,1401,1228,1147,1311,1482,1233,1572,1571,1068,1151,1069,1318,1403,1402,1317,1319,1404,1234,1235,1488,1489,1401,1233,1236,1316,1320,1153,1490,1487,1152,1405,1154,1232,1237,1151,1576,1400,1315,1321,1577,1575,1155,1072,1322,1407,1323,1408,1406,1321,1239,1238,1493,1324,1492,1240,1237,1494,1409,1405,1320,1157,1156,1158,1491,1241,1325,1155,1495,1236,1580,1581,1159,1076,1410,1404,1326,1411,1327,1412,1243,1410,1325,1242,1328,1497,1244,1413,1498,1496,1241,1161,1409,1160,1324,1162,1329,1499,1245,1495,1585,1159,1414,1240,1584,1163,1080,1586,1331,1330,1416,1415,1247,1332,1246,1329,1417,1414,1501,1248,1502,1245,1500,1165,1503,1164,1333,1166,1249,1328,1418,1413,1589,1163,1590,1167,1499,1244,1084,1588,1335,1420,1334,1419,1336,1251,1421,1250,1252,1506,1333,1505,1418,1507,1337,1169,1249,1422,1168,1253,1170,1504,1332,1417,1594,1593,1167,1508,1171,1088,1248,1338,1687,1598,1688,1776,1599,1686,1777,1510,1867,1778,1597,1511,1689,1775,1685,1600,1424,1512,1596,1779,1866,1868,1425,1509,1959,1869,1684,1601,1690,1774,1508,1426,1691,1602,1692,1603,1690,1601,1781,1514,1782,1515,1693,1604,1513,1780,1783,1600,1516,1689,1428,1429,1872,1512,1873,1427,1694,1605,1779,1871,1430,1874,1784,1517,1696,1695,1606,1607,1786,1697,1605,1518,1785,1608,1694,1519,1787,1517,1520,1784,1432,1698,1604,1433,1609,1877,1693,1431,1876,1516,1788,1878,1521,1434,1783,1875,1700,1611,1610,1699,1701,1612,1790,1523,1522,1791,1789,1609,1698,1524,1521,1702,1613,1436,1792,1788,1437,1881,1882,1435,1608,1525,1880,1697,1520,1438,1703,1883,1704,1615,1705,1614,1616,1703,1794,1527,1795,1526,1706,1528,1793,1613,1617,1702,1796,1525,1440,1441,1886,1885,1529,1439,1792,1442,1707,1612,1887,1884,1618,1524,1708,1619,1709,1620,1618,1799,1707,1531,1798,1710,1530,1532,1621,1800,1617,1797,1529,1444,1706,1445,1533,1890,1711,1889,1443,1801,1891,1622,1446,1796,1616,1528,1713,1623,1712,1624,1714,1803,1622,1535,1625,1536,1711,1802,1804,1534,1715,1537,1621,1449,1448,1805,1801,1533,1894,1626,1895,1710,1450,1447,1893,1896,1538,1363,1717,1628,1627,1718,1716,1629,1807,1539,1808,1540,1626,1806,1538,1719,1715,1541,1809,1630,1453,1452,1899,1898,1625,1537,1454,1805,1451,1900,1542,1714,1720,1810,1721,1632,1722,1631,1633,1720,1812,1811,1544,1543,1723,1630,1813,1545,1542,1634,1810,1719,1457,1456,1903,1458,1904,1724,1902,1814,1546,1541,1629,1455,1635,1809,1726,1636,1725,1637,1635,1816,1727,1548,1724,1547,1815,1817,1638,1549,1634,1546,1461,1728,1818,1814,1460,1907,1723,1908,1462,1550,1639,1906,1459,1545,1909,1633,1730,1640,1641,1729,1731,1820,1639,1552,1821,1642,1551,1553,1728,1819,1732,1822,1550,1638,1465,1554,1912,1464,1466,1643,1911,1818,1913,1727,1463,1823,1467,1549,1734,1645,1644,1735,1733,1825,1646,1556,1824,1643,1557,1555,1736,1826,1732,1823,1558,1647,1469,1554,1916,1470,1468,1642,1917,1827,1915,1737,1471,1822,1467,1559,1738,1649,1739,1648,1650,1829,1737,1560,1740,1561,1830,1828,1647,1559,1651,1562,1473,1736,1831,1827,1474,1921,1741,1920,1472,1558,1646,1922,1475,1563,1919,1652,1743,1653,1742,1654,1652,1744,1833,1834,1564,1565,1741,1655,1832,1563,1566,1651,1835,1745,1477,1478,1925,1476,1924,1740,1926,1831,1562,1567,1656,1479,1650,1836,1747,1657,1658,1748,1746,1656,1838,1569,1837,1568,1659,1839,1570,1749,1745,1567,1836,1655,1481,1482,1929,1930,1660,1571,1480,1840,1483,1928,1566,1750,1744,1835,1751,1662,1752,1661,1750,1842,1663,1573,1660,1572,1753,1843,1841,1574,1749,1571,1664,1485,1486,1844,1840,1575,1934,1659,1933,1754,1484,1487,1935,1932,1570,1400,1756,1666,1755,1665,1667,1846,1757,1577,1847,1754,1578,1576,1664,1845,1668,1848,1579,1490,1758,1489,1575,1938,1753,1939,1491,1844,1937,1663,1488,1849,1669,1580,1760,1670,1759,1671,1669,1761,1851,1581,1850,1582,1758,1580,1852,1672,1668,1762,1849,1583,1494,1493,1942,1943,1579,1495,1853,1492,1757,1673,1941,1944,1667,1584,1764,1674,1675,1765,1763,1673,1855,1585,1586,1856,1854,1676,1766,1584,1587,1762,1672,1498,1857,1853,1497,1947,1946,1499,1677,1583,1948,1767,1588,1496,1761,1945,1768,1769,1679,1678,1859,1767,1680,1590,1860,1677,1770,1589,1858,1591,1588,1861,1502,1766,1681,1501,1676,1951,1771,1503,1952,1592,1857,1950,1587,1500,1862,1953,1773,1683,1772,1682,1774,1684,1864,1594,1863,1593,1771,1681,1595,1865,1862,1685,1592,1775,1506,1505,1956,1596,1955,1507,1770,1680,1866,1957,1504,1954,1861,1591,2053,1960,2054,2146,2147,2052,1961,2148,2240,1868,1869,1959,2145,2055,2051,1962,2241,2239,2149,2335,2242,1870,1958,1777,1778,1867,2144,2056,2050,1963,2334,2243,2057,2058,1964,1965,2151,2056,2152,1963,2059,1872,2150,1873,1966,1871,2153,2055,2245,1962,2246,1874,1781,2149,2244,1870,2060,1782,1780,1967,2247,2154,1783,1875,2062,2061,1968,1969,2156,2155,2063,2060,1967,1970,1876,1877,2157,2154,1875,2250,1878,2249,2064,1966,2059,1971,1785,2251,1786,2158,1874,2248,1784,2153,1879,1787,2066,2065,1973,1972,2067,2160,2159,1974,2161,1881,1880,2064,1971,2068,2158,1882,1879,2254,1975,2253,2255,2162,1789,1790,1970,2063,1883,1788,1878,1791,2252,2157,2070,1977,2071,2069,2164,1976,1978,2165,2163,1885,1884,2072,1975,2068,1886,1979,2166,2258,1883,2259,2162,1794,2257,1793,1887,2073,2260,1795,1974,1792,2067,1980,2074,2075,1981,1982,2168,2169,2073,1980,2076,1889,2167,1888,1983,1890,2170,1979,2263,2072,2262,1887,1798,2077,1891,1797,2166,2264,2261,1799,1984,2171,1796,1978,2079,2078,1985,1986,2173,2172,2080,1984,2077,1893,1987,2174,1894,1892,2171,2267,2081,1983,2266,1895,2268,1802,2076,1891,1988,2175,1801,1803,2170,2265,1800,2269,2083,1990,2082,1989,2084,2177,2176,1991,2178,1988,1897,1898,2081,2085,1896,2271,2175,1899,2272,2179,1992,1806,2270,1987,1805,1895,1807,2080,2273,2086,1900,1804,2087,2088,1994,1993,2086,2181,1995,2182,2180,1901,1902,2089,1992,2085,2183,1900,1996,1903,2276,2275,2179,1810,1811,2277,1809,2274,2090,1991,1899,1904,2184,1812,2091,2092,1998,1999,2185,1997,2186,2090,2093,1906,1905,2184,2187,2000,1996,1907,2280,1904,2089,2279,2094,2281,1814,1815,2183,1908,1813,2188,2001,2278,1903,1995,2096,2095,2002,2003,2190,2097,2189,2001,2094,1910,2191,2004,1909,1911,2188,2098,2284,2000,2285,1908,2283,2192,1818,1819,1912,2093,2005,1817,2286,1820,2187,1907,2100,2007,2006,2101,2099,2194,2195,2193,2005,2008,1914,1913,1915,2098,2102,2289,2288,2192,2196,2009,2004,1916,1912,1822,1823,2287,2290,1824,1821,2097,2103,2191,2104,2105,2011,2010,2198,2103,2199,2012,2106,1918,2197,2009,1919,1917,2200,2102,2293,2013,2292,1920,2294,2196,1827,1826,1916,2107,2008,1828,2291,1825,2201,1921,2109,2108,2015,2014,2203,2016,2202,2110,2107,1922,1923,2204,2201,2013,2017,1921,2297,1924,2111,2298,2106,2296,1831,1830,2205,1920,1832,2200,2012,2299,1925,2018,2113,2112,2019,2020,2114,2207,2018,2206,2208,1927,1926,2111,2021,2115,2205,1928,2017,1925,2301,2302,2209,1835,1834,2300,1836,2303,2110,2022,1929,1924,2204,1833,2117,2023,2118,2024,2116,2211,2212,2022,2210,2025,1931,1930,2119,2115,1932,2306,2213,1929,2305,2209,2021,1839,2307,2026,1840,1933,1838,2120,2304,2114,1928,1841,2121,2122,2028,2027,2215,2216,2120,2029,2123,1935,2026,2214,1934,1936,2217,2310,2119,2030,2311,1933,2309,1843,2124,1937,2025,2213,1844,1842,2218,2312,1845,2308,2126,2125,2032,2031,2220,2219,2127,2033,2124,1939,2221,1940,2030,1938,2218,2034,2314,2128,2315,1941,1847,2123,1937,1848,2222,2313,2316,1846,2029,2217,1849,2035,2130,2036,2129,2131,2224,2037,2035,2223,2225,1943,1944,2128,2038,2132,1942,2034,2222,2319,1945,2318,2226,1851,2320,1852,1941,2127,2317,1850,2039,1853,2133,2033,2134,2135,2040,2041,2133,2228,2229,2039,2227,1947,1948,2136,2042,2132,2230,1946,1949,2323,2038,2324,2322,2226,1856,1855,2043,2137,1945,1857,1950,1854,2325,2231,2138,2139,2045,2044,2232,2233,2137,2140,2046,2043,1952,1951,2231,2234,1953,2327,1950,2328,2136,2047,2141,2042,1860,2326,1859,2230,1954,2329,1861,2235,1949,1858,2143,2142,2049,2048,2237,2144,2236,2050,2141,1956,2238,1955,2047,1957,2235,2145,2332,2051,2331,1954,1864,2239,2333,1958,2140,1863,1865,2046,2330,2234,1862,1953,2432,2528,2527,2433,2336,2529,2624,2337,2431,2241,2434,2526,2625,2242,2335,2338,2430,2623,2530,2626,2721,2334,2243,2147,2720,2627,2240,2148,2435,2525,2429,2339,2436,2437,2532,2340,2435,2533,2341,2339,2531,2438,2245,2629,2342,2534,2246,2434,2630,2244,2338,2628,2530,2247,2631,2151,2243,2439,2152,2343,2150,2535,2627,2726,2440,2441,2536,2344,2537,2345,2439,2442,2343,2535,2538,2346,2249,2250,2633,2634,2248,2438,2342,2632,2251,2635,2443,2534,2347,2539,2155,2247,2156,2154,2731,2730,2445,2444,2541,2349,2348,2540,2446,2443,2542,2350,2347,2539,2253,2254,2638,2637,2252,2639,2255,2447,2442,2543,2351,2346,2636,2159,2538,2160,2251,2158,2256,2735,2449,2448,2545,2353,2352,2544,2450,2546,2354,2447,2351,2258,2257,2642,2543,2641,2451,2643,2547,2259,2256,2355,2446,2350,2163,2640,2164,2644,2260,2162,2255,2542,2453,2452,2549,2357,2454,2550,2356,2548,2358,2451,2262,2646,2261,2355,2455,2551,2647,2359,2645,2263,2547,2260,2167,2168,2648,2450,2264,2354,2644,2166,2552,2456,2457,2458,2553,2361,2456,2554,2362,2360,2552,2266,2459,2555,2650,2455,2265,2651,2363,2359,2267,2649,2551,2264,2652,2172,2171,2268,2556,2460,2364,2454,2173,2358,2461,2462,2365,2558,2557,2460,2366,2364,2559,2463,2556,2270,2367,2655,2654,2269,2271,2459,2363,2656,2653,2268,2560,2555,2272,2464,2176,2175,2368,2177,2752,2174,2465,2466,2562,2369,2370,2561,2464,2563,2467,2368,2371,2274,2560,2659,2275,2658,2273,2463,2660,2564,2367,2468,2276,2657,2372,2272,2180,2179,2559,2181,2661,2756,2470,2469,2566,2374,2373,2565,2567,2471,2468,2375,2372,2278,2663,2279,2564,2277,2662,2568,2664,2472,2467,2376,2280,2371,2184,2276,2661,2183,2665,2185,2563,2760,2474,2473,2570,2378,2377,2571,2475,2569,2379,2472,2282,2376,2667,2283,2572,2668,2476,2281,2666,2568,2380,2284,2471,2669,2188,2375,2187,2280,2189,2573,2665,2765,2478,2477,2574,2382,2479,2575,2381,2383,2573,2576,2476,2286,2287,2671,2480,2672,2380,2384,2285,2288,2670,2572,2673,2192,2577,2475,2191,2193,2379,2284,2481,2289,2482,2483,2579,2386,2481,2578,2387,2385,2580,2577,2484,2291,2290,2676,2480,2675,2388,2384,2292,2289,2677,2581,2674,2196,2576,2485,2197,2195,2389,2293,2479,2288,2486,2487,2583,2390,2391,2582,2485,2584,2389,2488,2295,2392,2680,2294,2581,2679,2484,2296,2681,2585,2388,2293,2489,2678,2200,2393,2201,2297,2199,2580,2682,2777,2490,2491,2587,2394,2395,2588,2586,2489,2492,2393,2396,2299,2684,2298,2589,2300,2685,2585,2683,2488,2493,2392,2297,2397,2204,2301,2686,2205,2682,2203,2590,2782,2495,2494,2591,2399,2398,2592,2496,2590,2493,2400,2397,2303,2593,2688,2302,2689,2304,2497,2687,2589,2401,2492,2301,2690,2396,2305,2208,2209,2594,2207,2686,2786,2499,2498,2403,2595,2596,2500,2402,2404,2594,2497,2597,2307,2401,2692,2693,2308,2306,2501,2405,2691,2694,2309,2593,2598,2305,2496,2212,2213,2400,2211,2790,2214,2503,2502,2600,2407,2504,2599,2406,2408,2601,2311,2501,2598,2697,2505,2312,2696,2405,2409,2310,2698,2602,2313,2695,2216,2217,2309,2597,2500,2404,2506,2215,2410,2507,2508,2604,2411,2506,2603,2412,2605,2410,2509,2315,2701,2316,2413,2505,2602,2700,2409,2702,2314,2606,2317,2221,2220,2699,2510,2313,2414,2703,2222,2601,2504,2511,2512,2608,2415,2416,2609,2510,2607,2414,2513,2417,2319,2320,2705,2610,2706,2509,2704,2606,2318,2321,2413,2514,2418,2225,2707,2224,2703,2317,2226,2322,2611,2515,2516,2612,2419,2420,2613,2514,2517,2611,2418,2421,2614,2324,2323,2709,2710,2325,2708,2322,2513,2518,2610,2417,2422,2711,2229,2615,2228,2326,2230,2321,2807,2520,2519,2617,2424,2616,2423,2521,2518,2425,2618,2615,2422,2328,2327,2714,2713,2329,2522,2426,2715,2326,2712,2517,2619,2421,2614,2233,2330,2232,2234,2811,2812,2524,2523,2621,2428,2525,2620,2427,2429,2622,2522,2332,2718,2426,2619,2331,2526,2717,2333,2430,2719,2623,2330,2716,2237,2334,2521,2236,2425,2238,2618,2720,2816,2820,2918,2821,2917,3015,2919,2722,2819,2723,3016,2916,2822,3113,3017,2625,3014,2920,2724,2818,2626,2721,3112,3018,2720,2627,3114,2528,2915,2823,3212,3115,2624,2824,2922,2825,2923,2726,2823,2727,2921,2725,2826,3020,2924,3021,2728,2629,3019,2630,2822,2628,2920,2724,3022,2631,2827,3118,2925,2729,3018,3119,2532,2627,2533,2829,2828,2927,2926,2731,2730,2830,2827,2928,2925,3025,3024,2732,2729,2633,2634,3026,3023,2831,2826,2632,2635,2929,2924,2733,2728,3123,3122,2536,2537,2631,3027,2833,2931,2832,2930,2834,2735,2932,2734,2736,3029,2831,3028,2929,2733,2638,3030,2637,2835,2933,2737,2639,3027,2636,2830,3127,3031,2928,2732,2541,2540,3126,2640,2837,2935,2838,2836,2936,2739,2934,2740,2738,3033,2839,3034,2835,3032,2937,2642,2933,2741,2641,2737,2643,3035,2640,3031,3131,2644,2840,2545,3132,2834,2544,2742,2841,2842,2939,2940,2743,2840,2744,2938,2843,2742,3037,2941,3038,2745,2646,3036,2647,2839,2645,2937,3039,2741,2844,2648,2942,2746,2644,3136,3135,2549,3035,2550,2846,2845,2944,2943,2748,2747,2847,2844,2945,2942,3042,3041,2749,2746,2650,2651,3043,3040,2848,2649,2843,2946,2750,2652,2941,2745,3140,2553,3139,2554,2648,3044,2850,2948,2849,2947,2851,2752,2949,2751,2753,3046,2848,3045,2946,3047,2750,2655,2852,2654,2950,2754,2656,2653,3044,2847,3144,3048,2945,2749,2558,2557,3145,3143,2854,2952,2855,2853,2953,2756,2951,2757,2755,3050,2856,3051,2954,2852,3049,2659,2758,2658,2950,2754,2660,3052,2657,3048,2857,3148,3149,2562,2661,2561,2955,2759,2858,2859,2956,2957,2760,2857,2761,2955,2860,3054,2759,2958,3055,2762,2663,3053,2662,2664,2856,3056,2954,2758,2861,2959,2661,2763,2665,3153,2566,3152,3052,2565,2863,2862,2961,2960,2765,2764,2864,2962,2861,2959,3059,2766,3058,2763,2667,2668,3060,2865,2666,3057,2963,2860,2767,2669,2958,2762,3157,2665,2570,3158,2571,3061,2867,2965,2866,2964,2868,2769,2966,2768,2770,3063,2865,3062,2963,3064,2869,2671,2767,2672,2967,2771,2670,2673,3061,3065,2864,3161,3162,2574,2575,2962,2766,2669,2871,2969,2872,2970,2870,2773,2968,2774,2772,3067,2873,3068,2971,3066,2869,2676,2775,2675,2967,2771,2677,2674,3069,3065,2874,3166,3165,2579,2578,2972,2776,2678,2875,2876,2973,2974,2777,2778,2874,2972,2877,2975,3071,2776,3072,2779,2680,2679,3070,2873,2681,3073,2971,2878,2775,2678,2976,2780,3170,2682,2583,3169,2582,3069,2880,2879,2978,2977,2782,2881,2781,2979,2878,3076,2783,2976,3075,2780,2684,3077,2685,2683,2882,3074,2980,2784,2877,2975,2686,2779,2682,3174,2587,3175,3078,2588,2884,2982,2883,2885,2981,2786,2983,2785,2787,3080,2882,3079,2980,2886,3081,2688,2784,2689,2984,2788,2687,3078,2690,3082,2881,3179,3178,2591,2686,2592,2979,2783,2888,2986,2889,2987,2887,2790,2985,2791,2789,3084,2890,3085,2988,3083,2792,2692,2886,2693,2984,2788,2691,2694,3086,2891,3183,3082,2989,2793,2595,2596,3182,3184,2892,2893,2990,2991,2794,2795,2891,2894,2989,2992,3088,3089,2793,2796,2697,2696,3087,3090,2890,2698,2895,2988,2792,2695,2993,2797,3187,2600,3188,2599,2699,3086,2897,2896,2995,2994,2799,2898,2798,2996,2895,2800,3093,2993,3092,2797,2701,3094,2700,2899,2702,2997,3091,2801,2894,2699,2992,2796,2703,3191,3192,2604,3095,2603,2901,2999,2900,2902,2998,2803,3000,2802,2804,3097,2899,3096,2903,3098,2997,2705,3001,2801,2706,2805,2704,3095,2707,3099,3196,2703,2898,2608,3195,2904,2609,2800,2905,3003,2906,3004,2904,2807,3002,2808,2806,3101,2907,3102,3005,2809,2709,3100,2710,2903,3001,2805,2708,3103,2711,2908,3200,3099,3006,2810,2612,2613,3201,2707,2909,2910,3007,3008,2811,2812,2908,2911,3006,3009,3105,3106,2810,2813,2714,2713,3104,3107,2907,2912,2715,2712,3005,3010,2809,2814,3204,3205,2617,2616,2716,3103,2914,3012,2913,3011,2816,2915,2815,3013,2817,2912,3110,3010,3109,2814,2718,3111,2717,2916,2719,3014,2818,3108,2716,2911,3209,3009,2813,3112,3208,2621,2720,2620,3312,3213,3311,3214,3410,3313,3114,3411,3212,3115,3412,3508,3215,3310,3314,3409,3016,3211,3116,3113,3017,3509,3507,3413,3606,3510,3112,3018,3216,3309,3408,3315,3316,3217,3317,3218,3216,3315,3118,3415,3119,3416,3219,3318,3117,3414,3120,3020,3215,3417,3314,3021,3019,3513,3116,3514,3220,3319,3413,3022,3512,3121,3018,2922,3321,3222,3320,3221,3223,3123,3322,3122,3420,3419,3220,3319,3124,3121,3421,3418,3025,3024,3224,3323,3219,3518,3517,3026,3318,3125,3023,3120,3422,3519,3417,3516,3325,3226,3324,3225,3227,3326,3127,3424,3126,3423,3128,3224,3425,3323,3228,3327,3029,3125,3422,3028,3129,3030,3522,3521,3426,3027,3523,3223,3322,3229,3031,2931,3329,3230,3330,3231,3229,3328,3131,3428,3132,3429,3232,3130,3427,3331,3133,3228,3327,3033,3034,3032,3430,3129,3526,3426,3527,3233,3525,3332,3035,3031,3134,2935,3334,3333,3235,3234,3136,3135,3432,3236,3335,3233,3332,3433,3137,3431,3134,3037,3434,3038,3237,3232,3336,3530,3331,3036,3531,3138,3039,3133,3430,3529,2939,3035,3338,3239,3337,3238,3240,3339,3140,3437,3436,3139,3141,3237,3336,3438,3241,3435,3340,3138,3042,3041,3142,3535,3534,3043,3040,3236,3335,3439,3536,3137,3533,3434,3342,3243,3343,3244,3242,3341,3144,3441,3145,3440,3143,3245,3442,3344,3241,3340,3146,3046,3045,3439,3142,3047,3539,3538,3443,3044,3246,3540,3345,3048,3147,2948,3346,3247,3347,3248,3445,3148,3246,3345,3149,3249,3348,3446,3444,3147,3150,3050,3245,3051,3447,3344,3049,3543,3250,3349,3443,3146,3544,3542,3151,3052,3048,2952,3351,3252,3350,3251,3253,3352,3153,3449,3152,3450,3250,3349,3154,3448,3151,3254,3451,3054,3353,3055,3155,3547,3053,3548,3249,3056,3348,3447,3546,3150,2956,3549,3355,3256,3356,3257,3255,3354,3157,3454,3453,3158,3156,3258,3357,3254,3455,3353,3452,3059,3159,3058,3155,3552,3060,3551,3057,3456,3259,3553,3358,3253,3550,3352,3359,3260,3360,3261,3259,3358,3161,3458,3162,3262,3361,3457,3459,3160,3163,3063,3258,3357,3062,3456,3064,3556,3159,3263,3460,3362,3555,3557,3061,3164,3065,2965,3364,3265,3363,3264,3266,3365,3166,3462,3165,3263,3362,3463,3461,3167,3164,3067,3267,3366,3068,3464,3066,3560,3168,3262,3460,3361,3561,3559,3069,3163,3065,2969,3368,3269,3367,3268,3270,3369,3170,3466,3467,3169,3171,3267,3366,3271,3465,3370,3468,3071,3168,3072,3172,3564,3070,3565,3073,3464,3266,3563,3365,3272,3566,3371,3372,3273,3373,3274,3272,3371,3174,3471,3175,3470,3275,3374,3173,3472,3176,3271,3469,3076,3370,3075,3172,3569,3077,3568,3276,3074,3375,3473,3570,3177,2978,3567,3377,3278,3376,3277,3475,3179,3279,3378,3178,3276,3375,3474,3476,3180,3177,3080,3280,3079,3473,3379,3081,3573,3275,3374,3477,3181,3572,3574,3176,3078,3082,2982,3381,3282,3380,3281,3283,3382,3183,3479,3182,3480,3184,3280,3478,3379,3284,3383,3181,3084,3085,3481,3185,3083,3577,3578,3477,3086,3279,3576,3378,3082,3180,2986,3385,3286,3386,3287,3285,3384,3187,3483,3484,3188,3186,3288,3387,3482,3284,3485,3383,3189,3088,3089,3185,3581,3582,3087,3090,3289,3388,3481,3580,3190,3583,3486,3389,3390,3290,3291,3191,3192,3488,3289,3388,3292,3391,3487,3190,3489,3193,3093,3486,3092,3288,3293,3387,3586,3392,3094,3585,3189,3091,3194,3490,3587,2995,3095,3394,3295,3393,3294,3296,3395,3196,3492,3195,3491,3293,3197,3493,3392,3194,3297,3396,3097,3096,3098,3490,3198,3590,3494,3589,3292,3591,3391,3095,3099,3193,2999,3398,3299,3399,3300,3298,3397,3200,3496,3201,3497,3199,3301,3495,3400,3297,3396,3101,3202,3498,3102,3198,3100,3594,3595,3494,3103,3593,3302,3401,3296,3099,3003,3402,3303,3403,3304,3302,3204,3401,3205,3500,3501,3305,3404,3203,3206,3499,3502,3105,3106,3301,3400,3306,3598,3599,3104,3405,3202,3107,3207,3498,3597,3503,3600,3407,3308,3406,3307,3309,3408,3209,3505,3208,3504,3306,3405,3210,3506,3207,3110,3310,3503,3409,3109,3111,3603,3211,3602,3305,3404,3507,3108,3604,3206,3112,3012,3705,3607,3706,3802,3803,3704,3608,3509,3899,3804,3606,3510,3801,3707,3703,3609,3900,3898,3805,3411,3605,3511,3995,3901,3508,3412,3702,3610,3800,3708,3413,3507,3709,3611,3710,3612,3807,3708,3610,3808,3513,3514,3806,3711,3613,3512,3809,3904,3707,3515,3609,3905,3415,3416,3903,3805,3511,3414,3712,3614,3417,3906,3516,3810,3714,3713,3616,3615,3811,3812,3715,3712,3617,3614,3518,3517,3810,3813,3519,3516,3908,3909,3420,3419,3716,3618,3711,3613,3907,3421,3418,3809,3520,3515,3910,3814,3718,3620,3717,3619,3719,3816,3621,3815,3522,3521,3716,3817,3618,3523,3814,3720,3622,3913,3520,3912,3424,3423,3524,3425,3818,3914,3911,3617,3715,3422,3813,3519,3722,3624,3723,3721,3625,3820,3623,3819,3526,3821,3527,3525,3724,3626,3720,3622,3917,3818,3916,3428,3528,3524,3822,3429,3427,3918,3915,3627,3725,3430,3621,3426,3726,3727,3628,3629,3824,3725,3627,3825,3530,3823,3728,3531,3630,3529,3921,3532,3724,3826,3626,3432,3920,3822,3433,3922,3528,3431,3729,3631,3434,3533,3919,3430,3731,3730,3633,3632,3828,3829,3732,3634,3729,3535,3534,3631,3827,3536,3830,3533,3925,3437,3733,3436,3635,3926,3924,3728,3630,3826,3438,3537,3435,3532,3831,3927,3735,3637,3734,3636,3736,3833,3832,3638,3539,3538,3733,3635,3540,3834,3831,3737,3639,3929,3537,3930,3441,3440,3541,3928,3442,3634,3732,3835,3830,3439,3931,3536,3739,3641,3740,3738,3642,3837,3640,3836,3543,3838,3544,3542,3741,3643,3737,3639,3835,3933,3934,3545,3445,3541,3446,3444,3839,3932,3935,3644,3742,3447,3443,3638,3743,3744,3645,3646,3841,3742,3644,3840,3547,3842,3745,3548,3647,3546,3549,3938,3937,3741,3839,3643,3449,3843,3450,3746,3648,3448,3545,3939,3936,3451,3550,3351,3748,3747,3650,3649,3845,3749,3846,3651,3746,3552,3551,3844,3648,3553,3550,3847,3942,3941,3750,3652,3454,3453,3843,3745,3943,3647,3455,3554,3452,3549,3940,3848,3752,3654,3751,3653,3753,3849,3655,3850,3556,3555,3848,3750,3557,3652,3851,3754,3656,3946,3554,3458,3945,3947,3457,3558,3459,3847,3651,3749,3456,3852,3944,3460,3756,3658,3757,3659,3755,3854,3657,3853,3560,3561,3855,3758,3559,3660,3852,3754,3656,3950,3562,3462,3951,3949,3463,3558,3461,3856,3661,3759,3464,3851,3952,3460,3760,3761,3662,3663,3858,3759,3857,3661,3762,3564,3565,3859,3664,3563,3566,3856,3954,3955,3758,3660,3466,3467,3860,3763,3953,3665,3465,3562,3468,3567,3956,3855,3765,3764,3667,3666,3862,3766,3668,3863,3569,3861,3763,3568,3665,3570,3567,3958,3959,3767,3864,3669,3471,3860,3470,3762,3664,3472,3571,3957,3960,3469,3566,3372,3769,3671,3768,3770,3670,3866,3672,3867,3573,3865,3572,3574,3767,3669,3771,3673,3868,3963,3962,3571,3475,3575,3474,3476,3864,3964,3961,3668,3766,3473,3477,3674,3773,3675,3774,3676,3772,3870,3871,3674,3577,3578,3775,3677,3576,3869,3872,3771,3673,3967,3579,3966,3479,3480,3575,3968,3478,3678,3776,3868,3873,3481,3965,3580,3777,3778,3679,3680,3875,3874,3776,3678,3779,3581,3582,3681,3876,3580,3873,3583,3971,3483,3775,3484,3677,3970,3972,3780,3682,3877,3482,3579,3485,3584,3872,3969,3782,3781,3684,3683,3879,3783,3685,3878,3586,3880,3780,3585,3682,3587,3975,3584,3784,3877,3686,3488,3976,3881,3487,3974,3588,3489,3779,3681,3486,3583,3977,3490,3786,3688,3785,3787,3687,3883,3689,3884,3590,3882,3589,3591,3784,3686,3788,3690,3979,3885,3980,3492,3588,3592,3881,3491,3493,3978,3981,3685,3783,3490,3691,3494,3790,3692,3791,3693,3789,3887,3691,3888,3594,3595,3792,3886,3694,3593,3889,3788,3690,3983,3596,3984,3496,3497,3592,3495,3885,3982,3985,3695,3793,3498,3890,3597,3794,3795,3696,3697,3892,3891,3793,3796,3695,3698,3598,3599,3893,3890,3597,3600,3988,3987,3500,3501,3792,3694,3797,3699,3989,3499,3502,3894,3596,3601,3986,3889,3799,3701,3798,3700,3896,3800,3702,3895,3603,3602,3897,3797,3699,3604,3894,3992,3801,3601,3703,3991,3505,3504,3993,3898,3605,3506,3796,3698,3503,3990,3600,3893,4092,3996,-1,4093,4186,-1,-1,4091,3997,3900,-1,-1,-1,3995,3901,-1,4094,4185,-1,4090,3998,-1,3803,3902,3994,-1,-1,3899,3804,-1,-1,-1,4096,4097,4000,-1,-1,4095,4001,3999,-1,3904,-1,-1,4098,-1,3905,4002,3903,4094,-1,3998,-1,-1,3906,3807,-1,3808,3902,-1,-1,3806,-1,4003,4100,4101,4004,-1,-1,4005,4099,-1,4003,-1,4102,3908,-1,4006,3909,-1,3907,-1,4098,3910,-1,-1,4002,3811,-1,3812,-1,4007,-1,4103,3906,3810,4104,4105,-1,4009,4008,-1,-1,4103,4106,4010,4007,-1,3913,3912,-1,-1,-1,-1,3914,3911,4102,3816,-1,4011,3815,4006,4107,-1,-1,3817,-1,-1,4109,4108,-1,4013,4012,-1,-1,4110,4107,4014,3917,-1,-1,3916,4011,-1,3918,-1,-1,3915,4015,-1,4111,3820,4106,3819,-1,-1,3821,4010,-1,-1,4113,4112,4017,-1,-1,4016,4114,4018,-1,4111,-1,3921,-1,-1,3920,4015,3922,-1,4019,-1,4115,-1,3919,-1,3824,3923,3825,4110,-1,3823,-1,-1,4117,4116,4021,-1,-1,4118,4022,4020,-1,3925,-1,4115,-1,3926,-1,3924,-1,4023,-1,4019,4119,-1,3927,3828,3923,3829,-1,-1,-1,3827,-1,4114,4121,-1,4025,4120,4122,-1,4026,-1,4024,3929,-1,3930,-1,4119,-1,4027,3928,-1,4123,-1,4023,3931,-1,3833,3832,-1,3927,-1,-1,-1,4028,3834,4125,4126,4029,-1,-1,4124,4030,4028,-1,-1,3933,4031,3934,-1,-1,4127,4123,3932,-1,-1,3935,-1,-1,4027,3837,3836,4032,-1,-1,3838,3931,-1,4129,4130,-1,4034,4033,-1,4128,-1,4035,4032,3938,-1,3937,4131,-1,-1,-1,4127,3939,-1,3936,-1,4036,3841,4031,3840,-1,3842,-1,-1,-1,4132,4133,4134,-1,4038,4037,-1,4132,-1,4039,4135,3942,-1,3941,4036,-1,-1,-1,3943,-1,4131,4040,3940,-1,3845,3846,-1,-1,4136,3844,3944,-1,4035,4137,4138,4042,-1,-1,4041,4043,4136,-1,4139,-1,3946,-1,-1,3945,3947,4040,4044,-1,-1,-1,4135,3944,-1,3849,3850,4140,3948,-1,-1,3848,-1,4142,4141,4046,-1,-1,4047,4045,4143,-1,4140,3950,-1,-1,-1,3951,3949,4048,-1,4044,-1,-1,4144,3952,3854,3853,4139,3948,-1,-1,-1,-1,3855,4146,4145,-1,4050,4051,-1,-1,4147,4049,4144,3954,-1,3955,4052,-1,-1,-1,-1,3953,4148,4048,3956,3858,-1,-1,3857,-1,4143,3859,3952,4053,-1,4150,4149,-1,4054,4055,-1,4151,-1,4053,-1,4056,3958,3959,-1,4148,-1,-1,4152,3957,3960,-1,-1,4052,3862,-1,4057,3863,-1,3861,-1,-1,4147,4154,-1,4153,4059,4155,4058,-1,-1,4060,-1,3963,4057,-1,3962,-1,4152,4156,3964,-1,3961,-1,-1,4061,3866,-1,3867,4056,-1,-1,3865,-1,3965,4158,-1,4063,4159,4157,4062,-1,-1,4064,3967,-1,3966,4160,4061,-1,-1,-1,-1,3968,4156,4065,3965,3870,3871,-1,-1,-1,3969,-1,4060,-1,3869,4162,4163,4067,-1,-1,4161,4066,4068,-1,3971,-1,4164,-1,-1,3970,3972,4065,-1,4069,4160,-1,-1,3969,3875,3973,3874,-1,-1,-1,3876,-1,4165,4166,4167,4071,-1,-1,4072,4165,4070,-1,4168,-1,3975,-1,-1,3976,4073,3974,-1,4069,-1,-1,4164,3977,3879,-1,3973,3878,4169,-1,3880,-1,-1,4170,4171,-1,4075,4076,-1,-1,4169,4172,4074,3979,-1,3980,4077,-1,-1,-1,-1,3978,3981,4073,4168,3883,-1,4173,3884,-1,-1,3882,4078,3977,-1,4175,4174,-1,4079,4080,-1,4176,-1,4173,4078,4081,3983,-1,3984,-1,-1,-1,3982,-1,3985,4177,-1,3887,4077,3888,4082,4172,-1,-1,-1,-1,3886,4179,4178,4084,-1,-1,4083,4180,4085,-1,-1,4177,3988,-1,4082,3987,-1,3989,-1,4181,-1,3986,-1,4086,-1,3892,3891,-1,-1,4081,4176,3990,3893,4183,4182,-1,4088,4184,-1,4087,-1,4089,3992,-1,4181,3991,-1,-1,4086,3993,-1,4185,-1,4090,3990,-1,3896,3895,-1,3994,-1,-1,3897,-1,4085]}}} diff --git a/docs/source/_static/css/foveation-viewer.css b/docs/source/_static/css/foveation-viewer.css new file mode 100644 index 000000000000..8d12840598d8 --- /dev/null +++ b/docs/source/_static/css/foveation-viewer.css @@ -0,0 +1,206 @@ +/* + * Copyright (c) 2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* Interactive sampling-grid and pooling viewers on the Foveated Camera page. */ + +.fovi-viewer { + --fovi-ink: #1f2a37; + --fovi-muted: #8a96a8; + --fovi-faint: #d7dee8; + --fovi-surface: #ffffff; + --fovi-panel: #f6f8fb; + --fovi-border: #dfe5ec; + --fovi-accent: #2458d3; + --fovi-camera: #167d72; + --fovi-highlight: #d47b00; + --fovi-body: #29364b; + margin: 1.25rem 0 1.75rem; + padding: 1rem; + border: 1px solid var(--fovi-border); + border-radius: 8px; + background: var(--fovi-panel); + color: var(--fovi-ink); +} + +html[data-theme="dark"] .fovi-viewer { + --fovi-ink: #e3e8ef; + --fovi-muted: #7d8899; + --fovi-faint: #3a4556; + --fovi-surface: #11161d; + --fovi-panel: #1a2029; + --fovi-border: #343d4b; + --fovi-accent: #6d9cff; + --fovi-camera: #3cc2ad; + --fovi-highlight: #f0a33a; + --fovi-body: #5b6f8c; +} + +.fovi-controls { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); + gap: 0.6rem 1.2rem; + align-items: end; +} + +.fovi-control { + display: grid; + grid-template-columns: 1fr auto; + gap: 0.15rem 0.5rem; + margin: 0; + font-size: 0.85rem; +} + +.fovi-viewer [hidden] { + display: none; +} + +.fovi-control-name { + grid-column: 1 / -1; +} + +.fovi-control input[type="range"], +.fovi-control select { + width: 100%; + min-width: 0; + accent-color: var(--fovi-accent); +} + +.fovi-control select { + padding: 0.15rem 0.3rem; + border: 1px solid var(--fovi-border); + border-radius: 4px; + background: var(--fovi-surface); + color: var(--fovi-ink); +} + +.fovi-control-value { + min-width: 3.5rem; + font-variant-numeric: tabular-nums; + text-align: right; +} + +.fovi-reset { + justify-self: start; + padding: 0.25rem 0.9rem; + border: 1px solid var(--fovi-border); + border-radius: 4px; + background: var(--fovi-surface); + color: var(--fovi-ink); + font-size: 0.85rem; + cursor: pointer; +} + +.fovi-summary { + margin: 0.9rem 0 0.6rem; + font-size: 0.9rem; +} + +.fovi-panels { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); + gap: 1rem; +} + +.fovi-panels-stacked { + grid-template-columns: 1fr; +} + +.fovi-panels-three { + grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); +} + +.fovi-panel { + margin: 0; + padding: 0.6rem; + border: 1px solid var(--fovi-border); + border-radius: 6px; + background: var(--fovi-surface); +} + +.fovi-panel-control { + max-width: 22rem; + margin-bottom: 0.4rem; +} + +.fovi-panel figcaption { + margin-bottom: 0.4rem; + font-weight: 600; + font-size: 0.9rem; +} + +.fovi-views { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 0.4rem; +} + +.fovi-canvas { + display: block; + width: 100%; + aspect-ratio: 1; + touch-action: none; +} + +.fovi-sphere { + cursor: grab; +} + +.fovi-panel-labels { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 0.4rem; + color: var(--fovi-muted); + font-size: 0.75rem; + text-align: center; +} + +.fovi-panel-note { + margin: 0.4rem 0 0; + font-size: 0.8rem; +} + +.fovi-legend { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 0.3rem 0.5rem; + margin: 0.7rem 0 0; + font-size: 0.8rem; +} + +.fovi-key { + display: inline-block; + width: 0.7rem; + height: 0.7rem; + margin-left: 0.6rem; + border-radius: 50%; +} + +.fovi-key:first-child { + margin-left: 0; +} + +.fovi-key-accent { + background: var(--fovi-accent); +} + +.fovi-key-muted { + background: var(--fovi-muted); +} + +.fovi-key-camera { + background: var(--fovi-camera); +} + +.fovi-key-highlight { + background: var(--fovi-highlight); +} + +.fovi-legend-note { + margin-left: auto; + color: var(--fovi-muted); +} diff --git a/docs/source/_static/css/foveation-viewer.js b/docs/source/_static/css/foveation-viewer.js new file mode 100644 index 000000000000..1e7bdda1d9b3 --- /dev/null +++ b/docs/source/_static/css/foveation-viewer.js @@ -0,0 +1,987 @@ +/* + * Copyright (c) 2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +// Interactive sampling-grid and pooling viewers for the Foveated Camera page. +// The sampling follows fovi's SamplingCoords with spherical field geometry, as the camera configures it. +(() => { + "use strict"; + + const DEG = Math.PI / 180; + const TAU = 2 * Math.PI; + // fovi's isotropic pooling neighbourhoods for the pooling viewer, beside this script; fetched only when used. + const SCRIPT_URL = typeof document !== "undefined" && document.currentScript ? document.currentScript.src : null; + const TABLES_URL = SCRIPT_URL ? new URL("foveation-pooling-isotropic.json", SCRIPT_URL).href : null; + + // -- Sampling geometry ------------------------------------------------------------------------------------------- + + // Warped Cartesian grid: an N x N lattice in the native plane, mapped radially by the integrated CMF. + // Returns samples in canonical order (x index major), each with normalized visual coordinates s = (x, y) / r_max. + const warpedGrid = (fov, a, res) => { + const half = fov / 2; + const growth = 1 + half / a; + const samples = []; + for (let i = 0; i < res; i++) { + for (let j = 0; j < res; j++) { + const cx = -1 + (2 * i + 1) / res; + const cy = -1 + (2 * j + 1) / res; + const rho = Math.hypot(cx, cy); + const r = a * (Math.pow(growth, rho) - 1); + const theta = Math.atan2(cy, cx); + samples.push({i, j, native: [cx, cy], s: [(r / half) * Math.cos(theta), (r / half) * Math.sin(theta)], valid: rho <= 1 + 1e-12}); + } + } + return samples; + }; + + // Isotropic rings: radii even in cortical distance w = log(r + a), angles per ring matched to the radial step. + const isotropicRings = (fov, a, res) => { + if (res === 1) { + return {radius: [0], count: [1]}; + } + const half = fov / 2; + const wMin = Math.log(a); + const wDelta = (Math.log(half + a) - wMin) / (res - 1); + const radius = Array.from({length: res + 1}, (_, k) => Math.exp(wMin + k * wDelta) - a); + const count = [1]; + for (let k = 1; k < res; k++) { + const step = (radius[k + 1] - radius[k - 1]) / 2; + const tangential = Math.sin(radius[k] * DEG) / DEG; // spherical field geometry + count.push(Math.ceil((TAU * tangential) / step)); + } + return {radius: radius.slice(0, res).map((r) => r / half), count}; + }; + + const isotropicCount = (fov, a, res) => isotropicRings(fov, a, res).count.reduce((sum, n) => sum + n, 0); + + // The camera matches an isotropic retina to foveated_res^2 samples (fovi's auto_match_num_coords). + const matchedIsotropicRes = (fov, a, target) => { + let left = 1; + let right = 1000; + let best = 1; + let bestDiff = Infinity; + while (left <= right) { + const mid = (left + right) >> 1; + const n = isotropicCount(fov, a, mid); + const diff = Math.abs(n - target); + if (diff < bestDiff) { + bestDiff = diff; + best = mid; + } + if (n < target) { + left = mid + 1; + } else { + right = mid - 1; + } + } + while (best > 1 && isotropicCount(fov, a, best) > target) { + best -= 1; + } + return best; + }; + + const isotropicSamples = (fov, a, rings) => { + const {radius, count} = isotropicRings(fov, a, rings); + const samples = []; + radius.forEach((r, ring) => { + for (let k = 0; k < count[ring]; k++) { + const angle = (k * TAU) / count[ring]; + samples.push({ring, s: [r * Math.cos(angle), r * Math.sin(angle)], valid: true}); + } + }); + return samples; + }; + + // Unit ray of a normalized visual coordinate, in the image frame: x right, y down, z forward. + const ray = (s, fov) => { + const e = Math.hypot(s[0], s[1]) * (fov / 2) * DEG; + const theta = Math.atan2(s[1], s[0]); + return [Math.sin(e) * Math.cos(theta), -Math.sin(e) * Math.sin(theta), Math.cos(e)]; + }; + + // Pan-then-tilt gaze rotation (row-major), as isaaclab_fovi's gaze kernels: positive tilt looks up, pan left. + const gazeRotation = (tilt, pan) => { + const x = -Math.cos(tilt * DEG) * Math.sin(pan * DEG); + const y = -Math.sin(tilt * DEG); + const z = Math.cos(tilt * DEG) * Math.cos(pan * DEG); + const pitch = Math.atan2(x, z); + const roll = Math.atan2(-y, Math.hypot(x, z)); + const [cp, sp, cr, sr] = [Math.cos(pitch), Math.sin(pitch), Math.cos(roll), Math.sin(roll)]; + return [[cp, sp * sr, sp * cr], [0, cr, -sr], [-sp, cp * sr, cp * cr]]; + }; + + const rotate = (m, v) => m.map((row) => row[0] * v[0] + row[1] * v[1] + row[2] * v[2]); + + // An ideal square camera whose field of view spans its side; the retina spans the same angle. + const SIDE = 1000; + const cameraModels = { + fisheye: { + label: "Equidistant fisheye", + fov: {min: 40, max: 240, initial: 180}, + focal: (fov) => SIDE / 2 / ((fov / 2) * DEG), + project(d, f) { + const lateral = Math.hypot(d[0], d[1]); + const theta = Math.atan2(lateral, d[2]); + if (lateral < 1e-12) { + return [SIDE / 2, SIDE / 2]; + } + return [SIDE / 2 + (f * theta * d[0]) / lateral, SIDE / 2 + (f * theta * d[1]) / lateral]; + }, + unproject(p, f) { + const dx = p[0] - SIDE / 2; + const dy = p[1] - SIDE / 2; + const theta = Math.hypot(dx, dy) / f; + const lateral = Math.hypot(dx, dy) || 1; + return [(Math.sin(theta) * dx) / lateral, (Math.sin(theta) * dy) / lateral, Math.cos(theta)]; + }, + }, + pinhole: { + label: "Pinhole", + fov: {min: 20, max: 170, initial: 80}, + focal: (fov) => SIDE / 2 / Math.tan((fov / 2) * DEG), + project(d, f) { + if (d[2] <= 1e-9) { + return null; + } + return [SIDE / 2 + (f * d[0]) / d[2], SIDE / 2 + (f * d[1]) / d[2]]; + }, + unproject(p, f) { + return normalize([(p[0] - SIDE / 2) / f, (p[1] - SIDE / 2) / f, 1]); + }, + }, + }; + + const normalize = (v) => { + const n = Math.hypot(v[0], v[1], v[2]); + return [v[0] / n, v[1] / n, v[2] / n]; + }; + + const inImage = (p) => p !== null && p[0] >= 0 && p[0] < SIDE && p[1] >= 0 && p[1] < SIDE; + + const imageBorder = (model, f) => { + const points = []; + const corners = [[0, 0], [SIDE, 0], [SIDE, SIDE], [0, SIDE], [0, 0]]; + for (let k = 0; k < 4; k++) { + for (let t = 0; t < 40; t++) { + const [a, b] = [corners[k], corners[k + 1]]; + points.push(model.unproject([a[0] + ((b[0] - a[0]) * t) / 40, a[1] + ((b[1] - a[1]) * t) / 40], f)); + } + } + points.push(points[0]); + return points; + }; + + // Spacing of neighbouring samples [deg] at the fixation and at the edge of the field. + const spacing = (style, fov, a, res) => { + const half = fov / 2; + if (style === "isotropic") { + const step = (Math.log(half + a) - Math.log(a)) / Math.max(res - 1, 1); + return [a * (Math.exp(step) - 1), (half + a) * (1 - Math.exp(-step))]; + } + const rate = Math.log(1 + half / a) * (2 / res); + return [a * rate, (half + a) * rate]; + }; + + // -- Drawing helpers --------------------------------------------------------------------------------------------- + + const palette = (element) => { + const style = getComputedStyle(element); + const get = (name, fallback) => style.getPropertyValue(name).trim() || fallback; + return { + ink: get("--fovi-ink", "#1f2a37"), + muted: get("--fovi-muted", "#8a96a8"), + faint: get("--fovi-faint", "#d7dee8"), + surface: get("--fovi-surface", "#ffffff"), + accent: get("--fovi-accent", "#2458d3"), + camera: get("--fovi-camera", "#167d72"), + highlight: get("--fovi-highlight", "#d47b00"), + body: get("--fovi-body", "#29364b"), + }; + }; + + const fitCanvas = (canvas) => { + const box = canvas.getBoundingClientRect(); + const ratio = Math.min(window.devicePixelRatio || 1, 2); + canvas.width = Math.max(1, Math.round(box.width * ratio)); + canvas.height = Math.max(1, Math.round(box.height * ratio)); + const ctx = canvas.getContext("2d"); + ctx.setTransform(ratio, 0, 0, ratio, 0, 0); + return {ctx, w: box.width, h: box.height}; + }; + + const polyline = (ctx, points, color, width, dash = []) => { + if (points.length < 2) { + return; + } + ctx.beginPath(); + ctx.setLineDash(dash); + ctx.strokeStyle = color; + ctx.lineWidth = width; + points.forEach((p, k) => (k === 0 ? ctx.moveTo(p[0], p[1]) : ctx.lineTo(p[0], p[1]))); + ctx.stroke(); + ctx.setLineDash([]); + }; + + const dots = (ctx, points, color, radius, alpha = 1) => { + ctx.globalAlpha = alpha; + ctx.fillStyle = color; + ctx.beginPath(); + for (const p of points) { + ctx.moveTo(p[0] + radius, p[1]); + ctx.arc(p[0], p[1], radius, 0, TAU); + } + ctx.fill(); + ctx.globalAlpha = 1; + }; + + // Orbiting orthographic view of the viewing sphere; the camera sits at its centre looking along +z. + const sphereProjector = (view, w, h) => { + const scale = Math.min(w, h) * 0.4; + const [cy, sy, cp, sp] = [Math.cos(view.yaw), Math.sin(view.yaw), Math.cos(view.pitch), Math.sin(view.pitch)]; + return ([x, y, z]) => { + const rx = cy * x - sy * z; + const rz = sy * x + cy * z; + const ry = cp * y - sp * rz; + const depth = sp * y + cp * rz; + return [w / 2 + rx * scale, h / 2 + ry * scale, depth]; + }; + }; + + const bindOrbit = (canvas, view, redraw, initial) => { + let last = null; + canvas.addEventListener("pointerdown", (event) => { + last = [event.clientX, event.clientY]; + canvas.setPointerCapture(event.pointerId); + }); + canvas.addEventListener("pointermove", (event) => { + if (!last) { + return; + } + view.yaw += (event.clientX - last[0]) * 0.01; + view.pitch = Math.max(-1.5, Math.min(1.5, view.pitch - (event.clientY - last[1]) * 0.01)); + last = [event.clientX, event.clientY]; + redraw(); + }); + for (const name of ["pointerup", "pointercancel"]) { + canvas.addEventListener(name, () => (last = null)); + } + canvas.addEventListener("dblclick", () => { + Object.assign(view, initial); + redraw(); + }); + }; + + const drawSphere = (canvas, view, scene, colors) => { + const {ctx, w, h} = fitCanvas(canvas); + const project = sphereProjector(view, w, h); + // The viewer looks from behind the camera, so smaller depths are nearer; nothing is opaque but the camera. + const segment = (points, color, width) => polyline(ctx, points.map(project), color, width); + const circle = (polar) => Array.from({length: 121}, (_, k) => { + const az = (k * TAU) / 120; + return [Math.sin(polar) * Math.cos(az), Math.sin(polar) * Math.sin(az), Math.cos(polar)]; + }); + for (const polar of [30, 60, 90, 120, 150]) { + segment(circle(polar * DEG), colors.faint, polar === 90 ? 1.2 : 0.7); + } + for (let k = 0; k < 12; k++) { + const az = (k * TAU) / 12; + segment(Array.from({length: 61}, (_, t) => { + const polar = (t * Math.PI) / 60; + return [Math.sin(polar) * Math.cos(az), Math.sin(polar) * Math.sin(az), Math.cos(polar)]; + }), colors.faint, 0.7); + } + segment(scene.border, colors.camera, 2); + const radius = scene.dotRadius; + dots(ctx, scene.rays.filter((r) => !r.valid).map((r) => project(r.dir)), colors.muted, radius, 0.5); + dots(ctx, scene.rays.filter((r) => r.valid).map((r) => project(r.dir)), colors.accent, radius, 0.7); + for (const line of scene.lines) { + segment(line, colors.accent, 0.8); + } + segment(scene.retinaEdge, colors.accent, 1.6); + const gaze = project(scene.gaze); + dots(ctx, [gaze], colors.surface, 4.5); + ctx.beginPath(); + ctx.arc(gaze[0], gaze[1], 4.5, 0, TAU); + ctx.strokeStyle = colors.accent; + ctx.lineWidth = 2; + ctx.stroke(); + // Camera housing at the centre. + const body = [[-0.09, -0.06, -0.22], [0.09, -0.06, -0.22], [0.09, 0.06, -0.22], [-0.09, 0.06, -0.22], + [-0.09, -0.06, -0.06], [0.09, -0.06, -0.06], [0.09, 0.06, -0.06], [-0.09, 0.06, -0.06]]; + const faces = [[0, 1, 2, 3], [4, 5, 6, 7], [0, 1, 5, 4], [1, 2, 6, 5], [2, 3, 7, 6], [3, 0, 4, 7]] + .map((face) => face.map((k) => project(body[k]))) + .sort((a, b) => b.reduce((s, p) => s + p[2], 0) - a.reduce((s, p) => s + p[2], 0)); + for (const face of faces) { + ctx.beginPath(); + face.forEach((p, k) => (k === 0 ? ctx.moveTo(p[0], p[1]) : ctx.lineTo(p[0], p[1]))); + ctx.closePath(); + ctx.fillStyle = colors.body; + ctx.fill(); + ctx.strokeStyle = colors.faint; + ctx.lineWidth = 0.6; + ctx.stroke(); + } + }; + + // -- Sampling viewer --------------------------------------------------------------------------------------------- + + const control = (label, input, output) => { + const wrapper = document.createElement("label"); + wrapper.className = "fovi-control"; + const name = document.createElement("span"); + name.className = "fovi-control-name"; + name.innerHTML = label; + wrapper.append(name, input); + if (output) { + wrapper.append(output); + } + return wrapper; + }; + + const slider = (min, max, step, value) => { + const input = document.createElement("input"); + Object.assign(input, {type: "range", min, max, step, value}); + return input; + }; + + const select = (options, value) => { + const input = document.createElement("select"); + for (const [key, text] of options) { + input.append(new Option(text, key)); + } + input.value = value; + return input; + }; + + const readout = () => { + const output = document.createElement("output"); + output.className = "fovi-control-value"; + return output; + }; + + const formatA = (a) => (a >= 100 ? a.toFixed(0) : a >= 10 ? a.toFixed(1) : a >= 1 ? a.toFixed(2) : a.toFixed(3)); + + const initSamplingViewer = (root) => { + const defaults = {style: "warped_cartesian_as_grid", logA: Math.log10(0.591), res: 32, tilt: 0, pan: 0}; + const state = {...defaults}; + const inputs = { + style: select([["warped_cartesian_as_grid", "warped_cartesian_as_grid"], ["isotropic", "isotropic"]], state.style), + logA: slider(-2, 3, 0.01, state.logA), + res: slider(8, 128, 1, state.res), + tilt: slider(-60, 60, 1, state.tilt), + pan: slider(-60, 60, 1, state.pan), + }; + const outputs = {logA: readout(), res: readout(), tilt: readout(), pan: readout()}; + const controls = document.createElement("div"); + controls.className = "fovi-controls"; + controls.append( + control("foveated_style", inputs.style), + control("cmf_a_deg", inputs.logA, outputs.logA), + control("foveated_res", inputs.res, outputs.res), + control("Gaze tilt", inputs.tilt, outputs.tilt), + control("Gaze pan", inputs.pan, outputs.pan), + ); + const reset = document.createElement("button"); + reset.type = "button"; + reset.className = "fovi-reset"; + reset.textContent = "Reset"; + controls.append(reset); + const summary = document.createElement("p"); + summary.className = "fovi-summary"; + summary.setAttribute("aria-live", "polite"); + const panels = document.createElement("div"); + panels.className = "fovi-panels fovi-panels-stacked"; + const initialView = {yaw: -0.6, pitch: 0.35}; + const cameras = Object.entries(cameraModels).map(([key, model]) => { + const panel = document.createElement("figure"); + panel.className = "fovi-panel"; + const title = document.createElement("figcaption"); + title.textContent = model.label; + const sphere = document.createElement("canvas"); + sphere.className = "fovi-canvas fovi-sphere"; + sphere.setAttribute("aria-label", `${model.label}: the retina's rays on the viewing sphere. Drag to rotate; double-click to reset.`); + const image = document.createElement("canvas"); + image.className = "fovi-canvas fovi-image"; + image.setAttribute("aria-label", `${model.label}: where the retina's samples land in the camera image.`); + const labels = document.createElement("div"); + labels.className = "fovi-panel-labels"; + labels.innerHTML = "Viewing sphere (drag to rotate)Camera image"; + const views = document.createElement("div"); + views.className = "fovi-views"; + views.append(sphere, image); + const note = document.createElement("p"); + note.className = "fovi-panel-note"; + // Each camera has its own field of view; the retina spans it. + const fovInput = slider(model.fov.min, model.fov.max, 1, model.fov.initial); + const fovOutput = readout(); + const fovControl = control("Field of view", fovInput, fovOutput); + fovControl.classList.add("fovi-panel-control"); + panel.append(title, fovControl, views, labels, note); + panels.append(panel); + const view = {...initialView}; + const camera = {key, model, sphere, image, note, view, fov: model.fov.initial, fovInput, fovOutput}; + fovInput.addEventListener("input", () => { + camera.fov = Number(fovInput.value); + sync(); + }); + return camera; + }); + const legend = document.createElement("p"); + legend.className = "fovi-legend"; + legend.innerHTML = 'retinal sample' + + 'outside the camera image (masked with mask_to_sensor_fov)' + + 'camera image border'; + root.append(controls, summary, panels, legend); + + const samplesCache = new Map(); + const samplesFor = (fov) => { + const a = Math.pow(10, state.logA); + const key = `${state.style}/${a}/${state.res}/${fov}`; + if (samplesCache.has(key)) { + return samplesCache.get(key); + } + let samples; + let description; + let resolution = state.res; + if (state.style === "isotropic") { + resolution = matchedIsotropicRes(fov, a, state.res * state.res); + samples = isotropicSamples(fov, a, resolution); + description = `${samples.length.toLocaleString("en-US")} samples on ${resolution} rings, published as (num_envs, ${samples.length}, 1, C)`; + } else { + samples = warpedGrid(fov, a, state.res); + const valid = samples.filter((s) => s.valid).length; + description = `${state.res} × ${state.res} grid, ${valid.toLocaleString("en-US")} samples inside the circular field, published as (num_envs, ${state.res}, ${state.res}, C)`; + } + const [centre, edge] = spacing(state.style, fov, a, resolution); + const entry = {samples: samples.filter((s) => s.valid), all: samples, description, centre, edge}; + samplesCache.set(key, entry); + if (samplesCache.size > 4) { + samplesCache.delete(samplesCache.keys().next().value); // keep the recent settings of both cameras + } + return entry; + }; + + // The retina's rays, outline and warped-grid lattice lines (every few rows and columns) for a field of view. + const retinaFor = (fov, rotation) => { + const data = samplesFor(fov); + const rays = data.samples.map((s) => rotate(rotation, ray(s.s, fov))); + const edge = Array.from({length: 181}, (_, k) => rotate(rotation, ray([Math.cos((k * TAU) / 180), Math.sin((k * TAU) / 180)], fov))); + const lines = []; + if (state.style !== "isotropic") { + const every = Math.max(1, Math.round(state.res / 16)); + const index = new Map(data.all.map((s) => [s.i * state.res + s.j, s])); + for (let fixed = Math.floor(every / 2); fixed < state.res; fixed += every) { + for (const transpose of [false, true]) { + let run = []; + for (let moving = 0; moving < state.res; moving++) { + const s = index.get(transpose ? moving * state.res + fixed : fixed * state.res + moving); + if (s && s.valid) { + run.push(rotate(rotation, ray(s.s, fov))); + } else if (run.length) { + lines.push(run); + run = []; + } + } + if (run.length) { + lines.push(run); + } + } + } + } + return {data, rays, edge, lines}; + }; + + const redraw = () => { + const colors = palette(root); + const rotation = gazeRotation(state.tilt, state.pan); + const gaze = rotate(rotation, [0, 0, 1]); + summary.textContent = "Each camera's retina spans that camera's field of view; move its slider to compare fields."; + for (const camera of cameras) { + const {data, rays, edge, lines} = retinaFor(camera.fov, rotation); + const count = rays.length; + const dotRadius = Math.max(0.6, Math.min(2.4, 70 / Math.sqrt(count))); + const f = camera.model.focal(camera.fov); + const projected = rays.map((d) => camera.model.project(d, f)); + const valid = projected.map(inImage); + const inside = valid.filter(Boolean).length; + drawSphere(camera.sphere, camera.view, { + rays: rays.map((dir, k) => ({dir, valid: valid[k]})), + border: imageBorder(camera.model, f), + lines, + retinaEdge: edge, + gaze, + dotRadius, + }, colors); + drawImagePlane(camera.image, projected, valid, edge.map((d) => camera.model.project(d, f)), camera.model.project(gaze, f), dotRadius, colors); + camera.note.innerHTML = `${data.description}. Sample spacing: ${data.centre.toPrecision(2)}° at the fixation, ` + + `${data.edge.toPrecision(2)}° at the edge of the ${camera.fov}° field. ` + + `${inside.toLocaleString("en-US")} of ${count.toLocaleString("en-US")} samples inside the image (${((100 * inside) / count).toFixed(0)}%).`; + } + }; + + const drawImagePlane = (canvas, projected, valid, edge, gaze, radius, colors) => { + const {ctx, w, h} = fitCanvas(canvas); + const margin = 0.18; + const scale = Math.min(w, h) / (SIDE * (1 + 2 * margin)); + const ox = (w - SIDE * scale) / 2; + const oy = (h - SIDE * scale) / 2; + const map = (p) => [ox + p[0] * scale, oy + p[1] * scale]; + ctx.fillStyle = colors.surface; + ctx.fillRect(ox, oy, SIDE * scale, SIDE * scale); + ctx.strokeStyle = colors.camera; + ctx.lineWidth = 2; + ctx.strokeRect(ox, oy, SIDE * scale, SIDE * scale); + polyline(ctx, [map([SIDE / 2, 0]), map([SIDE / 2, SIDE])], colors.faint, 0.7); + polyline(ctx, [map([0, SIDE / 2]), map([SIDE, SIDE / 2])], colors.faint, 0.7); + const visible = (p) => p !== null && p[0] > -SIDE && p[0] < 2 * SIDE && p[1] > -SIDE && p[1] < 2 * SIDE; + ctx.save(); + ctx.beginPath(); + ctx.rect(0, 0, w, h); + ctx.clip(); + dots(ctx, projected.filter((p, k) => !valid[k] && visible(p)).map(map), colors.muted, radius, 0.5); + dots(ctx, projected.filter((p, k) => valid[k]).map(map), colors.accent, radius, 0.75); + const edgeRuns = []; + let run = []; + for (const p of edge) { + if (visible(p)) { + run.push(map(p)); + } else if (run.length) { + edgeRuns.push(run); + run = []; + } + } + edgeRuns.push(run); + for (const r of edgeRuns) { + polyline(ctx, r, colors.accent, 1.4); + } + if (gaze && visible(gaze)) { + const g = map(gaze); + ctx.beginPath(); + ctx.arc(g[0], g[1], 4.5, 0, TAU); + ctx.fillStyle = colors.surface; + ctx.fill(); + ctx.strokeStyle = colors.accent; + ctx.lineWidth = 2; + ctx.stroke(); + } + ctx.restore(); + }; + + const sync = () => { + const a = Math.pow(10, state.logA); + outputs.logA.textContent = `${formatA(a)}°`; + outputs.res.textContent = state.res; + for (const camera of cameras) { + camera.fovOutput.textContent = `${camera.fov}°`; + } + outputs.tilt.textContent = `${state.tilt}°`; + outputs.pan.textContent = `${state.pan}°`; + redraw(); + }; + for (const [name, input] of Object.entries(inputs)) { + input.addEventListener("input", () => { + state[name] = name === "style" ? input.value : Number(input.value); + sync(); + }); + } + reset.addEventListener("click", () => { + Object.assign(state, defaults); + for (const [name, input] of Object.entries(inputs)) { + input.value = state[name]; + } + for (const camera of cameras) { + Object.assign(camera.view, initialView); + camera.fov = camera.model.fov.initial; + camera.fovInput.value = camera.fov; + } + sync(); + }); + for (const camera of cameras) { + bindOrbit(camera.sphere, camera.view, redraw, initialView); + } + new ResizeObserver(() => redraw()).observe(panels); + sync(); + }; + + // -- Pooling viewer ---------------------------------------------------------------------------------------------- + + // Upright layout of a canonical warped grid (fovi's sampling_as_grid): row = res - 1 - j, column = i. + // Pooling windows follow fovi's GridPoolingLayer: stride = resolution multiple, SAME-style padding. + const poolingWindow = (lowRes, mult, side, row, col) => { + const stride = mult; + const before = Math.floor((side - stride) / 2); + const cells = []; + for (let dr = 0; dr < side; dr++) { + for (let dc = 0; dc < side; dc++) { + const r = row * stride - before + dr; + const c = col * stride - before + dc; + if (r >= 0 && r < lowRes * mult && c >= 0 && c < lowRes * mult) { + cells.push([r, c]); + } + } + } + return cells; + }; + + const initPoolingViewer = (root) => { + const FOV = Number(root.dataset.fov || 90); + const A = Number(root.dataset.cmfA || 2); + const LOW = Number(root.dataset.res || 16); + const defaults = {style: "warped_cartesian_as_grid", mult: 2, side: 2, row: 8, col: 11, k: 4, space: "geodesic", unit: 120}; + const state = {...defaults}; + const inputs = { + style: select([["warped_cartesian_as_grid", "warped_cartesian_as_grid"], ["isotropic", "isotropic"]], state.style), + mult: select([["2", "2"], ["3", "3"], ["4", "4"]], String(state.mult)), + side: slider(1, 9, 1, state.side), + row: slider(0, LOW - 1, 1, state.row), + col: slider(0, LOW - 1, 1, state.col), + k: slider(1, 32, 1, state.k), + space: select([["geodesic", "geodesic (default)"], ["visual", "visual field (False)"]], state.space), + unit: slider(0, 1, 1, state.unit), + }; + const outputs = {side: readout(), row: readout(), col: readout(), k: readout(), unit: readout()}; + const controls = document.createElement("div"); + controls.className = "fovi-controls"; + const gridControls = [ + control("Window side (pool_k = side²)", inputs.side, outputs.side), + control("Pooled sample row", inputs.row, outputs.row), + control("Pooled sample column", inputs.col, outputs.col), + ]; + const isotropicControls = [ + control("pool_k (neighbours)", inputs.k, outputs.k), + control("pool_sample_cortex", inputs.space), + control("Pooled sample", inputs.unit, outputs.unit), + ]; + controls.append(control("foveated_style", inputs.style), control("pool_res_mult", inputs.mult), ...gridControls, ...isotropicControls); + const reset = document.createElement("button"); + reset.type = "button"; + reset.className = "fovi-reset"; + reset.textContent = "Reset"; + controls.append(reset); + const summary = document.createElement("p"); + summary.className = "fovi-summary"; + summary.setAttribute("aria-live", "polite"); + const panels = document.createElement("div"); + panels.className = "fovi-panels fovi-panels-three"; + const makePanel = (title, label) => { + const panel = document.createElement("figure"); + panel.className = "fovi-panel"; + const caption = document.createElement("figcaption"); + caption.textContent = title; + const canvas = document.createElement("canvas"); + canvas.className = "fovi-canvas fovi-square"; + canvas.setAttribute("aria-label", label); + panel.append(caption, canvas); + panels.append(panel); + return {panel, canvas}; + }; + const nativeView = makePanel("Published grid (click a sample)", "The pooled grid and its photoreceptor grid in the published image layout. Click a pooled sample to select it."); + const fieldView = makePanel("Visual field (click a sample)", "Photoreceptor and pooled samples by visual angle. Click a pooled sample to select it."); + const zoomView = makePanel("Around the selected sample", "The selected pooled sample's neighbourhood, enlarged."); + const legend = document.createElement("p"); + legend.className = "fovi-legend"; + legend.innerHTML = 'photoreceptor' + + 'pooled into the selected sample' + + 'pooled sample' + + `Fixed: ${FOV}° field, cmf_a_deg=${A}, foveated_res=${LOW}.`; + root.append(controls, summary, panels, legend); + + // fovi's pooling neighbourhoods for the isotropic retina, exported with the camera's own helpers. + let isotropicTables = null; + if (TABLES_URL) { + fetch(TABLES_URL) + .then((response) => (response.ok ? response.json() : Promise.reject(new Error(response.statusText)))) + .then((data) => { + if (data.fov !== FOV || data.cmfA !== A || data.res !== LOW) { + throw new Error("the exported tables describe another retina"); + } + isotropicTables = data; + if (state.style === "isotropic") { + sync(); + } + }) + .catch((error) => { + isotropicTables = {error: String(error.message || error)}; + if (state.style === "isotropic") { + sync(); + } + }); + } + + // Grid retina: samples keyed by their upright (row, column) in the published image. + const gridLayout = (res) => { + const samples = warpedGrid(FOV, A, res).map((s) => ({...s, row: res - 1 - s.j, col: s.i})); + return {samples, at: new Map(samples.map((s) => [`${s.row},${s.col}`, s]))}; + }; + const layouts = new Map(); + const layoutFor = () => { + const key = `${state.style}/${state.mult}`; + if (layouts.has(key)) { + return layouts.get(key); + } + let layout; + if (state.style === "isotropic") { + const rings = matchedIsotropicRes(FOV, A, LOW * LOW); + const highRings = Math.round(state.mult * rings); + layout = { + rings, + highRings, + low: isotropicSamples(FOV, A, rings), + high: isotropicSamples(FOV, A, highRings), + }; + } else { + layout = {low: gridLayout(LOW), high: gridLayout(LOW * state.mult)}; + } + layouts.set(key, layout); + return layout; + }; + + // The selected pooled sample, the photoreceptors it pools, and a description, for the current style. + const selection = (layout) => { + if (state.style !== "isotropic") { + const unit = layout.low.at.get(`${state.row},${state.col}`); + const cells = poolingWindow(LOW, state.mult, state.side, state.row, state.col); + const members = cells.map(([r, c]) => layout.high.at.get(`${r},${c}`)).filter((s) => s.valid); + const k = state.side * state.side; + const text = `pool_k=${k} (window side ${state.side}, stride ${state.mult}); the photoreceptor grid is ` + + `${LOW * state.mult} × ${LOW * state.mult}` + + (k < state.mult * state.mult ? "; a window smaller than the stride skips photoreceptors." : "."); + return {unit, members, valid: unit.valid && members.length > 0, text, label: `(${state.row}, ${state.col})`}; + } + const unit = layout.low[state.unit]; + const table = isotropicTable(layout); + if (!table) { + return {unit, members: [], valid: false, pending: true, text: "", label: `${state.unit}`}; + } + const members = table.slice(0, state.k).filter((index) => index >= 0).map((index) => layout.high[index]); + const text = `pool_k=${state.k} nearest photoreceptors ${state.space === "geodesic" ? "along the cortex" : "in the visual field"}; ` + + `${layout.high.length.toLocaleString("en-US")} photoreceptors on ${layout.highRings} rings pool into ${layout.low.length} samples on ${layout.rings} rings` + + ` (default pool_k ${Math.round(layout.high.length / layout.low.length)}).`; + return {unit, members, valid: members.length > 0, text, label: `${state.unit}`}; + }; + + // The selected sample's neighbours, nearest first, from fovi's table for the chosen space. + const isotropicTable = (layout) => { + const entry = isotropicTables && !isotropicTables.error && isotropicTables.mult[String(state.mult)]; + if (!entry) { + return null; + } + if (entry.count !== layout.high.length || isotropicTables.count !== layout.low.length) { + isotropicTables = {error: "the exported tables do not match this retina"}; + return null; + } + return entry[state.space].slice(state.unit * entry.kMax, (state.unit + 1) * entry.kMax); + }; + + const fieldTransform = (w, h, centre, radius) => { + const scale = (Math.min(w, h) / 2 - 8) / radius; + return (s) => [w / 2 + (s[0] - centre[0]) * scale, h / 2 - (s[1] - centre[1]) * scale]; + }; + + const redraw = () => { + const colors = palette(root); + const layout = layoutFor(); + const isotropic = state.style === "isotropic"; + const lowSamples = isotropic ? layout.low : layout.low.samples; + const highSamples = isotropic ? layout.high : layout.high.samples; + const chosen = selection(layout); + const members = new Set(chosen.members); + const {unit} = chosen; + nativeView.panel.hidden = isotropic; + // Published-grid view: photoreceptor cells, pooled cell borders, and the window. + if (!isotropic) { + const highRes = LOW * state.mult; + const {ctx, w, h} = fitCanvas(nativeView.canvas); + const size = Math.min(w, h) - 8; + const ox = (w - size) / 2; + const oy = (h - size) / 2; + const cell = size / highRes; + const windowCells = new Set(poolingWindow(LOW, state.mult, state.side, state.row, state.col).map(([r, c]) => `${r},${c}`)); + for (const s of highSamples) { + const member = windowCells.has(`${s.row},${s.col}`); + ctx.fillStyle = member ? colors.highlight : s.valid ? colors.faint : colors.surface; + ctx.globalAlpha = member && !s.valid ? 0.35 : 1; + ctx.fillRect(ox + s.col * cell + 0.5, oy + s.row * cell + 0.5, Math.max(cell - 1, 0.5), Math.max(cell - 1, 0.5)); + } + ctx.globalAlpha = 1; + for (let k = 0; k <= LOW; k++) { + polyline(ctx, [[ox + (k * size) / LOW, oy], [ox + (k * size) / LOW, oy + size]], colors.muted, 0.6); + polyline(ctx, [[ox, oy + (k * size) / LOW], [ox + size, oy + (k * size) / LOW]], colors.muted, 0.6); + } + ctx.strokeStyle = colors.accent; + ctx.lineWidth = 2.4; + ctx.strokeRect(ox + (state.col * size) / LOW, oy + (state.row * size) / LOW, size / LOW, size / LOW); + nativeView.canvas.onclick = (event) => { + const box = nativeView.canvas.getBoundingClientRect(); + const col = Math.floor(((event.clientX - box.left - ox) / size) * LOW); + const row = Math.floor(((event.clientY - box.top - oy) / size) * LOW); + if (row >= 0 && row < LOW && col >= 0 && col < LOW) { + choose({row, col}); + } + }; + } + const zoomRegion = () => { + const points = chosen.members.map((s) => s.s); + points.push(unit.s); + const xs = points.map((p) => p[0]); + const ys = points.map((p) => p[1]); + const centre = [(Math.min(...xs) + Math.max(...xs)) / 2, (Math.min(...ys) + Math.max(...ys)) / 2]; + const extent = Math.max(Math.max(...xs) - Math.min(...xs), Math.max(...ys) - Math.min(...ys), 0.002); + return [centre, extent * 1.1]; + }; + // Visual-field views: the whole retina, and the selected sample's neighbourhood. + const drawField = (canvas, centre, radius, showZoomBox) => { + const {ctx, w, h} = fitCanvas(canvas); + const map = fieldTransform(w, h, centre, radius); + const scale = (Math.min(w, h) / 2 - 8) / radius; + const dotHigh = Math.max(0.7, Math.min(3, scale * 0.004 * Math.sqrt(1024 / highSamples.length) * 6)); + const highPoints = highSamples.filter((s) => s.valid); + dots(ctx, highPoints.filter((s) => !members.has(s)).map((s) => map(s.s)), colors.muted, dotHigh, 0.55); + dots(ctx, highPoints.filter((s) => members.has(s)).map((s) => map(s.s)), colors.highlight, dotHigh * 1.4, 1); + dots(ctx, lowSamples.filter((s) => s.valid).map((s) => map(s.s)), colors.accent, dotHigh * 1.2, 0.9); + const u = map(unit.s); + ctx.beginPath(); + ctx.arc(u[0], u[1], dotHigh * 1.2 + 4, 0, TAU); + ctx.strokeStyle = colors.accent; + ctx.lineWidth = 2; + ctx.stroke(); + polyline(ctx, Array.from({length: 181}, (_, k) => map([Math.cos((k * TAU) / 180), Math.sin((k * TAU) / 180)])), colors.camera, 1.2); + if (showZoomBox) { + const [zc, zr] = zoomRegion(); + const corner = map([zc[0] - zr, zc[1] + zr]); + ctx.strokeStyle = colors.ink; + ctx.setLineDash([3, 3]); + ctx.lineWidth = 1; + ctx.strokeRect(corner[0], corner[1], 2 * zr * scale, 2 * zr * scale); + ctx.setLineDash([]); + } + return map; + }; + const map = drawField(fieldView.canvas, [0, 0], 1, true); + fieldView.canvas.onclick = (event) => { + const box = fieldView.canvas.getBoundingClientRect(); + const x = event.clientX - box.left; + const y = event.clientY - box.top; + let best = null; + lowSamples.forEach((s, index) => { + if (!s.valid) { + return; + } + const p = map(s.s); + const d = Math.hypot(p[0] - x, p[1] - y); + if (!best || d < best.d) { + best = {d, s, index}; + } + }); + if (best) { + choose(isotropic ? {unit: best.index} : {row: best.s.row, col: best.s.col}); + } + }; + const [zc, zr] = zoomRegion(); + drawField(zoomView.canvas, zc, zr, false); + const ecc = Math.hypot(unit.s[0], unit.s[1]) * (FOV / 2); + const span = chosen.members.length + ? Math.max(...chosen.members.map((s) => Math.hypot(s.s[0] - unit.s[0], s.s[1] - unit.s[1]))) * (FOV / 2) * 2 + : 0; + if (chosen.pending) { + const reason = isotropicTables && isotropicTables.error ? `could not be loaded (${isotropicTables.error})` : "are loading"; + summary.innerHTML = `fovi's pooling neighbourhoods ${reason}.`; + return; + } + summary.innerHTML = `Pooled sample ${chosen.label} at ${ecc.toFixed(2)}° eccentricity` + + (chosen.valid + ? ` averages ${chosen.members.length} photoreceptors spanning about ${span.toPrecision(2)}°. ` + : " lies outside the retina, so the camera publishes zero there. ") + + chosen.text; + }; + + const choose = (selected) => { + Object.assign(state, selected); + for (const name of Object.keys(selected)) { + inputs[name].value = state[name]; + } + sync(); + }; + + const sync = () => { + const isotropic = state.style === "isotropic"; + for (const element of gridControls) { + element.hidden = isotropic; + } + for (const element of isotropicControls) { + element.hidden = !isotropic; + } + if (isotropic) { + const layout = layoutFor(); + inputs.unit.max = layout.low.length - 1; + state.unit = Math.min(state.unit, layout.low.length - 1); + inputs.unit.value = state.unit; + inputs.k.max = 2 * state.mult * state.mult; + state.k = Math.min(state.k, Number(inputs.k.max)); + inputs.k.value = state.k; + } + outputs.side.textContent = `${state.side} (pool_k=${state.side * state.side})`; + outputs.row.textContent = state.row; + outputs.col.textContent = state.col; + outputs.k.textContent = state.k; + outputs.unit.textContent = state.unit; + redraw(); + }; + inputs.style.addEventListener("input", () => { + state.style = inputs.style.value; + sync(); + }); + inputs.space.addEventListener("input", () => { + state.space = inputs.space.value; + sync(); + }); + inputs.mult.addEventListener("input", () => { + // Keep the default neighbourhood when it was in use: pool_res_mult squared photoreceptors. + const defaultSide = state.side === state.mult; + const defaultK = state.k === state.mult * state.mult; + state.mult = Number(inputs.mult.value); + if (defaultSide) { + state.side = state.mult; + inputs.side.value = state.side; + } + if (defaultK) { + state.k = state.mult * state.mult; + } + sync(); + }); + for (const name of ["side", "row", "col", "k", "unit"]) { + inputs[name].addEventListener("input", () => { + state[name] = Number(inputs[name].value); + sync(); + }); + } + reset.addEventListener("click", () => { + Object.assign(state, defaults); + for (const [name, input] of Object.entries(inputs)) { + input.value = state[name]; + } + sync(); + }); + new ResizeObserver(() => redraw()).observe(panels); + sync(); + }; + + const initialize = () => { + document.querySelectorAll("[data-fovi-sampling-viewer]").forEach(initSamplingViewer); + document.querySelectorAll("[data-fovi-pooling-viewer]").forEach(initPoolingViewer); + }; + + // Exposed for the documentation's geometry checks. + window.FoviViewerGeometry = {warpedGrid, isotropicRings, matchedIsotropicRes, isotropicSamples, ray, gazeRotation, poolingWindow}; + + if (typeof document !== "undefined") { + if (document.readyState === "loading") { + document.addEventListener("DOMContentLoaded", initialize); + } else { + initialize(); + } + } +})(); diff --git a/docs/source/_static/overview/sensors/foveated_camera_active_gaze.jpg b/docs/source/_static/overview/sensors/foveated_camera_active_gaze.jpg new file mode 100644 index 0000000000000000000000000000000000000000..40d6786c3d163c6288466ef92c1c2a22eededbca GIT binary patch literal 115472 zcmb@t1y~$SmoPd=a3{D0w_w5DJxFjTxVt+9OK>LycZcBa?yiFbcXtTn4kUT^`*!!= zXYYS+^~`j4$+0?BN4n?N{I4GX6e%%DF#s4C000I$0Kb3$VE`lqsDMBJLPA2mf`WsB zdi4ql0R|Qt4haDn2?+ra5g8Q|9T^1!6%i2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U z<<?!ZH-PXW@Y!)HGFiyC>fK8p zJ#Feaj$bHOW(Gr?HX=y4G58&+ju_q~^yPuwe+k|P0Dv$`fiKn)f01o?JzJD)XiELk zx(bLel;5(T>I$m`oG5svL@WI2dsBBG2=uU9Q)L9j2?;QDKy@SDdPSdOY~#Ch)NrGg zn-fU>NQwK4sTmUEDbH_WUbu90mhPNI_N8<1wb~o%r&gfi8}(358Vt<`v>yu>3DlO{ zO;v(LAd|zX3+eaE%|6ldsKt~l<95D);U6W+M3!>op*9mz*svouP!+~B!g@9NgH59R z^3B7Le=^-Z705s1rV7GO`Bb!|Tnv2?am_}F9~*mce>Gypx(Q=%rgdGXw*Kn_8xtmT zf$?@ee_ZwWCWisbyP`ZLys%+0Y0H2o72M<;bXPOq@BD9oO5r{lo%u$+^E-FtB)F>1{C{6^;T^q z!iU+sHQyIRj_kk#`Rx=A9drP~WJCKR-{2(@~$-eN}KSFpI_J!bhq#JQU*G;i8 z(FQjUjOfcg8u?hC|D^=jHj49T$(n!tnYU!CPt5_GidLIfviVy<`p9)vxQc68tfL|? l)5ELR)Zb4(bW8mFZ|9`{>FX}2HxBB5!{I@vix2-j_aAAP$(H~C literal 0 HcmV?d00001 diff --git a/docs/source/_static/overview/sensors/foveated_camera_pooling.jpg b/docs/source/_static/overview/sensors/foveated_camera_pooling.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d5c0ac8ef1bd3e3899eda804ffdf345a00b62c27 GIT binary patch literal 68546 zcmbSy1ymi&((c9y?k)-L?gY2swt?UwxVvjYfZ)O1-GjRXcXti$?*2AO&b{|P|6OmL z_hxGK>^)syb=6Eyb#?X3^X&6a0E(2jq&NT!3;+NF?SSV6fCvB*0JAW%S-wzmBR{{KDt(MTsHUX{u7Zi>Fsj~UL- z3a%gG$8y+f%rV?6oLDQb%*TjLVU(u{l}W4TuFU>1SaC6)S8}iiBk(Z=E9Y9>nO(d5 z+g(Y5pke5x#*)gHMz4wV(d)G7AO28drF2+`icdjZ6^<%QqJ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_1bn@7C@ib13Zaj|EBLluZ1^Y!dD;Vy%~9VF>Ul z-Al}2@7p-sYaqfiQP29_zh1M8PkD*F9!@fOZqg3niUgz`BV8l!-L&m^`(I zYJJQ8g24k)QkA{OYMN)rr+_)-c5io({2_q>46+|R{nT2`>8V%IfZX1 z07XwxB0GoS*!|wNn!g1eN>8ZJ2+)IAXUt&g0~~^>Dwy%OR}dvdj0-$iRVs9VFkXDF zJWq>PfSEYBB|oh5pFOn&FwEOLpyEe1DAUpij< zMYFL*BzYMqWiPF;^L&{zGgWPElWfvgB1^VO6D|i`__ library maps each cell of an upright square grid to a viewing ray. -Moving the gaze rotates these rays relative to the physical camera's mount. +The `fovi `__ library places the viewing rays. Moving the gaze rotates them +relative to the physical camera's mount. .. figure:: ../../_static/overview/sensors/foveated_camera_overview.jpg - :alt: The foveated ray grid and the published images at two fixations. + :alt: The foveated ray grid and its published images at two fixations. - Each pair shows the retinal rays on the viewing sphere and the image published at that fixation. + Each pair shows the retinal rays on the viewing sphere and the image at that fixation. Sampling -------- -At an angular distance :math:`r` from fixation, the cortical magnification is :math:`M(r)=1/(r+a)`. -For a normalized grid radius :math:`\rho` and retinal half-field angle :math:`h`, the ray's angular distance is +The cortical magnification at angular distance :math:`r` from fixation is :math:`M(r) = 1/(r+a)`. +On the default warped Cartesian grid, a lattice point at normalized radius :math:`\rho` samples the eccentricity .. math:: - r(\rho) = a\left[\left(1 + h/a\right)^\rho - 1\right]. + r(\rho) = a\left[\left(1 + h/a\right)^\rho - 1\right], -Smaller :attr:`~sensors.FoveatedCameraCfg.cmf_a_deg` concentrates more samples near fixation. A large value gives -nearly uniform radial angular spacing on the same grid. For a grid of side -:attr:`~sensors.FoveatedCameraCfg.foveated_res`, the camera publishes ``(num_envs, N, N, channels)``. -Cells outside the circular retinal footprint are zero. +where :math:`h` is half the retinal field of view. Smaller :attr:`~sensors.FoveatedCameraCfg.cmf_a_deg` +concentrates more samples near fixation. A large value approaches uniform radial spacing on the same grid. -Camera setup and gaze ---------------------- +The default grid publishes an upright ``(num_envs, N, N, channels)`` image with +``N = foveated_res``. Its circular footprint zeros the unused corners. An isotropic retina places samples +on rings and publishes ``(num_envs, num_samples, 1, channels)``; sample sets are experimental on RTX. +The camera options describe alternate footprints and sampling shells. -Install the ``fovi`` extra to run the camera demo. +.. raw:: html + +

+ +Camera and gaze +--------------- + +Run the demo with the ``fovi`` extra. .. code-block:: bash uv run --extra fovi isaaclab demo foveated-camera -Add a :class:`~sensors.FoveatedCameraCfg` to a scene like any camera configuration. Newton Warp and OptiX render -the sample rays directly. Isaac RTX and OVRTX use lens lookup textures. +Add :class:`~sensors.FoveatedCameraCfg` to a scene like any other camera. Newton Warp and OptiX render the +retinal rays directly. Isaac RTX and OVRTX use lens lookup textures. + +The retinal field of view defaults to the angle across the short side of the physical image. The camera +uses ideal pinhole optics or supported OpenCV distortion from ``spawn``. Supply +:attr:`~sensors.FoveatedCameraCfg.camera_model` for explicit calibration or an existing camera prim. +Use :attr:`~sensors.FoveatedCameraCfg.retinal_window_fraction` to shrink this window and +:attr:`~sensors.FoveatedCameraCfg.image_rotation_deg` to compensate for mount roll. + +Call ``camera.set_gaze_angles(angles)`` with shape ``(num_envs, 2)`` in tilt, pan order and in degrees. +Positive tilt looks up and positive pan looks left. :meth:`~sensors.FoveatedCamera.get_world_poses` +reports the mount pose. Enable :attr:`~sensors.FoveatedCameraCfg.mask_to_sensor_fov` to zero rays that fall +outside the physical image as the gaze moves. + +Pooling +------- + +Enable :attr:`~sensors.FoveatedCameraCfg.pool_enabled` to render a denser set of rays and pool their values +into the published retina. Grid styles pool windows, while sample sets pool nearest neighbours. +The sensor mask excludes rays outside the physical image from the reduction. Segmentation selects the +modal label in its original dtype. -The retinal field of view defaults to the angle spanned by the short side of the physical camera's image. -The camera reads ideal pinhole optics or supported OpenCV distortion from ``spawn``. Supply -:attr:`~sensors.FoveatedCameraCfg.camera_model` for explicit calibration, including when using an existing -camera prim. The :attr:`~sensors.FoveatedCameraCfg.retinal_window_fraction` setting shrinks the retinal window. +.. raw:: html -Call ``camera.set_gaze_angles(angles)`` with an array shaped ``(num_envs, 2)`` in tilt, pan order and in degrees. -Positive tilt looks up and positive pan looks left. Enable :attr:`~sensors.FoveatedCameraCfg.mask_to_sensor_fov` -to zero rays that land outside the physical image at the current gaze. This mask moves relative to the retinal grid -as the gaze changes. +
-Cartpole example ----------------- +Active gaze Cartpole +-------------------- -``IsaacContrib-Cartpole-Camera-Fovi`` uses a 32 × 32 retina and two bounded gaze actions. The actor observes the camera -image and the gaze state. Use ``presets=depth`` to select depth instead of RGB. +``IsaacContrib-Cartpole-Camera-Fovi`` uses a 32 × 32 retina and two bounded gaze actions. A pole-tip teacher +supervises the gaze-action means during training. The gaze dimensions use fixed exploration noise. +Select ``presets=depth`` for depth images. .. code-block:: bash uv run --extra fovi --extra rsl-rl isaaclab train --rl_library rsl_rl --task IsaacContrib-Cartpole-Camera-Fovi -For other manager-based tasks, use :class:`~mdp.GazeActionCfg` to add the tilt and pan actions and -:func:`~mdp.gaze_state` to observe the angles and angular velocity in units of the retinal field radius. +For other manager-based tasks, use :class:`~mdp.GazeActionCfg` to move gaze, :func:`~mdp.gaze_state` to +observe it, and :class:`~mdp.gaze_teacher_labels` for optional supervision. diff --git a/source/isaaclab_fovi/changelog.d/fovi-rtx-lens-setup.skip b/source/isaaclab_fovi/changelog.d/fovi-rtx-lens-setup.skip new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab_fovi/changelog.d/isaaclab-fovi.added.rst b/source/isaaclab_fovi/changelog.d/isaaclab-fovi.added.rst index afc646183e82..6fe806778a44 100644 --- a/source/isaaclab_fovi/changelog.d/isaaclab-fovi.added.rst +++ b/source/isaaclab_fovi/changelog.d/isaaclab-fovi.added.rst @@ -1,4 +1,7 @@ * Introduced ``isaaclab_fovi`` and the ``fovi`` installation extra, providing :class:`~isaaclab_fovi.sensors.FoveatedCamera`, a foveated camera sensor for the Newton (Warp and OptiX), Isaac RTX and OVRTX renderers whose gaze moves inside a physical camera's field of view. -* Added bounded tilt and pan actions and a gaze state observation in :mod:`isaaclab_fovi.mdp`. +* Added active-gaze manager terms in :mod:`isaaclab_fovi.mdp`: a gaze action with a fixed or tracked camera mount, + a gaze observation, and teacher gaze labels. +* Added modal-label pooling for segmentation outputs, which keeps their native dtype (``pool_int_mode="modal"``, + the only accepted value); ``pool_mode`` pools the other outputs and accepts only fovi's modes. diff --git a/source/isaaclab_fovi/isaaclab_fovi/mdp/__init__.pyi b/source/isaaclab_fovi/isaaclab_fovi/mdp/__init__.pyi index 71c13e7dd674..e78c9a3844e8 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/mdp/__init__.pyi +++ b/source/isaaclab_fovi/isaaclab_fovi/mdp/__init__.pyi @@ -7,7 +7,12 @@ __all__ = [ "GazeAction", "GazeActionCfg", "gaze_state", + "gaze_teacher_labels", ] -from .gaze import GazeAction, gaze_state +from .gaze import ( + GazeAction, + gaze_state, + gaze_teacher_labels, +) from .gaze_cfg import GazeActionCfg diff --git a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py index cc09d371f25c..c51f08edfbdb 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py +++ b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py @@ -3,20 +3,33 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Bounded tilt and pan actions for a foveated camera.""" +"""Active gaze for a foveated camera: a gaze action, its observation, and a teacher's gaze labels. + +Gaze angles are (tilt, pan) [deg] from the physical camera's optical axis: positive tilt looks up and positive pan +looks left, as for :meth:`~isaaclab_fovi.sensors.FoveatedCamera.set_gaze_angles`. The policy moves and observes the +gaze in field radii, half the retina's field of view. Camera-frame directions follow the ROS (OpenCV) convention: +x right, y down, z forward. +""" from __future__ import annotations +import math from typing import TYPE_CHECKING, ClassVar import torch import warp as wp -from isaaclab.managers import ActionTerm +from isaaclab.managers import ActionTerm, ManagerTermBase, ObservationTermCfg, SceneEntityCfg from isaaclab.utils.warp import ProxyArray -from isaaclab.utils.warp.memory import resolve_1d_indices, resolve_ids -from ..sensors.gaze_kernels import record_launch, torch_stream, warp_stream +from ..sensors.gaze_kernels import ( + DEG_TO_RAD, + CameraParams, + project_direction, + project_directions, + record_launch, + warp_stream, +) if TYPE_CHECKING: from isaaclab.envs import ManagerBasedEnv @@ -24,6 +37,119 @@ from ..sensors import FoveatedCamera from .gaze_cfg import GazeActionCfg +RAD_TO_DEG = 180.0 / math.pi + + +@wp.func +def teach( + point: wp.vec3f, + position: wp.vec3f, + mount: wp.quatf, + g: wp.vec2f, + frame: wp.mat33f, + field_radius_deg: wp.float32, + step_size: wp.float32, + gaze_limit: wp.float32, + camera: CameraParams, +) -> wp.vec4f: + """The teacher's action (x, y) toward a point, 1 for a valid target or else 0, and the gaze's error [deg]. + + ``frame`` carries the upright image frame, in which gazes are measured, into the physical camera's frame. + """ + d = wp.normalize(wp.quat_rotate_inv(mount, point - position)) + # The fixation reaches the physical camera at frame * gaze * z, so the gaze looks along frame^T d. + u = wp.transpose(frame) * d + tilt = -wp.atan2(u[1], wp.sqrt(u[0] * u[0] + u[2] * u[2])) * wp.float32(RAD_TO_DEG) + pan = -wp.atan2(u[0], u[2]) * wp.float32(RAD_TO_DEG) + desired = wp.vec2f(tilt, pan) / field_radius_deg + ok = project_direction(d, camera)[2] > 0.5 and wp.length(desired) <= gaze_limit + step = wp.vec2f(0.0, 0.0) + if ok: + step = wp.vec2f( + wp.clamp((desired[0] - g[0]) / step_size, -1.0, 1.0), wp.clamp((desired[1] - g[1]) / step_size, -1.0, 1.0) + ) + g_tilt = g[0] * field_radius_deg * wp.float32(DEG_TO_RAD) + g_pan = g[1] * field_radius_deg * wp.float32(DEG_TO_RAD) + looking = wp.vec3f(-wp.cos(g_tilt) * wp.sin(g_pan), -wp.sin(g_tilt), wp.cos(g_tilt) * wp.cos(g_pan)) + # atan2 stays accurate near perfect alignment, unlike acos of the dot product. + error = wp.atan2(wp.length(wp.cross(looking, u)), wp.dot(looking, u)) * wp.float32(RAD_TO_DEG) + return wp.vec4f(step[0], step[1], wp.where(ok, 1.0, 0.0), error) + + +@wp.kernel(enable_backward=False) +def teacher_labels_kernel( + targets: wp.array(dtype=wp.vec3f), + orientations: wp.array(dtype=wp.quatf), + offset: wp.vec3f, + positions: wp.array(dtype=wp.vec3f), + mounts: wp.array(dtype=wp.quatf), + angles_deg: wp.array(dtype=wp.vec2f), + frame: wp.mat33f, + field_radius_deg: wp.float32, + step_size: wp.float32, + gaze_limit: wp.float32, + camera: CameraParams, + labels: wp.array2d(dtype=wp.float32), + log: wp.array(dtype=wp.float32), +): + """Labels (action x, action y, valid) toward the point ``offset`` fixed to each target's frame; and the mean gaze + error to valid targets [deg] with the fraction of valid targets. + + ``mounts`` holds each camera's mount (ROS convention); ``angles_deg`` the camera's stored gaze angles [deg]. + One block labels every environment and reduces the logs itself, so the launch needs no zeroed accumulators. + """ + _block, lane = wp.tid() + count = targets.shape[0] + error_sum = wp.float32(0.0) + valid_count = wp.float32(0.0) + i = lane + while i < count: + point = targets[i] + wp.quat_rotate(orientations[i], offset) + gaze = angles_deg[i] / field_radius_deg + result = teach(point, positions[i], mounts[i], gaze, frame, field_radius_deg, step_size, gaze_limit, camera) + labels[i, 0] = result[0] + labels[i, 1] = result[1] + labels[i, 2] = result[2] + if result[2] > 0.5: + error_sum += result[3] + valid_count += 1.0 + i += wp.block_dim() + errors = wp.tile_sum(wp.tile(error_sum)) + valid = wp.tile_sum(wp.tile(valid_count)) + if lane == 0: + log[0] = errors[0] / wp.max(valid[0], 1.0) + log[1] = valid[0] / wp.float32(count) + + +def teacher_block_dim(device: torch.device | str) -> int: + """Threads of the one block that runs :func:`teacher_labels_kernel`; Warp runs CPU blocks as one thread.""" + return 1024 if torch.device(device).type == "cuda" else 1 + + +@wp.kernel(enable_backward=False) +def gaze_reset_kernel( + ids: wp.array(dtype=wp.int32), + use_ids: wp.int32, + start: wp.array(dtype=wp.vec2f), + use_start: wp.int32, + field_radius_deg: wp.float32, + angles_deg: wp.array(dtype=wp.vec2f), + state: wp.array(dtype=wp.vec4f), +): + """Put each reset environment's gaze at its start, or on the optical axis, at rest. + + ``state`` holds each gaze and its velocity, in field radii and field radii per second. + """ + k = wp.tid() + i = k + if use_ids != 0: + i = ids[k] + g = wp.vec2f(0.0, 0.0) + if use_start != 0: + g = start[k] + angles_deg[i] = g * field_radius_deg + state[i] = wp.vec4f(g[0], g[1], 0.0, 0.0) + @wp.kernel(enable_backward=False) def gaze_step_kernel( @@ -57,14 +183,25 @@ def gaze_state(env: ManagerBasedEnv, action_name: str = "gaze") -> torch.Tensor: class GazeAction(ActionTerm): - """Move gaze by clipped tilt and pan increments within a disk of permitted angles. + """Moves a foveated camera's gaze by bounded steps in (tilt, pan) order. - Angles and increments are in units of the retina's field radius. Reset returns the gaze to the optical axis. - The camera owns the angles. The action reports the gaze and its angular velocity after the last action or reset. + Actions, the limit and the observed gaze are in field radii. An action of 1 changes a coordinate by + ``step_size``, and the gaze stays within ``gaze_limit`` of the optical axis. The gaze starts each episode on the + optical axis, or anywhere the physical camera sees within the limit when ``random_reset`` is set. Gazes are measured + in the upright image frame, which :attr:`~isaaclab_fovi.sensors.FoveatedCameraCfg.image_rotation_deg` rolls + against a rolled mount. + + With ``mount="fixed"`` the camera keeps the orientation it had when the term was created, and the teacher uses + that mount; turning the camera's mount afterwards raises. With ``mount="tracked"`` the camera may ride a moving + body, for example a robot's head, and the teacher reads each camera's current mount, so software gaze adds to + hardware gaze. + + The camera's stored gaze angles own the gaze: each step and the teacher start from them, so a gaze set directly + with :meth:`~isaaclab_fovi.sensors.FoveatedCamera.set_gaze_angles` carries on. :attr:`state`, the observation, is + the gaze and velocity as of the last step or reset. """ cfg: GazeActionCfg - _asset: FoveatedCamera is_graphable: ClassVar[bool] = True """The gaze moves in :meth:`process_actions`, once per environment step; :meth:`apply_actions` does nothing, so @@ -72,31 +209,82 @@ class GazeAction(ActionTerm): def __init__(self, cfg: GazeActionCfg, env: ManagerBasedEnv): super().__init__(cfg, env) - self.field_radius_deg = self._asset.sampling_coords.fov / 2 + camera = self.camera + self.tracked_mount = cfg.mount == "tracked" + if self.tracked_mount and not camera.turns_pose_by_gaze: + raise ValueError( + "A tracked gaze mount needs a camera that turns its pose by the gaze every frame: Newton or OVRTX." + ) + if not self.tracked_mount and camera.cfg.prim_path.rpartition("/")[0] not in ( + "{ENV_REGEX_NS}", + env.scene.env_regex_ns, + ): + # A body's motion turns its camera without set_world_poses, which the fixed mount could not detect. + raise ValueError( + f"A fixed gaze mount needs a camera mounted on the environment, got {camera.cfg.prim_path!r};" + " use mount='tracked' for a camera on a moving body." + ) + # The camera's own geometry, so the teacher and the sensor mask share one projection. + frame = camera.image_frame + self._frame_torch = torch.tensor( + [[frame[row][col] for col in range(3)] for row in range(3)], device=self.device + ) + self.field_radius_deg = camera.sampling_coords.fov / 2 + """Half the retina's field of view [deg].""" + self._fixed_mount = None + if not self.tracked_mount: + # The fixed-mount teacher keeps the camera's mount as it is now; only later turns invalidate it. + mount = camera.ungazed_quat_w_ros() + self._fixed_mount = ProxyArray(wp.from_torch(mount.contiguous(), dtype=wp.quatf)) + self._mount_turns = camera.mount_turns self._raw: torch.Tensor | None = None """Gaze actions of the last step, as supplied to :meth:`process_actions`.""" self._state = ProxyArray(wp.zeros(self.num_envs, dtype=wp.vec4f, device=self.device)) """Gaze and its velocity as of the last step or reset, the gaze observation.""" - self._all_ids = wp.from_torch(torch.arange(self.num_envs, dtype=torch.int32, device=self.device)) + self._velocity = self._state.torch[:, 2:] self._step_launch: tuple[tuple, wp.Launch] | None = None + # Each reset copies its environments, and their start gazes if random, into these and replays one launch. + self._reset_ids = ProxyArray(wp.zeros(self.num_envs, dtype=wp.int32, device=self.device)) + self._reset_start = ProxyArray(wp.zeros(self.num_envs, dtype=wp.vec2f, device=self.device)) + self._reset_launches: dict[tuple[bool, bool], wp.Launch] = {} @property def action_dim(self) -> int: return 2 + @property + def camera(self) -> FoveatedCamera: + """The foveated camera whose gaze the term moves.""" + return self._asset + @property def raw_actions(self) -> torch.Tensor: - return self._raw if self._raw is not None else torch.zeros_like(self._state.torch[:, :2]) + return self._raw if self._raw is not None else torch.zeros_like(self._velocity) @property def processed_actions(self) -> torch.Tensor: - return self._asset.gaze_angles.torch / self.field_radius_deg + return self.gaze + + @property + def gaze(self) -> torch.Tensor: + """Current gaze in field radii, from the camera's stored angles, shape (num_envs, 2).""" + return self.angles_deg / self.field_radius_deg + + @property + def velocity(self) -> torch.Tensor: + """Gaze velocity in field radii per second, shape (num_envs, 2).""" + return self._velocity @property def state(self) -> torch.Tensor: """Gaze and its velocity, in field radii and field radii per second, shape (num_envs, 4).""" return self._state.torch + @property + def angles_deg(self) -> torch.Tensor: + """Current gaze angles [deg], the camera's stored ones, shape (num_envs, 2).""" + return self.camera.gaze_angles.torch + def process_actions(self, actions: torch.Tensor): """Move the gaze by the supplied actions, shape (num_envs, 2). @@ -113,7 +301,7 @@ def process_actions(self, actions: torch.Tensor): [ wp.from_torch(actions, dtype=wp.vec2f), self._state, - self._asset.gaze_angles, + self.camera.gaze_angles, self.cfg.step_size, self.cfg.gaze_limit, self._env.step_dt, @@ -124,20 +312,160 @@ def process_actions(self, actions: torch.Tensor): self._step_launch = (key, launch) self._raw = actions self._step_launch[1].launch(warp_stream(self.device)) - self._asset.set_gaze_angles(self._asset.gaze_angles.torch) + self.camera.set_gaze_angles(self.camera.gaze_angles.torch) def apply_actions(self): pass def reset(self, env_ids=None): - """Return the selected cameras to the optical axis, at rest.""" - angles = self._asset.gaze_angles - with torch_stream(self.device): - if env_ids is None: - angles.warp.zero_() - self._state.warp.zero_() + # The action manager zeroes the reset environments' actions itself. + indexed = env_ids is not None + count = self.num_envs + if indexed: + if isinstance(env_ids, slice): + env_ids = torch.arange(*env_ids.indices(self.num_envs), device=self.device) + count = len(env_ids) + if count == 0: + return + self._reset_ids.torch[:count] = torch.as_tensor(env_ids, device=self.device) + random_start = self.cfg.random_reset + if random_start: + gaze = _random_gaze(count, self.cfg.gaze_limit, self.device) + visible = self.visible(_angles_to_direction(gaze * self.field_radius_deg)) + self._reset_start.torch[:count] = torch.where(visible[:, None], gaze, 0.0) + angles = self.camera.gaze_angles + launch = self._reset_launches.get((indexed, random_start)) + if launch is None: + launch = self._reset_launches[(indexed, random_start)] = record_launch( + gaze_reset_kernel, + self.num_envs, + [self._reset_ids, int(indexed), self._reset_start, int(random_start), self.field_radius_deg], + [angles, self._state], + self.device, + ) + launch.set_dim(count) + launch.launch(warp_stream(self.device)) + # The camera keeps reading the same buffer, which every other environment already holds. + self.camera.set_gaze_angles(angles.torch) + + def visible(self, direction: torch.Tensor) -> torch.Tensor: + """Whether directions in the upright gaze frame fall inside the physical camera's image.""" + return project_directions(direction @ self._frame_torch.T, self.camera.projection_params)[1] + + def teacher_mounts(self) -> ProxyArray: + """Each camera's mount (x, y, z, w), ROS convention, that the teacher aims from: the current one when + tracked, else the one captured when the term was created. + + Raises: + RuntimeError: The camera's mount turned while the gaze assumes a fixed mount. + """ + if self.tracked_mount: + return self.camera.mount_quat_w_ros + if self.camera.mount_turns != self._mount_turns: + raise RuntimeError( + "The gaze camera's mount turned, so the fixed-mount teacher would aim from its first orientation;" + " use GazeActionCfg.mount='tracked'." + ) + return self._fixed_mount + + +class gaze_teacher_labels(ManagerTermBase): + """The teacher's gaze action toward a point fixed to an asset, and its validity, shape (num_envs, 3). + + A training label, never a policy input. One launch labels every environment and logs the mean gaze error to valid + targets and the fraction of valid targets. + + Args: + target_cfg: The asset, and optionally one body by ``body_names``. + offset: The point in the root's or the body's frame [m]. + action_name: The gaze action term. + """ + + def __init__(self, cfg: ObservationTermCfg, env: ManagerBasedEnv): + super().__init__(cfg, env) + self._gaze: GazeAction = env.action_manager.get_term(cfg.params.get("action_name", "gaze")) + self._labels = ProxyArray(wp.zeros((env.num_envs, 3), dtype=wp.float32, device=env.device)) + self._log = ProxyArray(wp.zeros(2, dtype=wp.float32, device=env.device)) + """Mean gaze error to valid targets [deg] and the fraction of valid targets.""" + self._offset: tuple[tuple[float, ...], wp.vec3f] | None = None + self._sources = None + self._targets = self._orientations = None + self._launch: tuple[tuple, wp.Launch] | None = None + + def __call__( + self, + env: ManagerBasedEnv, + target_cfg: SceneEntityCfg, + offset: tuple[float, float, float] = (0.0, 0.0, 0.0), + action_name: str = "gaze", + ) -> torch.Tensor: + data = env.scene[target_cfg.name].data + # Reading the properties refreshes the asset's pose buffers; their Warp views are wrapped once. + if target_cfg.body_names is None: + positions, orientations = data.root_pos_w, data.root_quat_w + else: + positions, orientations = data.body_pos_w, data.body_quat_w + if self._sources != (id(positions), id(orientations)): + self._sources = (id(positions), id(orientations)) + if target_cfg.body_names is None: + self._targets, self._orientations = positions.warp, orientations.warp else: - indices = resolve_1d_indices(resolve_ids(ids=env_ids, all_ids=self._all_ids)) - wp.indexedarray(angles.warp, indices).zero_() - wp.indexedarray(self._state.warp, indices).zero_() - self._asset.set_gaze_angles(angles.torch) + body = target_cfg.body_ids[0] + self._targets = wp.from_torch(positions.torch[:, body], dtype=wp.vec3f) + self._orientations = wp.from_torch(orientations.torch[:, body], dtype=wp.quatf) + point = tuple(float(value) for value in offset) + if self._offset is None or self._offset[0] != point: + self._offset = (point, wp.vec3f(*point)) + gaze = self._gaze + mounts = gaze.teacher_mounts() + camera_positions = gaze.camera.data.pos_w.warp + # The launch is recorded once and recorded again only when one of its arrays or the point changes. + sources = (self._targets, self._orientations, camera_positions, mounts, self._offset[1]) + if self._launch is None or any(a is not b for a, b in zip(self._launch[0], sources)): + block = teacher_block_dim(env.device) + launch = record_launch( + teacher_labels_kernel, + (1, block), + [ + self._targets, + self._orientations, + self._offset[1], + camera_positions, + mounts, + gaze.camera.gaze_angles, + gaze.camera.image_frame, + gaze.field_radius_deg, + gaze.cfg.step_size, + gaze.cfg.gaze_limit, + gaze.camera.projection_params, + ], + [self._labels, self._log], + env.device, + block_dim=block, + ) + self._launch = (sources, launch) + self._launch[1].launch(warp_stream(env.device)) + _log_teacher(env, self._log.torch) + return self._labels.torch + + +def _log_teacher(env: ManagerBasedEnv, values: torch.Tensor) -> None: + """Log the mean gaze error to valid targets and the fraction of valid targets.""" + # Loggers keep each step's entries, so they get a copy rather than the buffer the next step overwrites. + error, fraction = values.clone() + log = env.extras.setdefault("log", {}) + log["Gaze/target_error_deg"] = error + log["Gaze/valid_target_fraction"] = fraction + + +def _angles_to_direction(angles_deg: torch.Tensor) -> torch.Tensor: + """Camera-frame unit directions of gaze angles [deg], shape (..., 2) to (..., 3).""" + tilt, pan = angles_deg.deg2rad().unbind(-1) + return torch.stack((-tilt.cos() * pan.sin(), -tilt.sin(), tilt.cos() * pan.cos()), -1) + + +def _random_gaze(count: int, limit: float, device: torch.device | str | None = None) -> torch.Tensor: + """Gazes drawn uniformly over the disc of radius ``limit``, shape (count, 2).""" + radius = limit * torch.rand(count, device=device).sqrt() + angle = 2 * math.pi * torch.rand(count, device=device) + return torch.stack((radius * angle.sin(), radius * angle.cos()), dim=-1) diff --git a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py index c038da8533e9..0318605a11fc 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py +++ b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py @@ -28,11 +28,21 @@ class GazeActionCfg(ActionTermCfg): step_size: float = 0.1 """Change of each gaze coordinate per step at an action of 1, in field radii. Positive and finite.""" gaze_limit: float = 1.0 - """Radius of the allowed tilt/pan disk, in field radii. Positive and finite.""" + """Largest distance of the gaze from the camera's optical axis, in field radii. Positive and finite.""" + random_reset: bool = False + """Start episodes at a random gaze the camera sees; otherwise on the optical axis.""" + mount: str = "fixed" + """Teacher's mount: ``"fixed"`` at the action's creation, or ``"tracked"`` on a moving body (Newton, OVRTX).""" def validate_config(self): - """Reject gaze bounds that would divide by zero.""" - if not math.isfinite(self.step_size) or self.step_size <= 0: + """Reject gaze bounds that would divide by zero and unknown mounts.""" + if not _positive_finite(self.step_size): raise ValueError(f"GazeActionCfg.step_size must be positive and finite, got {self.step_size!r}.") - if not math.isfinite(self.gaze_limit) or self.gaze_limit <= 0: + if not _positive_finite(self.gaze_limit): raise ValueError(f"GazeActionCfg.gaze_limit must be positive and finite, got {self.gaze_limit!r}.") + if self.mount not in ("fixed", "tracked"): + raise ValueError(f"GazeActionCfg.mount must be 'fixed' or 'tracked', got {self.mount!r}.") + + +def _positive_finite(value) -> bool: + return isinstance(value, (int, float)) and math.isfinite(value) and value > 0 diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py index c2f417286094..d499139eec0c 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py @@ -8,13 +8,13 @@ from __future__ import annotations import math +from typing import Protocol -from fovi.sensing.projection import CameraCalibration, CameraModel +import torch +from fovi.sensing.projection import CameraCalibration, CameraModel, angular_directions from isaaclab.sim import PinholeCameraCfg -from .foveated_camera_cfg import FoveatedCameraCfg - IDEAL_IMAGE_WIDTH = 1024 """Pixel width [px] of the image assigned to a camera derived from ideal spawn optics. @@ -79,7 +79,7 @@ def camera_model_from_spawn(spawn: PinholeCameraCfg) -> CameraCalibration: ) -def resolve_camera_model(cfg: FoveatedCameraCfg) -> CameraModel: +def resolve_camera_model(cfg: SamplingGeometryConfig) -> CameraModel: """Return the physical camera the retina looks through. This is ``cfg.camera_model`` when set, otherwise the camera that ``cfg.spawn`` @@ -93,3 +93,41 @@ def resolve_camera_model(cfg: FoveatedCameraCfg) -> CameraModel: if cfg.spawn is None: raise ValueError("A foveated camera on an existing prim needs camera_model.") return CameraModel(**camera_model_from_spawn(cfg.spawn)) + + +def sampling_geometry(cfg: SamplingGeometryConfig) -> tuple[float, float]: + """Return the retinal field of view and the CMF constant, both in degrees. + + The field of view is the angular span of the retinal window in the physical + camera. Both values are in the units :class:`fovi.sensing.coords.SamplingCoords` takes. + """ + fov = resolve_camera_model(cfg).field_of_view(cfg.retinal_window_reference_side, cfg.retinal_window_fraction) + return fov, cfg.cmf_a_deg + + +def retinal_directions(cartesian: torch.Tensor, fov_deg: float, image_rotation_deg: float = 0.0) -> torch.Tensor: + """Return OpenGL-frame angular rays, including the sensor mount roll.""" + rays = angular_directions(cartesian, fov_deg) + rays = rays * rays.new_tensor((1, -1, -1)) + angle = rays.new_tensor(image_rotation_deg * torch.pi / 180) + x, y, z = rays.unbind(-1) + return torch.stack((angle.cos() * x - angle.sin() * y, angle.sin() * x + angle.cos() * y, z), -1) + + +def compose_rotations(left: torch.Tensor, right: torch.Tensor) -> torch.Tensor: + """Compose small rotation matrices without TF32 tensor-core rounding. + + Camera transforms need orthonormal rotations even when the surrounding + training process enables reduced-precision matrix multiplication. + """ + return (left[..., :, :, None] * right[..., None, :, :]).sum(dim=-2) + + +class SamplingGeometryConfig(Protocol): + """The configuration fields that place the retina in the physical camera.""" + + camera_model: CameraCalibration | None + cmf_a_deg: float + retinal_window_reference_side: str + retinal_window_fraction: float + spawn: PinholeCameraCfg | None diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py index 1f95dc30d24c..28af5b3b8ad7 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py @@ -14,15 +14,13 @@ import torch import warp as wp -from fovi.sensing.coords import SamplingCoords from fovi.sensing.projection import CameraModel from isaaclab.sensors.camera.camera import Camera -from isaaclab.utils import clone -from isaaclab.utils.math import convert_camera_frame_orientation_convention +from isaaclab.utils.math import convert_camera_frame_orientation_convention, quat_error_magnitude from isaaclab.utils.warp import ProxyArray -from .calibrated_geometry import resolve_camera_model +from .calibrated_geometry import resolve_camera_model, retinal_directions from .gaze_kernels import ( CameraParams, apply_gaze_indexed_kernel, @@ -30,14 +28,24 @@ camera_params, publish_grid_kernel, record_launch, + sensor_visibility_kernel, set_gaze_kernel, warp_stream, ) -from .native_grid import native_grid_directions +from .native_grid import GRID_STYLE, buffer_tensor, native_grid_directions +from .pooling import ( + is_segmentation_output, + pool_hwc_buffer, + pool_segmentation_buffer, + segmentation_neighbor_indices, +) if TYPE_CHECKING: from .foveated_camera_cfg import FoveatedCameraCfg +MOUNT_TURN_TOLERANCE_RAD = 1e-5 +"""Smallest change of a camera's mount orientation [rad] that counts as a turn; smaller ones are float rounding.""" + OPENGL_TO_ROS_AXES = (1.0, -1.0, -1.0) """Axis signs between OpenGL camera-frame directions (x right, y up, -z forward) and ROS ones (x right, y down).""" @@ -97,40 +105,67 @@ def __init__(self, cfg: FoveatedCameraCfg): """ self._gaze_pose_reads_angles = self._pose_update_turns_gaze(cfg) """Whether the camera turns its pose by the stored gaze in each pose update, rather than writing prim poses - when the gaze is set.""" + when the gaze is set; see :attr:`turns_pose_by_gaze`.""" if self._gaze_pose_reads_angles and not cfg.update_latest_camera_pose: raise ValueError( "Newton and OVRTX turn the rendered pose by the gaze in each pose update; set" " update_latest_camera_pose=True so the renderer sees the gaze." ) # The parent's initialisation updates poses before the gaze exists. + self._gaze_written = False self._gaze_angles: ProxyArray | None = None self._gaze_rotation: ProxyArray | None = None - cfg = clone(cfg) - cfg.width = cfg.height = cfg.foveated_res - self._camera_model = resolve_camera_model(cfg) - fov = self._camera_model.field_of_view(cfg.retinal_window_reference_side, cfg.retinal_window_fraction) - self._sampling_coords = SamplingCoords( - fov=fov, - cmf_a=cfg.cmf_a_deg, - res=cfg.foveated_res, - style="warped_cartesian_as_grid", - field_geometry="spherical", - device="cpu", - ) - self._retinal_rays = native_grid_directions(self._sampling_coords, image_rotation_deg=cfg.image_rotation_deg) + self._visibility = None + self._grid_publish = None + self._published_shape: tuple[int, int] | None = None + self._segmentation_neighbors: torch.Tensor | None = None + self._sensor_fov_valid: torch.Tensor | None = None + self.mount_turns = 0 + """How many times :meth:`set_world_poses` or :meth:`set_world_poses_from_view` has turned the camera's mount.""" super().__init__(cfg) @property - def sampling_coords(self) -> SamplingCoords: + def image_shape(self) -> tuple[int, int]: + """(height, width) of the published outputs: the retina's grid, or (num_samples, 1) for sample sets.""" + return self._published_shape if self._published_shape is not None else super().image_shape + + @property + def sampling_coords(self): """The :class:`SamplingCoords` of the published samples.""" return self._sampling_coords + @property + def num_valid_samples(self) -> int: + """Number of published foveated samples.""" + return self._num_valid_samples + + @property + def sensor_fov_valid_fraction(self) -> torch.Tensor | None: + """Per-environment fraction of samples inside the physical camera, or None before the first masked frame.""" + return None if self._sensor_fov_valid is None else self._sensor_fov_valid.float().mean(dim=1) + @property def camera_model(self) -> CameraModel: """The physical camera the retina looks through, as resolved at initialization.""" return self._camera_model + @property + def projection_params(self) -> CameraParams: + """:attr:`camera_model` as a Warp struct, for kernels that project camera-frame directions.""" + return self._gaze_camera + + @property + def image_frame(self) -> wp.mat33f: + """Rotation from the upright image frame, in which gazes are measured, to the physical camera's frame (ROS + convention); it undoes ``cfg.image_rotation_deg``.""" + return self._mask_frame + + @property + def turns_pose_by_gaze(self) -> bool: + """Whether each pose update turns the rendered pose by the stored gaze (Newton and OVRTX). A writer of + :attr:`gaze_angles` then needs no other launch.""" + return self._gaze_pose_reads_angles + @property def gaze_angles(self) -> ProxyArray: """The camera's stored gaze angles [deg], shape (num_envs,) of ``vec2f`` (Torch view (num_envs, 2)). @@ -142,6 +177,20 @@ def gaze_angles(self) -> ProxyArray: self._allocate_gaze() return self._gaze_angles + @property + def mount_quat_w_ros(self) -> ProxyArray: + """World orientation (x, y, z, w) of the physical camera before the gaze turns it, ROS convention, shape + (num_envs,) of ``quatf``. + + Refreshed by each pose update that turns the gaze, so it follows a mount that moves, for example a camera on + a robot's head. Only cameras whose pose update turns the gaze (Newton and OVRTX) record it. + """ + if not self._gaze_pose_reads_angles: + raise RuntimeError("Only cameras whose pose update turns the gaze (Newton, OVRTX) record their mount.") + if self._gaze_angles is None: + self._allocate_gaze() + return self._mount_quat_ros + def set_gaze_angles(self, angles_deg: torch.Tensor) -> None: """Turn the retina to (tilt, pan) [deg] from the physical camera's optical axis. @@ -155,7 +204,7 @@ def set_gaze_angles(self, angles_deg: torch.Tensor) -> None: ValueError: The angles do not hold one row per camera. """ stored = self._gaze_angles is not None and angles_deg is self._gaze_angles.torch - if stored and self._gaze_pose_reads_angles: + if stored and self.turns_pose_by_gaze: # The next pose update reads the stored angles; nothing has to happen now. return count = self._view.count @@ -175,6 +224,43 @@ def set_gaze_angles(self, angles_deg: torch.Tensor) -> None: gaze.device, ) self._set_gaze_launch.launch(warp_stream(gaze.device)) + self._gaze_written = True + + def ungazed_quat_w_ros(self) -> torch.Tensor: + """World orientation (x, y, z, w) of the physical camera now, before the gaze turns it, ROS convention, shape + (num_envs, 4).""" + if self._gaze_pose_reads_angles and self._gaze_angles is not None: + # The record starts at the pose before any gaze and follows each pose update. + return self._mount_quat_ros.torch.clone() + if self._gaze_written: + # The prims hold the gaze (Isaac RTX); get_world_poses reports the mount without it. + return self.get_world_poses(convention="ros")[1] + return self._data.quat_w_ros.torch.clone() + + def set_world_poses(self, positions=None, orientations=None, env_ids=None, convention="ros"): + """Move the camera's mount; the gaze stays relative to the new mount. + + Args are those of :meth:`isaaclab.sensors.Camera.set_world_poses`. + """ + if orientations is None: + # A position-only move keeps every mount's orientation. + super().set_world_poses(positions, orientations, env_ids, convention) + return + before = self._mount_orientations(env_ids) + super().set_world_poses(positions, orientations, env_ids, convention) + self._mount_written(env_ids) + self._count_mount_turn(before, env_ids) + + def set_world_poses_from_view(self, eyes, targets, env_ids=None): + """Point the camera's mount from ``eyes`` at ``targets``; the gaze stays relative to the new mount. + + Args are those of :meth:`isaaclab.sensors.Camera.set_world_poses_from_view`. + """ + before = self._mount_orientations(env_ids) + super().set_world_poses_from_view(eyes, targets, env_ids) + # Rows whose eye equals their target are skipped by the base method and keep their poses. + self._mount_written(self._env_indices(env_ids)[self._turned_by_view(eyes, targets)]) + self._count_mount_turn(before, env_ids) def set_intrinsic_matrices(self, matrices, focal_length=None, env_ids=None): """Keep the camera as configured and warn the caller. @@ -195,35 +281,52 @@ def set_intrinsic_matrices(self, matrices, focal_length=None, env_ids=None): ) def _initialize_gaze(self) -> None: - """Move the canonical rays to the sensor device and prepare camera-frame conversions.""" - self._sampling_coords = self._sampling_coords.to(device=self._device) - self._retinal_rays = self._retinal_rays.to(device=self._device) + """Prepare the gaze geometry: the rendered rays in the physical camera's frame and the pose conversions.""" + self._camera_model = resolve_camera_model(self.cfg) + self._gaze_camera = camera_params(self._camera_model) + coords = self._sampling_coords_highres or self._sampling_coords + rotation_deg = self.cfg.image_rotation_deg + # The rays as rendered, mount roll included, in the ROS frame the camera model projects. + if coords.style == GRID_STYLE: + rays = native_grid_directions(coords, image_rotation_deg=rotation_deg) + else: + rays = retinal_directions(coords.cartesian, coords.fov, rotation_deg) + self._gaze_rays = (rays * rays.new_tensor(OPENGL_TO_ROS_AXES)).float().contiguous() + # No gaze until one is set: the camera looks along its optical axis untouched. self._gaze_angles = None self._gaze_rotation = None - rotation_deg = self.cfg.image_rotation_deg + self._visibility = None + device = self._gaze_rays.device + self._gaze_identity = torch.eye(3, device=device) angle = math.radians(rotation_deg) c, s = math.cos(angle), math.sin(angle) # Gaze is defined in the upright image frame; the basis carries it into the rolled OpenGL camera frame. - self._gaze_basis = self._retinal_rays.new_tensor(((c, s, 0), (s, -c, 0), (0, 0, -1))) + self._gaze_basis = self._gaze_rays.new_tensor(((c, s, 0), (s, -c, 0), (0, 0, -1))) # The same roll in the ROS frame: a rendered ray r reaches the physical camera at K gaze K^T r. self._mask_frame = wp.mat33f(c, s, 0.0, -s, c, 0.0, 0.0, 0.0, 1.0) # Fixed right-multiplied frame changes, on the CPU in float64, where no reduced-precision matmul applies. identity = torch.tensor([[0.0, 0.0, 0.0, 1.0]], dtype=torch.float64) to_opengl = convert_camera_frame_orientation_convention(identity, origin="world", target="opengl")[0].tolist() to_world = convert_camera_frame_orientation_convention(identity, origin="opengl", target="world")[0].tolist() + to_ros = convert_camera_frame_orientation_convention(identity, origin="world", target="ros")[0].tolist() self._gaze_frames = ( wp.mat33f(*self._gaze_basis.flatten().tolist()), wp.quatf(*to_opengl), wp.quatf(*to_world), + wp.quatf(*to_ros), ) def _allocate_gaze(self) -> None: - """Allocate one stored gaze per camera, on the optical axis, and its rotation on the sensor device.""" + """Allocate one stored gaze per camera, on the optical axis, its rotation and the mount, on the sensor + device.""" count, device = self._view.count, str(self._device) self._gaze_angles = ProxyArray(wp.zeros(count, dtype=wp.vec2f, device=device)) self._gaze_rotation = ProxyArray( wp.from_torch(torch.eye(3, device=device).repeat(count, 1, 1), dtype=wp.mat33f) ) + # No gaze has turned the pose yet, so the current orientation is the mount. + mount = self._data.quat_w_ros.torch.clone() + self._mount_quat_ros = ProxyArray(wp.from_torch(mount, dtype=wp.quatf)) self._gaze_angles_key = None self._gaze_pose_launches: dict[str, tuple[wp.Launch, tuple]] = {} self._gaze_no_mask = wp.zeros(1, dtype=wp.bool, device=device) @@ -246,13 +349,13 @@ def _update_camera_state( def _apply_gaze_pose( self, env_ids: Sequence[int] | wp.array | None = None, env_mask: wp.array | None = None ) -> None: - """Turn the camera's world orientation by the stored gaze, and record the gaze rotations.""" + """Turn the camera's world orientation by the stored gaze, and record the gaze rotations and the mount.""" if self._gaze_angles is None: return orientation = self._data.quat_w_world.warp device = self._gaze_angles.torch.device frames = (self._gaze_angles, *self._gaze_frames) - outputs = [orientation, self._gaze_rotation] + outputs = [orientation, self._gaze_rotation, self._mount_quat_ros] indexed = env_ids is not None and env_mask is None if indexed: # The kernel takes contiguous int32 indices; this converts sequences, slices, tensors and Warp arrays. @@ -275,62 +378,191 @@ def _apply_gaze_pose( launch.set_dim(len(env_ids)) launch.launch(warp_stream(device)) - def _prepare_grid_publish(self, sources: Mapping[str, torch.Tensor]) -> None: - """Allocate upright public buffers and bind byte views of the renderer's native grid.""" - coords = self._sampling_coords - indices = torch.arange(len(coords), dtype=torch.int32, device=self._device) - self._grid_indices_wp = wp.from_torch(coords.as_grid(indices).reshape(-1).contiguous()) - self._grid_footprint_wp = wp.from_torch(coords.valid_mask.contiguous()) - # Rendered OpenGL rays become physical-camera ROS rays for the calibrated mask. - rays = self._retinal_rays * self._retinal_rays.new_tensor(OPENGL_TO_ROS_AXES) - self._grid_rays_wp = wp.from_torch(rays, dtype=wp.vec3f) - self._grid_camera = camera_params(self._camera_model) if self.cfg.mask_to_sensor_fov else CameraParams() - self._grid_identity = wp.from_torch( - torch.eye(3, device=self._device).repeat(self._view.count, 1, 1), dtype=wp.mat33f - ) + def _mount_orientations(self, env_ids) -> torch.Tensor: + """The selected cameras' mount orientations (x, y, z, w), world convention, as :meth:`get_world_poses` reports + them.""" + return self.get_world_poses(env_ids, convention="world")[1].clone() + + def _mount_written(self, env_ids) -> None: + """Called after a pose write turned the selected cameras' mounts, before the turn is measured. Cameras that + hold the gaze in their prims write it onto the new mounts here.""" + + def _count_mount_turn(self, before: torch.Tensor, env_ids) -> None: + """Count a mount turn if any selected camera's mount now differs from ``before``. + + The teachers read the camera's live position, so only orientation changes count, and writing back the reported + poses does not. + """ + turned = quat_error_magnitude(before, self._mount_orientations(env_ids)) > MOUNT_TURN_TOLERANCE_RAD + if bool(turned.any()): + self.mount_turns += 1 + + def _env_indices(self, env_ids) -> torch.Tensor: + """The camera indices that ``env_ids`` selects, as a tensor.""" + if env_ids is None: + return torch.arange(self._view.count, device=self._device) + if isinstance(env_ids, slice): + return torch.arange(self._view.count, device=self._device)[env_ids] + if isinstance(env_ids, wp.array): + env_ids = wp.to_torch(env_ids) + return torch.as_tensor(env_ids, device=self._device, dtype=torch.long).reshape(-1) + + def _turned_by_view(self, eyes, targets) -> torch.Tensor: + """Which rows :meth:`set_world_poses_from_view` turns: the base method skips an eye equal to its target.""" + return (self._as_device_tensor(eyes, 3) - self._as_device_tensor(targets, 3)).norm(dim=-1) > 0 + + def _visibility_buffers(self) -> dict: + """The sensor mask's camera-owned buffers, allocated once: the rendered rays, an unturned rotation per camera, + each sample's visibility and, for the updated rows, which samples to hide.""" + if self._visibility is None: + count, device = self._view.count, self._gaze_rays.device + shape = (count, len(self._gaze_rays)) + self._visibility = { + "rays": wp.from_torch(self._gaze_rays, dtype=wp.vec3f), + "identity": wp.from_torch(self._gaze_identity.expand(count, -1, -1).contiguous(), dtype=wp.mat33f), + "every_env": wp.ones(count, dtype=wp.bool, device=str(device)), + "valid": ProxyArray(wp.zeros(shape, dtype=wp.bool, device=str(device))), + "hidden": ProxyArray(wp.zeros(shape, dtype=wp.bool, device=str(device))), + "launch": None, + } + return self._visibility + + def _gaze_validity(self, env_mask: wp.array | None = None) -> torch.Tensor: + """Which samples the physical camera sees at each updated environment's gaze, shape (num_envs, num_samples). + + Each rendered ray is tested by its center direction. Environments outside ``env_mask`` keep their last + visibility; None updates every one. + """ + buffers = self._visibility_buffers() + rotation = buffers["identity"] if self._gaze_rotation is None else self._gaze_rotation.warp + updated = buffers["every_env"] if env_mask is None else env_mask + cached = buffers["launch"] + if cached is None or cached[0] is not rotation or cached[1] is not updated: + launch = record_launch( + sensor_visibility_kernel, + buffers["valid"].warp.shape, + [buffers["rays"], rotation, self._mask_frame, self._gaze_camera, updated], + [buffers["valid"], buffers["hidden"]], + self._gaze_rays.device, + ) + buffers["launch"] = cached = (rotation, updated, launch) + cached[2].launch(warp_stream(self._gaze_rays.device)) + return buffers["valid"].torch + + def _apply_sensor_fov_mask(self, outputs: Mapping[str, torch.Tensor], env_mask: wp.array | None = None) -> None: + """Zero the samples outside the physical camera at the current gaze in the updated environments' (B, N, 1, C) + outputs; None updates every environment.""" + if not self.cfg.mask_to_sensor_fov: + return + tensors = {name: buffer_tensor(value) for name, value in outputs.items()} + self._sensor_fov_valid = self._gaze_validity(env_mask) + hidden = self._visibility["hidden"].torch[:, :, None, None] + for name, tensor in tensors.items(): + if name == "rgb" and "rgba" in tensors: + continue + tensor.masked_fill_(hidden, 0) + + def _prepare_segmentation_pooling(self, names) -> None: + """Take the modal-label neighbourhoods of pooled segmentation outputs among ``names`` from the main pooler.""" + self._segmentation_neighbors = None + if self._pooler is not None and any(is_segmentation_output(name) for name in names): + self._segmentation_neighbors = segmentation_neighbor_indices(self._pooler) + + def _pool_output(self, name: str, samples: torch.Tensor) -> torch.Tensor: + """Pool one output's high-resolution samples (B, N_hi, 1, C) to the retina's (B, N_lo, 1, C), in its dtype. - outputs = {} - self._grid_publish = [] + Segmentation takes each sample's modal label in its native dtype; other outputs are pooled in float with + ``pool_mode``. With :attr:`~FoveatedCameraCfg.mask_to_sensor_fov`, photoreceptors outside the physical camera's + image at the current gaze are left out, so a pooled sample at the image edge is not darkened by them. + """ + visible = self._visibility["valid"].torch if self.cfg.mask_to_sensor_fov else None + if is_segmentation_output(name): + return pool_segmentation_buffer(self._segmentation_neighbors, samples, visible) + pooled = pool_hwc_buffer(self._pooler, samples.float(), visible) + if not samples.dtype.is_floating_point: + # Round to the nearest value the output can hold, e.g. 0-255 for RGB, rather than truncating. + limits = torch.iinfo(samples.dtype) + pooled = pooled.round().clamp(limits.min, limits.max) + return pooled.to(samples.dtype) + + def _prepare_grid_publish(self, sources: Mapping[str, torch.Tensor]) -> None: + """Byte views of each rendered output, shape (num_envs, num_samples, channels), and of its public grid, for + :func:`publish_grid_kernel`.""" + views = [] for name, source in sources.items(): if name == "rgb" and "rgba" in sources: continue - count, _, _, channels = source.shape - target = torch.zeros_like(source, memory_format=torch.contiguous_format) - self._grid_publish.append( - ( - wp.from_torch(source.view(count, -1, channels).view(torch.uint8)), - wp.from_torch(target.view(count, -1, channels).view(torch.uint8)), - ) + target = self._grid_output[name].view(source.shape[0], -1, source.shape[-1]) + views.append((wp.from_torch(source.view(torch.uint8)), wp.from_torch(target.view(torch.uint8)))) + self._grid_indices_wp = wp.from_torch(self._grid_indices.to(torch.int32).contiguous()) + self._grid_footprint_wp = wp.from_torch(self._ray_coords.valid_mask.contiguous()) + num_envs = views[0][1].shape[0] + if self.cfg.mask_to_sensor_fov: + buffers = self._visibility_buffers() + self._grid_every_env = buffers["every_env"] + self._grid_sensor = ( + buffers["rays"], + buffers["identity"], + self._mask_frame, + self._gaze_camera, + buffers["valid"].warp, + ) + else: + self._grid_every_env = wp.ones(num_envs, dtype=wp.bool, device=str(self._device)) + # Placeholders: the kernel reads none of these without the sensor mask. + self._grid_sensor = ( + wp.zeros(1, dtype=wp.vec3f, device=self._device), + wp.zeros(1, dtype=wp.mat33f, device=self._device), + wp.mat33f(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0), + CameraParams(), + wp.zeros((1, 1), dtype=wp.bool, device=self._device), ) - outputs[name] = target - if "rgb" in sources and "rgba" in sources: - outputs["rgb"] = outputs["rgba"][..., :3] - self._data._output = {name: ProxyArray(wp.from_torch(value)) for name, value in outputs.items()} + self._grid_publish = views self._grid_launches = None - def _publish_grid(self, env_mask: wp.array) -> None: - """Mask and publish the upright grid for the updated environments.""" - rotation = self._grid_identity if self._gaze_rotation is None else self._gaze_rotation.warp + def _publish_grid(self, env_mask: wp.array | None = None) -> None: + """Mask and lay out every output of the updated environments in one launch each; the result equals masking, + then copying to the grid. The other environments keep their last published frame; None updates every one.""" + mask = self.cfg.mask_to_sensor_fov + env_mask = self._grid_every_env if env_mask is None else env_mask + rays, identity, frame, camera, visible = self._grid_sensor + rotation = identity if not mask or self._gaze_rotation is None else self._gaze_rotation.warp cached = self._grid_launches - if cached is None or cached[0] is not rotation or cached[1] is not env_mask: - inputs = [ - self._grid_indices_wp, - self._grid_footprint_wp, - env_mask, - self._grid_rays_wp, - rotation, - self._mask_frame, - self._grid_camera, - int(self.cfg.mask_to_sensor_fov), - ] + if cached is None or cached[0][0] is not rotation or cached[0][1] is not env_mask: launches = [ - record_launch(publish_grid_kernel, target.shape[:2], [source, *inputs], [target], self._device) - for source, target in self._grid_publish + record_launch( + publish_grid_kernel, + (target.shape[0], target.shape[1]), + [ + source, + self._grid_indices_wp, + self._grid_footprint_wp, + env_mask, + rays, + rotation, + frame, + camera, + int(mask), + int(mask and index == 0), + visible, + ], + [target], + self._device, + ) + for index, (source, target) in enumerate(self._grid_publish) ] - self._grid_launches = cached = (rotation, env_mask, launches) + self._grid_launches = ((rotation, env_mask), launches) stream = warp_stream(self._device) - for launch in cached[2]: + for launch in self._grid_launches[1]: launch.launch(stream) + if mask: + self._sensor_fov_valid = self._visibility["valid"].torch + + def _set_published_shape(self, outputs: Mapping[str, torch.Tensor]) -> None: + """Report the (height, width) of the published outputs, which differ from the rendered ones.""" + tensor = next(iter(outputs.values())).torch + self._published_shape = (int(tensor.shape[1]), int(tensor.shape[2])) + self._data.image_shape = self._published_shape @staticmethod def _pose_update_turns_gaze(cfg: FoveatedCameraCfg) -> bool: diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py index 9cbdf77391ce..c4039eabcee6 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py @@ -7,8 +7,10 @@ from __future__ import annotations +import math from typing import TYPE_CHECKING +from fovi.sensing.coords import RADIUS_NORMS, WARPED_CARTESIAN_STYLES from fovi.sensing.projection import CameraCalibration from isaaclab.sensors.camera.camera_cfg import CameraCfg @@ -18,6 +20,23 @@ from .foveated_camera import FoveatedCamera +POOL_MODES = ("avg", "gaussian", "max", "sum") +"""fovi pooling modes for the outputs other than segmentation.""" + +SEGMENTATION_POOL_MODES = ("modal",) +"""Pooling modes for segmentation outputs: the modal label only.""" + + +def validate_radius_norm(radius_norm: float, style: str, fov_type: str) -> None: + """Reject warped-grid radius norms that fovi cannot sample, before renderer startup.""" + if radius_norm not in RADIUS_NORMS: + raise ValueError(f"radius_norm must be one of {RADIUS_NORMS}, got {radius_norm!r}.") + if radius_norm != 2.0 and style not in WARPED_CARTESIAN_STYLES: + raise ValueError("Non-default radius_norm requires a warped_cartesian style.") + if radius_norm == math.inf and fov_type == "wang": + raise ValueError("radius_norm=inf does not support fov_type='wang'.") + + @configclass class FoveatedCameraCfg(CameraCfg): """Configuration for a foveated camera, whose retina samples densely where it looks and sparsely in the periphery. @@ -36,7 +55,19 @@ class FoveatedCameraCfg(CameraCfg): """The physical camera as ``CameraModel`` fields; None uses the camera that :attr:`spawn` creates.""" foveated_res: int = 60 - """Side length of the published warped-Cartesian grid.""" + """Grid side of the retina; isotropic retinas use as many rings as keep at most its square of samples.""" + + foveated_style: str = "warped_cartesian_as_grid" + """Sampling style: the default grid publishes an upright image; sample-set styles publish a list of samples.""" + + fov_type: str = "circular" + """Region of the visual field the retina covers: ``"circular"``, ``"square"`` or ``"wang"``.""" + + radius_norm: float = 2.0 + """Norm of the warped-Cartesian sampling shells: 2.0 for circular shells, infinity for square ones.""" + + isotropic_plotting_type: str = "v1like" + """Cortical layout of an isotropic retina's samples: ``"v1like"``, ``"schwartz"`` or ``"warp"``.""" image_rotation_deg: float = 0.0 """Counter-clockwise roll [deg] of the rays about the optical axis that undoes a rolled mount.""" @@ -50,6 +81,29 @@ class FoveatedCameraCfg(CameraCfg): retinal_window_reference_side: str = "short" """Image side defining the retinal window diameter: ``short`` or ``long``.""" + # -- Optional retinal pooling (photoreceptor -> RGC two-layer sampling) -- + + pool_enabled: bool = False + """Render a denser photoreceptor grid and pool it to the retina.""" + + pool_res_mult: float = 2 + """How many times denser the photoreceptor grid is than the retina; an integer for grid styles.""" + + pool_k: int | None = None + """Photoreceptors each sample pools: a square window's area for grid styles, else nearest neighbours.""" + + pool_mode: str = "avg" + """Pooling of non-segmentation outputs: ``"avg"``, ``"gaussian"``, ``"max"``, or ``"sum"`` for sample sets.""" + + pool_sample_cortex: bool | str = "geodesic" + """Neighbour distance for sample sets: ``"geodesic"`` on the cortex, ``True`` cortical, ``False`` visual.""" + + pool_gauss_sigma: float = 10.0 + """Gaussian sigma for ``pool_mode="gaussian"``.""" + + pool_int_mode: str = "modal" + """Pooling of segmentation outputs: ``"modal"``, each sample's most common label among its neighbours.""" + # -- RTX-specific parameters (ignored by Newton backend) ---------------- exit_texture_size: int | None = None @@ -62,3 +116,17 @@ class FoveatedCameraCfg(CameraCfg): update_latest_camera_pose: bool = True """Update the camera pose every frame. Newton and OVRTX require it: their pose update applies the gaze.""" + + def __post_init__(self): + # Resolves the default renderer and forwards deprecated renderer fields. + super().__post_init__() + validate_radius_norm(self.radius_norm, self.foveated_style, self.fov_type) + if self.pool_mode not in POOL_MODES: + raise ValueError( + f"pool_mode must be one of {POOL_MODES}, got {self.pool_mode!r}; segmentation pools with pool_int_mode." + ) + if self.pool_int_mode not in SEGMENTATION_POOL_MODES: + raise ValueError( + f"pool_int_mode must be one of {SEGMENTATION_POOL_MODES}, got {self.pool_int_mode!r}: segmentation" + " pools by modal label, since other modes would mix labels into ones no object has." + ) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py index 5df9df3f4a22..f86bfeb479a9 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py @@ -3,49 +3,259 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Explicit foveated ray grids for Newton Warp and OptiX.""" +"""Newton foveated camera: Newton's Warp renderer casts one ray per retinal sample.""" from __future__ import annotations +import logging +from collections.abc import Sequence +from typing import TYPE_CHECKING + +import torch import warp as wp -from .foveated_camera import FoveatedCamera -from .foveated_camera_cfg import FoveatedCameraCfg +from isaaclab.sensors.camera.camera import Camera +from isaaclab.utils.warp import ProxyArray + +from .foveated_camera import OPENGL_TO_ROS_AXES, FoveatedCamera +from .native_grid import ( + GRID_STYLE, + allocate_grid_outputs, + copy_grid_outputs, + copy_updated_rows, + grid_output_shape, + grid_sample_indices, + mask_grid_samples, + proxy_outputs, +) +from .pooling import build_highres_coords, build_lowres_coords, build_pooler + +if TYPE_CHECKING: + from .foveated_camera_cfg import FoveatedCameraCfg + +logger = logging.getLogger(__name__) + + +def explicit_rays(directions: torch.Tensor, height: int, width: int) -> wp.array: + """Newton's ray array, shape (height, width, 1, 2): a zero origin and a unit direction per ray, shared by every + camera. + + Args: + directions: Unit ray directions in the OpenGL camera frame, in sample order, shape (N, 3). + height: Rendered rows. + width: Rendered columns; ``height * width`` must cover the N rays. Padding repeats the last ray. + """ + if directions.ndim != 2 or directions.shape[1] != 3: + raise ValueError(f"Ray directions must have shape (N, 3), got {tuple(directions.shape)}.") + if height * width < len(directions): + raise ValueError(f"A {height}x{width} render cannot hold {len(directions)} rays.") + index = torch.arange(height * width, device=directions.device).clamp_max(len(directions) - 1) + rays = directions.new_zeros(height, width, 1, 2, 3, dtype=torch.float32) + rays[..., 1, :] = directions.float()[index].reshape(height, width, 1, 3) + # The Warp view keeps the tensor alive. + return wp.from_torch(rays, dtype=wp.vec3f) class FoveatedNewtonCamera(FoveatedCamera): - """Render the shared retinal grid with Newton's explicit ray buffer.""" + """Newton camera that renders with foveated (CMF-distributed) rays. + + Instead of a uniform pixel grid, this sensor shoots *N* rays whose + directions are derived from :class:`fovi.sensing.coords.SamplingCoords` + and injected into Newton's renderer, with Warp or OptiX traversal. Vector sensors publish + ``(B, N, 1, C)``; native grid sensors publish upright ``(B, H, W, C)``. + + The samples cover the retinal window of the physical camera; the gaze turns the rendered camera pose. + """ + + cfg: FoveatedCameraCfg + + def __init__(self, cfg: FoveatedCameraCfg): + # The parent's initialisation updates poses before the rays exist. + self._foveated_rays: wp.array | None = None + super().__init__(cfg) def _initialize_impl(self): + # The pooler's KNN tensors are plain attributes that nn.Module.to() does not move, so the coordinates start on + # the CPU and the pooler is built on the sensor device after the parent initializes. + self._sampling_coords, matched_res = build_lowres_coords(self.cfg, device="cpu") + self._native_grid = self.cfg.foveated_style == GRID_STYLE + self._sampling_coords_highres = build_highres_coords(self.cfg, self._sampling_coords, matched_res) + self._num_valid_samples = len(self._sampling_coords) + self._num_ray_samples = len(self._sampling_coords_highres or self._sampling_coords) + logger.info( + "FoveatedNewtonCamera: %d samples (%d rendered), style=%s, cmf_a=%.4g deg, field of view=%.1f deg", + self._num_valid_samples, + self._num_ray_samples, + self.cfg.foveated_style, + self._sampling_coords.cmf_a, + self._sampling_coords.fov, + ) + + # The parent allocates render buffers for the rendered rays: the high-resolution ones when pooling. + ray_coords = self._sampling_coords_highres or self._sampling_coords + self.cfg.height, self.cfg.width = grid_output_shape(ray_coords) renderer = self.cfg.renderer_cfg if renderer.render_order == "tiled": - tile_width, tile_height = renderer.tile_rendering_width, renderer.tile_rendering_height + tile_width = renderer.tile_rendering_width + tile_height = renderer.tile_rendering_height if tile_width <= 0 or tile_height <= 0: raise ValueError("Newton render tile dimensions must be positive.") - if self.cfg.width % tile_width or self.cfg.height % tile_height: - raise ValueError( - f"Foveated grid {self.cfg.width}x{self.cfg.height} must be divisible by Newton tile size " - f"{tile_width}x{tile_height}; adjust foveated_res or use a non-tiled render order." + if self._native_grid: + self._validate_native_render_layout(tile_width, tile_height) + else: + # Pack consecutive vector rays into complete tiles. Padding is + # private renderer storage and never enters masking or pooling. + self.cfg.width = tile_width + self.cfg.height = ( + (self._num_ray_samples + tile_width * tile_height - 1) // (tile_width * tile_height) * tile_height ) super()._initialize_impl() + + self._sampling_coords = self._sampling_coords.to(device=self._device) + if self._sampling_coords_highres is not None: + self._sampling_coords_highres = self._sampling_coords_highres.to(device=self._device) + self._ray_coords = self._sampling_coords_highres or self._sampling_coords self._initialize_gaze() - rays = self._retinal_rays.new_zeros((self.cfg.height, self.cfg.width, 1, 2, 3)) - rays[..., 1, :] = self._retinal_rays.view(self.cfg.height, self.cfg.width, 1, 3) - # Newton allocates its default rays only once. Replace them before the first capture. - self._render_data.camera_rays = wp.from_torch(rays, dtype=wp.vec3f) - self._render_output = self._data.output - self._prepare_grid_publish({name: value.torch for name, value in self._render_output.items()}) + self._pooler, self._pool_k = build_pooler( + self.cfg, self._sampling_coords, self._sampling_coords_highres, device=str(self._device) + ) + + # The gaze geometry's rendered rays, in canonical sample order and rolled by image_rotation_deg, back in the + # OpenGL frame Newton traces. + self._ray_directions = self._gaze_rays * self._gaze_rays.new_tensor(OPENGL_TO_ROS_AXES) + self._foveated_rays = explicit_rays(self._ray_directions, self.cfg.height, self.cfg.width) + render_samples = self.cfg.height * self.cfg.width + # Renderer buffers remain whole tiles; zero-copy canonical views hide + # trailing padding and preserve every output's dtype and sample order. + self._render_output = dict(self._data.output) + self._flat_render_output = {} + for name, value in self._render_output.items(): + tensor = value.torch + flat = tensor.view(tensor.shape[0], render_samples, 1, tensor.shape[-1]) + self._flat_render_output[name] = ProxyArray(wp.from_torch(flat[:, : self._num_ray_samples])) + self._data.output.clear() + self._data.output.update(self._flat_render_output) + + self._allocate_pooled_buffers() + source = self._pooled_output if self._pooler is not None else self._flat_render_output + self._sample_output = None + if self._pooler is None and not self._native_grid: + # Newton redraws every environment, so sample sets publish a copy that changes only on update. + self._sample_output = { + name: torch.zeros_like(value.torch) + for name, value in self._flat_render_output.items() + if not (name == "rgb" and "rgba" in self._flat_render_output) + } + if "rgba" in self._sample_output and "rgb" in self._flat_render_output: + self._sample_output["rgb"] = self._sample_output["rgba"][..., :3] + source = self._sample_output + if self._native_grid: + self._grid_output = allocate_grid_outputs(source, self._sampling_coords) + self._grid_indices = grid_sample_indices(self._sampling_coords) + source = self._grid_output + # The buffers the camera publishes: stable for the camera's lifetime and refilled each frame. + self._public_output = proxy_outputs(source) + self._data.output.clear() + self._data.output.update(self._public_output) + self._set_published_shape(self._public_output) + if self._native_grid and self._pooler is None: + self._prepare_grid_publish( + {name: value.torch.squeeze(2) for name, value in self._flat_render_output.items()} + ) + self._render_data.camera_rays = self._foveated_rays + + def _validate_native_render_layout(self, tile_width: int, tile_height: int) -> None: + """Reject a native grid that Newton's tiles cannot cover, before the parent allocates render buffers.""" + if self.cfg.width % tile_width or self.cfg.height % tile_height: + raise ValueError( + f"Native-grid Newton render size {self.cfg.width}x{self.cfg.height} " + f"must be divisible by renderer tile size {tile_width}x{tile_height}. " + "Choose foveated_res and pool_res_mult so the rendered grid satisfies " + "these dimensions, or select a non-tiled Newton render_order." + ) + + def _allocate_pooled_buffers(self) -> None: + """Allocate pooled output tensors; the renderer keeps writing the high-resolution buffers.""" + if self._pooler is None: + return + self._highres_output: dict[str, ProxyArray] = dict(self._data.output) + self._pooled_output: dict[str, torch.Tensor] = {} + for name, tex in self._highres_output.items(): + if name == "rgb" and "rgba" in self._highres_output: + continue # an alias of rgba, below + tensor = tex.torch + B, _, _, C = tensor.shape + self._pooled_output[name] = torch.zeros( + (B, self._num_valid_samples, 1, C), dtype=tensor.dtype, device=tensor.device + ) + # The renderer publishes rgb as a view of rgba whenever either is requested; so does the pooled output. + if "rgb" in self._highres_output and "rgba" in self._pooled_output: + self._pooled_output["rgb"] = self._pooled_output["rgba"][..., :3] + self._prepare_segmentation_pooling(self._highres_output) + dtypes_summary = {n: str(t.dtype).removeprefix("torch.") for n, t in self._highres_output.items()} + logger.info( + "FoveatedNewtonCamera: %s pooling (mode=%s k=%s sample_cortex=%s N_hi=%d -> N_lo=%d) outputs=%s", + type(self._pooler).__name__, + self.cfg.pool_mode, + self._pool_k, + self.cfg.pool_sample_cortex, + self._num_ray_samples, + self._num_valid_samples, + dtypes_summary, + ) + + def _update_poses( + self, + env_ids: Sequence[int] | wp.array | None = None, + env_mask: wp.array | None = None, + frame_op: int = 0, + ) -> None: + """Read base poses, turn them by the gaze, update the renderer once, and inject the foveated rays. + + The scene pose is read even without a gaze: the camera may inherit + motion from a parent body. + """ + # The base update turns the poses by the gaze in _update_camera_state, then hands them to the renderer. + Camera._update_poses(self, env_ids, env_mask=env_mask, frame_op=frame_op) + if self._foveated_rays is not None: + self._render_data.camera_rays = self._foveated_rays def _update_buffers_impl(self, env_mask: wp.array): - # Newton's render may redraw every environment. Only publish the rows due for update. - published = self._data.output - self._data._output = self._render_output + """Render, then mask and publish the updated environments, pooling high-resolution samples if enabled. + + Newton redraws every environment's render buffer, each at the pose and gaze it last received. The sensor mask, + its visibility record and the published buffers, which the camera owns, change only for the updated + environments. + """ + self._data.output.clear() + self._data.output.update(self._render_output) try: super()._update_buffers_impl(env_mask) finally: - self._data._output = published - self._publish_grid(env_mask) + self._data.output.clear() + self._data.output.update(self._public_output) + if not self._env_mask_has_any(env_mask): + return + if self._pooler is None: + if self._grid_publish: + self._publish_grid(env_mask) + else: + self._apply_sensor_fov_mask(self._flat_render_output, env_mask) + for name, samples in self._sample_output.items(): + if name == "rgb" and "rgba" in self._sample_output: + continue # rgba alias + copy_updated_rows(self._flat_render_output[name].torch, samples, env_mask) + return + mask_grid_samples(self._highres_output, self._ray_coords) + self._apply_sensor_fov_mask(self._highres_output, env_mask) + for name, hi in self._highres_output.items(): + if name == "rgb" and "rgba" in self._highres_output: + continue # rgba alias + # Pooling covers every environment; only the updated ones are published. + copy_updated_rows(self._pool_output(name, hi.torch), self._pooled_output[name], env_mask) + if self._native_grid: + copy_grid_outputs(self._pooled_output, self._grid_output, self._grid_indices) @staticmethod def _pose_update_turns_gaze(cfg: FoveatedCameraCfg) -> bool: diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py index b9136e1bb02c..7260df107eed 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py @@ -3,11 +3,19 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Native foveated lens textures for Isaac RTX and OVRTX.""" +"""RTX foveated tiled camera sensor. + +Subclasses :class:`isaaclab.sensors.Camera` to render foveated images +via the RTX path tracer using ``OmniLensDistortionLutAPI`` textures. +Per-sample values are extracted from the rendered 2D texture to produce +vector ``(B, N, 1, C)`` or upright native-grid ``(B, H, W, C)`` output buffers, +identical to :class:`FoveatedNewtonCamera`. +""" from __future__ import annotations import logging +import math import tempfile from collections.abc import Sequence from typing import TYPE_CHECKING @@ -17,25 +25,44 @@ from isaaclab import sim as sim_utils from isaaclab.sensors.camera.camera import Camera -from isaaclab.utils.math import ( - convert_camera_frame_orientation_convention, - normalize, - quat_conjugate, - quat_from_matrix, - quat_mul, -) +from isaaclab.utils import clone +from isaaclab.utils.math import convert_camera_frame_orientation_convention, matrix_from_quat, quat_from_matrix from . import lens_lut +from .calibrated_geometry import compose_rotations, retinal_directions from .foveated_camera import FoveatedCamera +from .native_grid import ( + GRID_STYLE, + allocate_grid_outputs, + copy_grid_outputs, + copy_updated_rows, + grid_sample_indices, + mask_grid_samples, + proxy_outputs, +) +from .pooling import build_highres_coords, build_lowres_coords, build_pooler if TYPE_CHECKING: + from isaaclab.utils.warp import ProxyArray + from .foveated_camera_cfg import FoveatedCameraCfg logger = logging.getLogger(__name__) class FoveatedRTXCamera(FoveatedCamera): - """Render the shared retinal grid through an RTX lens lookup texture.""" + """RTX camera that renders with foveated (CMF-distributed) rays. + + Instead of Newton's Warp ray arrays, this sensor creates + ``OmniLensDistortionLutAPI`` Camera prims with LUT textures that define + per-texel ray directions. The RTX path tracer renders a 2D texture + which is then sampled at pre-computed UV positions to extract per-sample + values, producing ``(B, N, 1, C)`` output buffers. + + Grid styles render straight into their native grid. Sample-set styles are + packed onto a cortical disc, which keeps neighbouring samples adjacent for + DLSS denoising. Camera motion comes from the prim's parent and from the gaze. + """ cfg: FoveatedCameraCfg @@ -46,8 +73,16 @@ def __init__(self, cfg: FoveatedCameraCfg): "OVRTX async_rendering returns the previous capture, which the sensor mask would cut with the current" " gaze. Disable async_rendering or mask_to_sensor_fov." ) - super().__init__(cfg) + # The parent ``Camera`` allocates the renderer-bound texture buffers; the published ones follow from them. + self._texture_output: dict[str, ProxyArray] = {} + self._foveated_output: dict[str, torch.Tensor] = {} + self._pooled_output: dict[str, torch.Tensor] | None = None + # The projection sets the texture size on the configuration before the parent allocates for it; the caller's + # configuration stays untouched. + cfg = clone(cfg) + self.cfg = cfg self._prepare_projection() + super().__init__(cfg) # The lens belongs to the camera prims from construction: OVRTX snapshots the stage when the renderer starts. for prim in sim_utils.find_matching_prims(self.cfg.prim_path, self.stage): # A locked camera may be treated as static, which skips the motion vectors that DLSS reprojection needs; @@ -84,56 +119,110 @@ def get_world_poses(self, env_ids=None, convention="ros"): """ positions, orientations = super().get_world_poses(env_ids, convention="opengl") if not self._gaze_pose_reads_angles and self._gaze_rotation is not None: - ids = self._resolve_env_ids_wp(env_ids) - rotation = self._relative_gaze() - if ids is not None: - rotation = rotation[wp.to_torch(ids).long()] - orientations = quat_mul(orientations, quat_conjugate(rotation)) + # The prims hold the mount turned by the gaze's rotation in their own (OpenGL) frame. + basis = self._gaze_basis + gaze = self._gaze_rotation.torch[self._env_indices(env_ids)] + with torch.autocast(basis.device.type, enabled=False): + relative = compose_rotations(compose_rotations(basis, gaze), basis.T) + orientations = quat_from_matrix( + compose_rotations(matrix_from_quat(orientations), relative.transpose(-1, -2)) + ) return positions, convert_camera_frame_orientation_convention(orientations, origin="opengl", target=convention) def process_rendered_frame(self) -> None: - """Publish the grid after scalar or batched rendering.""" - env_mask = self._is_outdated - if not self._env_mask_has_any(env_mask): + """Mask and publish the frame of the environments that scalar or batched rendering updated.""" + if not self._env_mask_has_any(self._is_outdated): + return + if self._grid_publish: + self._publish_grid(self._is_outdated) return - if self._near_clip is not None: - # OVRTX measures distance from the near-clipped ray origin. The scratch is a publication - # source, so this leaves the renderer's bound buffer and unselected public rows untouched. - torch.add(self._distance_source, self._near_clip, out=self._distance_corrected) - self._publish_grid(env_mask) + # Only the updated environments' samples change, so pooling and the grid layout reproduce every other + # environment's last frame. + self._extract_foveated_samples(self._is_outdated) + mask_grid_samples(self._foveated_output, self._ray_coords) + self._apply_sensor_fov_mask(self._foveated_output, self._is_outdated) + + if self._pooled_output is not None: + for name, hi in self._foveated_output.items(): + if name == "rgb" and "rgba" in self._foveated_output: + continue # rgba alias + self._pooled_output[name].copy_(self._pool_output(name, hi)) + if self._native_grid: + source = self._pooled_output if self._pooled_output is not None else self._foveated_output + copy_grid_outputs(source, self._grid_output, self._grid_indices) def _prepare_projection(self) -> None: + # The lens textures and sample extraction use the rendered samples: the high-resolution ones when pooling. + self._sampling_coords, matched_res = build_lowres_coords(self.cfg, device="cpu") + self._sampling_coords_highres = build_highres_coords(self.cfg, self._sampling_coords, matched_res) + ray_coords = self._sampling_coords_highres or self._sampling_coords + self._ray_coords = ray_coords + self._native_grid = self.cfg.foveated_style == GRID_STYLE + self._num_valid_samples = len(self._sampling_coords) + self._num_ray_samples = len(ray_coords) + + size = ray_coords.resolution + if not self._native_grid: + size = max(64, math.ceil(math.sqrt(4 * self._num_ray_samples / math.pi))) exit_size = self.cfg.exit_texture_size if exit_size is None: - exit_size = max(128, 4 * self.cfg.foveated_res) - direction, exit_texture = lens_lut.build_native_grid_textures( - self._sampling_coords, - self._retinal_rays, - image_rotation_deg=self.cfg.image_rotation_deg, - exit_size=exit_size, - ) + exit_size = max(128, 4 * size) + if self._native_grid: + dir_tex, exit_tex = lens_lut.build_native_grid_textures( + ray_coords, image_rotation_deg=self.cfg.image_rotation_deg, exit_size=exit_size + ) + else: + # Pack sample sets on the cortical disc so nearby samples stay adjacent for RTX filtering. + theta = ray_coords.polar[:, 1].to(torch.float64) + if self.cfg.image_rotation_deg: + theta = theta + math.radians(float(self.cfg.image_rotation_deg)) + eccentricity = ray_coords.polar[:, 0].to(torch.float64) * (ray_coords.fov / 2.0) + self._sample_uv = lens_lut.samples_uv_cortical_disc( + eccentricity, theta, ray_coords.fov, ray_coords.cmf_a, device="cpu" + ) + dirs = retinal_directions(ray_coords.cartesian, ray_coords.fov, self.cfg.image_rotation_deg) + dir_tex, exit_tex = lens_lut.build_lut_textures( + self._sample_uv, dirs, size, size, exit_size, exit_size, device="cpu" + ) + self._texture_width = self._texture_height = size + + # The camera owns its textures' directory, which is removed when the camera is released. self._lut_dir = tempfile.TemporaryDirectory(prefix="rtx_foveated_luts_") self._dir_tex_path, self._exit_tex_path = lens_lut.save_lut_textures( - direction, exit_texture, self._lut_dir.name, "foveated" + dir_tex, exit_tex, self._lut_dir.name, "foveated" + ) + logger.info( + "FoveatedRTXCamera: %d samples (%d rendered), style=%s, cmf_a=%.4g deg, field of view=%.1f deg, " + "texture %dx%d, exit lookup %dx%d, lookup textures in %s", + self._num_valid_samples, + self._num_ray_samples, + self.cfg.foveated_style, + ray_coords.cmf_a, + ray_coords.fov, + size, + size, + exit_size, + exit_size, + self._lut_dir.name, ) + self.cfg.height = self.cfg.width = size def _initialize_impl(self) -> None: + tw, th = self._texture_width, self._texture_height + # OVRTX measures distance_to_camera from each camera's near-clipped ray origin, so it needs the near clips. + self._offset_distance = ( + self.cfg.renderer_cfg.renderer_type == "ovrtx" and "distance_to_camera" in self.cfg.data_types + ) + near_clips = None + if self._offset_distance: + prims = sim_utils.find_matching_prims(self.cfg.prim_path, self.stage) + near_clips = [self._near_clipping_distance(prim) for prim in prims] + super()._initialize_impl() - self._initialize_gaze() - if not self._gaze_pose_reads_angles: - _, local_orientation = self._view.get_local_poses() - self._base_local_orientation = local_orientation.torch.clone() - self._gaze_basis_quat = quat_from_matrix(self._gaze_basis) - sources = {name: value.torch for name, value in self._data.output.items()} self._near_clip = None - if self.cfg.renderer_cfg.renderer_type == "ovrtx" and "distance_to_camera" in sources: - near_clips = [self._near_clipping_distance(camera.GetPrim()) for camera in self._sensor_prims] - self._distance_source = sources["distance_to_camera"] - self._near_clip = self._distance_source.new_tensor(near_clips).view(-1, 1, 1, 1) - self._distance_corrected = torch.empty_like(self._distance_source) - sources["distance_to_camera"] = self._distance_corrected - self._prepare_grid_publish(sources) + if near_clips is not None: + self._near_clip = torch.tensor(near_clips, dtype=torch.float32, device=self._device).view(-1, 1, 1, 1) # OVRTX owns its runtime; Kit extensions belong only to Isaac RTX. if self.cfg.renderer_cfg.renderer_type == "isaac_rtx": @@ -144,6 +233,45 @@ def _initialize_impl(self) -> None: if not ext_manager.set_extension_enabled_immediate(ext_name, True): logger.warning("Could not enable Kit extension '%s'; the lens lookup may not render.", ext_name) + self._sampling_coords = self._sampling_coords.to(device=self._device) + if self._sampling_coords_highres is not None: + self._sampling_coords_highres = self._sampling_coords_highres.to(device=self._device) + self._ray_coords = self._sampling_coords_highres or self._sampling_coords + self._initialize_gaze() + _, local_orientation = self._view.get_local_poses() + self._base_local_orientation = matrix_from_quat(local_orientation.torch).clone() + self._pooler, self._pool_k = build_pooler( + self.cfg, self._sampling_coords, self._sampling_coords_highres, device=str(self._device) + ) + + # The renderer keeps writing the texture buffers the parent bound to it; the camera publishes others. + self._texture_output = self._data.output + textures = {name: tex.torch for name, tex in self._texture_output.items()} + # A native grid texture already holds the samples in order, so one kernel per output masks it and lays it + # out. OVRTX's camera distance needs its near-plane offset first, and keeps the step-by-step path. + fused = self._native_grid and self._pooler is None and not self._offset_distance + if fused: + count = self._num_ray_samples + samples = {name: tex.reshape(tex.shape[0], count, tex.shape[-1]) for name, tex in textures.items()} + self._grid_output = allocate_grid_outputs(samples, self._sampling_coords) + self._grid_indices = grid_sample_indices(self._sampling_coords) + self._prepare_grid_publish(samples) + published = self._grid_output + else: + if not self._native_grid: + uv_gpu = self._sample_uv.to(self._device) + self._extract_px = (uv_gpu[:, 0] * tw).long().clamp(0, tw - 1) + self._extract_py = (uv_gpu[:, 1] * th).long().clamp(0, th - 1) + self._allocate_foveated_buffers() + published = self._pooled_output if self._pooled_output is not None else self._foveated_output + if self._native_grid: + self._grid_output = allocate_grid_outputs(published, self._sampling_coords) + self._grid_indices = grid_sample_indices(self._sampling_coords) + published = self._grid_output + # ``CameraData.output`` is read-only, so its backing field is replaced. + self._data._output = proxy_outputs(published) + self._set_published_shape(self._data._output) + def _near_clipping_distance(self, prim) -> float: """Near clipping distance [m] of the camera, from its spawn configuration or else its prim.""" if self.cfg.spawn is not None: @@ -153,37 +281,64 @@ def _near_clipping_distance(self, prim) -> float: clipping = UsdGeom.Camera(prim).GetClippingRangeAttr().Get() return float(clipping[0]) if clipping is not None else 0.0 - def set_world_poses(self, positions=None, orientations=None, env_ids=None, convention="ros"): - """Move the mount while retaining its relative gaze.""" - super().set_world_poses(positions, orientations, env_ids, convention) - if orientations is not None and not self._gaze_pose_reads_angles: - ids = self._resolve_env_ids_wp(env_ids) - self._mount_written(slice(None) if ids is None else wp.to_torch(ids).long()) + def _allocate_foveated_buffers(self): + """Allocate (B, N_hi, 1, C) and, when pooling, (B, N_lo, 1, C) buffers from the texture buffers' shapes.""" + has_rgba_alias = "rgba" in self._texture_output + self._foveated_output = {} + for name, buf in self._texture_output.items(): + if name == "rgb" and has_rgba_alias: + continue # an alias of rgba, below + # Texture buffers are ProxyArrays; their Torch view carries the dtype and device. + buf_t = buf.torch + self._foveated_output[name] = torch.zeros( + (self._view.count, self._num_ray_samples, 1, buf_t.shape[-1]), device=buf_t.device, dtype=buf_t.dtype + ) + # The renderer publishes rgb as a view of rgba whenever either is requested; so do the foveated outputs. + if "rgb" in self._texture_output and "rgba" in self._foveated_output: + self._foveated_output["rgb"] = self._foveated_output["rgba"][:, :, :, :3] - def set_world_poses_from_view(self, eyes, targets, env_ids=None): - """Point the mount at a target while retaining its relative gaze.""" - super().set_world_poses_from_view(eyes, targets, env_ids) - if not self._gaze_pose_reads_angles: - # The base setter leaves rows with a degenerate look-at direction untouched. - moved = (self._as_device_tensor(eyes, 3) != self._as_device_tensor(targets, 3)).any(dim=-1) - ids = self._resolve_env_ids_wp(env_ids) - self._mount_written(moved if ids is None else wp.to_torch(ids).long()[moved]) + if self._pooler is None: + self._pooled_output = None + return + self._pooled_output = {} + for name, buf in self._foveated_output.items(): + if name == "rgb" and has_rgba_alias: + continue + self._pooled_output[name] = torch.zeros( + (self._view.count, self._num_valid_samples, 1, buf.shape[-1]), device=self._device, dtype=buf.dtype + ) + if "rgb" in self._texture_output and "rgba" in self._pooled_output: + self._pooled_output["rgb"] = self._pooled_output["rgba"][:, :, :, :3] + self._prepare_segmentation_pooling(self._pooled_output) + logger.info( + "FoveatedRTXCamera: %s pooling (mode=%s k=%s sample_cortex=%s N_hi=%d -> N_lo=%d)", + type(self._pooler).__name__, + self.cfg.pool_mode, + self._pool_k, + self.cfg.pool_sample_cortex, + self._num_ray_samples, + self._num_valid_samples, + ) - def _mount_written(self, ids) -> None: + def _mount_written(self, env_ids) -> None: + """Save the moved prims' orientations as their bare mounts and write the gaze on top of them again.""" + if self._gaze_pose_reads_angles: + return # The pose update turns the new mount by the gaze. + ids = self._env_indices(env_ids) _, local_orientation = self._view.get_local_poses() - self._base_local_orientation[ids] = local_orientation.torch[ids] + self._base_local_orientation[ids] = matrix_from_quat(local_orientation.torch[ids]) if self._gaze_rotation is not None: self._write_gaze_local_pose() - def _relative_gaze(self) -> torch.Tensor: - basis = self._gaze_basis_quat.expand(self._view.count, -1) - gaze = quat_from_matrix(self._gaze_rotation.torch) - return quat_mul(quat_mul(basis, gaze), quat_conjugate(basis)) - def _write_gaze_local_pose(self) -> None: - # Replicator reads camera prims. Write the gaze onto the bare local mount so parent motion is preserved. - orientation = normalize(quat_mul(self._base_local_orientation, self._relative_gaze())) - self._view.set_local_poses(orientations=wp.from_torch(orientation.contiguous(), dtype=wp.vec4f)) + # Replicator reads camera prims, not update_camera's pose arguments. + # Write when the command arrives, before a visualizer can render the step. + # The saved local base prevents accumulation and preserves parent motion. + basis = self._gaze_basis + with torch.autocast(basis.device.type, enabled=False): + relative = compose_rotations(compose_rotations(basis, self._gaze_rotation.torch), basis.T) + local_orientation = quat_from_matrix(compose_rotations(self._base_local_orientation, relative)) + self._view.set_local_poses(orientations=wp.from_torch(local_orientation.contiguous(), dtype=wp.vec4f)) def _update_buffers_impl(self, env_mask: wp.array): if not self._env_mask_has_any(env_mask): @@ -192,6 +347,24 @@ def _update_buffers_impl(self, env_mask: wp.array): super()._update_buffers_impl(env_mask) self.process_rendered_frame() + def _extract_foveated_samples(self, env_mask: wp.array): + """Extract the updated environments' per-sample values from the rendered 2D textures into the (B, N, 1, C) + buffers; the other environments keep their last samples.""" + for name in self._texture_output: + if name == "rgb" and "rgba" in self._texture_output: + continue # rgba alias + tex = self._texture_output[name] # (B, th, tw, C) + fov = self._foveated_output[name] # (B, N, 1, C) + tensor = tex.torch + if self._native_grid: + samples = tensor.reshape_as(fov) + else: + samples = tensor[:, self._extract_py, self._extract_px, :].unsqueeze(2) + if self._offset_distance and name == "distance_to_camera": + # OVRTX measures the distance from the near-clipped ray origin. + samples = samples + self._near_clip.to(samples.dtype) + copy_updated_rows(samples, fov, env_mask) + @staticmethod def _pose_update_turns_gaze(cfg: FoveatedCameraCfg) -> bool: # OVRTX renders the poses the camera hands it, so its pose update turns the gaze. Replicator reads camera diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py index c8fccd044385..1f90730b1ec4 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py @@ -178,23 +178,43 @@ def set_gaze_kernel( rotation[i] = gaze_rotation(angles) +@wp.func +def turn_pose( + i: wp.int32, + gaze: wp.mat33f, + basis: wp.mat33f, + to_opengl: wp.quatf, + to_world: wp.quatf, + to_ros: wp.quatf, + orientation: wp.array(dtype=wp.quatf), + mount: wp.array(dtype=wp.quatf), +): + """Record camera ``i``'s mount in the ROS convention, then turn its world orientation by its gaze.""" + base = orientation[i] + mount[i] = wp.normalize(base * to_ros) + orientation[i] = gaze_pose(base, gaze, basis, to_opengl, to_world) + + @wp.kernel(enable_backward=False) def apply_gaze_kernel( angles_deg: wp.array(dtype=wp.vec2f), basis: wp.mat33f, to_opengl: wp.quatf, to_world: wp.quatf, + to_ros: wp.quatf, mask: wp.array(dtype=wp.bool), use_mask: wp.int32, orientation: wp.array(dtype=wp.quatf), rotation: wp.array(dtype=wp.mat33f), + mount: wp.array(dtype=wp.quatf), ): - """Turn each updated camera and save the rotation used for its capture.""" + """Turn each camera's world orientation by its gaze, or only the masked ones, and record their mounts and gaze + rotations; every other camera keeps the rotation its pose was turned by.""" i = wp.tid() if use_mask == 0 or mask[i]: gaze = gaze_rotation(angles_deg[i]) rotation[i] = gaze - orientation[i] = gaze_pose(orientation[i], gaze, basis, to_opengl, to_world) + turn_pose(i, gaze, basis, to_opengl, to_world, to_ros, orientation, mount) @wp.kernel(enable_backward=False) @@ -203,15 +223,17 @@ def apply_gaze_indexed_kernel( basis: wp.mat33f, to_opengl: wp.quatf, to_world: wp.quatf, + to_ros: wp.quatf, indices: wp.array(dtype=wp.int32), orientation: wp.array(dtype=wp.quatf), rotation: wp.array(dtype=wp.mat33f), + mount: wp.array(dtype=wp.quatf), ): - """Turn the indexed cameras' world orientations by their gaze, and record their gaze rotations.""" + """Turn the indexed cameras' world orientations by their gaze, and record their mounts and gaze rotations.""" i = indices[wp.tid()] gaze = gaze_rotation(angles_deg[i]) rotation[i] = gaze - orientation[i] = gaze_pose(orientation[i], gaze, basis, to_opengl, to_world) + turn_pose(i, gaze, basis, to_opengl, to_world, to_ros, orientation, mount) @wp.func @@ -220,6 +242,27 @@ def sees(ray: wp.vec3f, gaze: wp.mat33f, frame: wp.mat33f, camera: CameraParams) return project_direction(frame * gaze * wp.transpose(frame) * ray, camera)[2] > 0.5 +@wp.kernel(enable_backward=False) +def sensor_visibility_kernel( + rays: wp.array(dtype=wp.vec3f), + rotation: wp.array(dtype=wp.mat33f), + frame: wp.mat33f, + camera: CameraParams, + updated: wp.array(dtype=wp.bool), + valid: wp.array2d(dtype=wp.bool), + hidden: wp.array2d(dtype=wp.bool), +): + """Whether the physical camera sees each rendered ray turned by each updated environment's gaze, and which + updated samples it does not see; other environments keep their last visibility and hide nothing.""" + env, sample = wp.tid() + if not updated[env]: + hidden[env, sample] = False + return + seen = sees(rays[sample], rotation[env], frame, camera) + valid[env, sample] = seen + hidden[env, sample] = not seen + + @wp.kernel(enable_backward=False) def publish_grid_kernel( source: wp.array3d(dtype=wp.uint8), @@ -231,6 +274,8 @@ def publish_grid_kernel( frame: wp.mat33f, camera: CameraParams, mask_to_sensor: wp.int32, + record_visible: wp.int32, + visible: wp.array2d(dtype=wp.bool), target: wp.array3d(dtype=wp.uint8), ): """Copy the updated environments' rendered samples into the upright grid, zeroing samples outside the footprint @@ -243,10 +288,42 @@ def publish_grid_kernel( return sample = indices[cell] keep = footprint[sample] - if keep and mask_to_sensor != 0: - keep = sees(rays[sample], rotation[env], frame, camera) + if mask_to_sensor != 0: + seen = sees(rays[sample], rotation[env], frame, camera) + if record_visible != 0: + visible[env, sample] = seen + keep = keep and seen for k in range(target.shape[2]): if keep: target[env, cell, k] = source[env, sample, k] else: target[env, cell, k] = wp.uint8(0) + + +@wp.kernel(enable_backward=False) +def project_directions_kernel( + directions: wp.array(dtype=wp.vec3f), + camera: CameraParams, + pixels: wp.array(dtype=wp.vec2f), + valid: wp.array(dtype=wp.bool), +): + i = wp.tid() + result = project_direction(directions[i], camera) + pixels[i] = wp.vec2f(result[0], result[1]) + valid[i] = result[2] > 0.5 + + +def project_directions(directions: torch.Tensor, camera: CameraParams) -> tuple[torch.Tensor, torch.Tensor]: + """Project (..., 3) camera-frame directions to (..., 2) pixels and (...,) validity, in one launch.""" + flat = directions.detach().reshape(-1, 3).float().contiguous() + pixels = torch.empty(len(flat), 2, dtype=torch.float32, device=flat.device) + valid = torch.empty(len(flat), dtype=torch.bool, device=flat.device) + if len(flat): + with torch_stream(flat.device): + wp.launch( + project_directions_kernel, + dim=len(flat), + inputs=[wp.from_torch(flat, dtype=wp.vec3f), camera], + outputs=[wp.from_torch(pixels, dtype=wp.vec2f), wp.from_torch(valid, dtype=wp.bool)], + ) + return pixels.reshape(*directions.shape[:-1], 2), valid.reshape(directions.shape[:-1]) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/lens_lut.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/lens_lut.py index 520ac075cb39..383c4f12f14b 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/lens_lut.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/lens_lut.py @@ -13,7 +13,7 @@ * **rayExitPositionTexture** ``(EW × EH, RG float32)`` Inverse map: given a ray direction (octahedral-encoded over ``[0,1]²``), - returns sensor NDC ``(u, v)`` in the native grid. + returns the sensor NDC ``(u, v)`` of the nearest sample. Isaac RTX and OVRTX both render through this API; the legacy generalized-projection camera attributes are not used. @@ -27,6 +27,7 @@ from __future__ import annotations +import math import os from typing import TYPE_CHECKING @@ -34,7 +35,7 @@ import torch from fovi.sensing.coords import SamplingCoords -from .native_grid import native_grid_exit_uv +from .native_grid import native_grid_directions, native_grid_exit_uv if TYPE_CHECKING: from pxr import Usd @@ -61,14 +62,96 @@ def save_exr(path: str, data: torch.Tensor) -> None: def build_native_grid_textures( - coords: SamplingCoords, rays: torch.Tensor, *, image_rotation_deg: float, exit_size: int + coords: SamplingCoords, *, image_rotation_deg: float, exit_size: int ) -> tuple[torch.Tensor, torch.Tensor]: """Build native direction texels and an analytic octahedral inverse map.""" + directions = native_grid_directions(coords, image_rotation_deg=image_rotation_deg).reshape( + coords.resolution, coords.resolution, 3 + ) decoded = torch.stack(_octahedral_decode(exit_size, exit_size, device=coords.device), -1) uv, valid = native_grid_exit_uv(decoded, coords, image_rotation_deg=image_rotation_deg) # Out-of-sensor rays must not be projected into the fovea by the inverse LUT. exit_texture = torch.where(valid[..., None], uv, torch.full_like(uv, -1)) - return rays.reshape(coords.resolution, coords.resolution, 3), exit_texture + return directions, exit_texture + + +def build_lut_textures( + samples_uv: torch.Tensor, + ray_directions: torch.Tensor, + texture_width: int, + texture_height: int, + exit_width: int, + exit_height: int, + chunk: int = 8192, + *, + device: torch.device | str, +) -> tuple[torch.Tensor, torch.Tensor]: + """Build direction and exit LUT tensors from a labelled set of sensor samples. + + Both tensors are filled by **nearest-neighbour assignment**. + + Args: + samples_uv: ``(N, 2)`` float32. NDC ``(u, v)`` per sample. + ray_directions: ``(N, 3)`` float32. Unit ray direction per sample. + texture_width, texture_height: Direction LUT dimensions. + exit_width, exit_height: Exit LUT dimensions. + chunk: NN search batch size. + device: Torch device. + + Returns: + ``(direction_texture, exit_texture)`` — + ``(H, W, 3)`` and ``(EH, EW, 2)`` float32 tensors. + """ + uv_t = _t(samples_uv, torch.float32, device) + dirs_t = _t(ray_directions, torch.float32, device) + N = uv_t.shape[0] + + # Direction texture. + dir_out = torch.zeros(texture_height, texture_width, 3, dtype=torch.float32, device=device) + dir_out[:, :, 2] = -1.0 + + if N > 0: + # Each texel takes the ray of the sample nearest it in UV, whatever order the samples come in. + u_t = (torch.arange(texture_width, dtype=torch.float32, device=device) + 0.5) / texture_width + v_t = (torch.arange(texture_height, dtype=torch.float32, device=device) + 0.5) / texture_height + U = u_t.unsqueeze(0).expand(texture_height, texture_width) + V = v_t.unsqueeze(1).expand(texture_height, texture_width) + texel_uv = torch.stack([U.reshape(-1), V.reshape(-1)], dim=1) + k_nn = _nn_chunk(texel_uv, uv_t, chunk) + dir_out.reshape(-1, 3)[:] = dirs_t[k_nn] + + # Exit texture: only texels whose direction lies within the samples' field (r <= max_r) map to a sample; the rest + # hold the invalid UV (-1, -1), as in native-grid LUTs, so rays outside the field never reach the fovea. + d = dirs_t.to(torch.float64) + r_s = (torch.atan2((d[:, 0] ** 2 + d[:, 1] ** 2).sqrt(), (-d[:, 2]).clamp(min=1e-20)) * (180.0 / math.pi)).float() + th_s = torch.atan2(d[:, 1], d[:, 0]).float() + xs = r_s * th_s.cos() + ys = r_s * th_s.sin() + max_r = float(r_s.max().item()) if N > 0 else 0.0 + + oct_x, oct_y, oct_z = _octahedral_decode(exit_width, exit_height, device=device) + r_q = (torch.atan2((oct_x**2 + oct_y**2).sqrt(), (-oct_z).clamp(min=1e-20)) * (180.0 / math.pi)).float() + th_q = torch.atan2(oct_y.float(), oct_x.float()) + xq = r_q * th_q.cos() + yq = r_q * th_q.sin() + + odz_f = oct_z.float() + valid = (r_q <= max_r) & (odz_f < -1e-9) + + exit_u = torch.full((exit_height, exit_width), -1.0, dtype=torch.float32, device=device) + exit_v = torch.full((exit_height, exit_width), -1.0, dtype=torch.float32, device=device) + + if N > 0 and valid.any(): + sample_cart = torch.stack([xs, ys], dim=1) + vf = valid.reshape(-1) + query_cart = torch.stack([xq.reshape(-1)[vf], yq.reshape(-1)[vf]], dim=1) + k_exit = _nn_chunk(query_cart, sample_cart, chunk) + eu_flat = exit_u.reshape(-1) + ev_flat = exit_v.reshape(-1) + eu_flat[vf] = uv_t[k_exit, 0] + ev_flat[vf] = uv_t[k_exit, 1] + + return dir_out, torch.stack([exit_u, exit_v], dim=2) def save_lut_textures( @@ -109,6 +192,37 @@ def apply_lens_lut_to_prim( ) +def samples_uv_cortical_disc( + r_deg, + theta_rad, + fov_deg: float, + cmf_a: float, + device: torch.device | str, +) -> torch.Tensor: + """Map samples to NDC using the cortical polar disc layout. + + ``ρ = log((r + a) / a)``, mapped to a centered disc. + Foveal centre ``r=0`` → disc centre ``(0.5, 0.5)``. + + Returns: + ``(N, 2)`` float32 NDC tensor. + """ + rho_max = math.log((fov_deg / 2.0 + cmf_a) / cmf_a) + r = _t(r_deg, torch.float64, device) + th = _t(theta_rad, torch.float64, device) + rho = ((r + cmf_a) / cmf_a).clamp(min=1e-30).log() + u = (rho * th.cos() / (2.0 * rho_max) + 0.5).float() + v = (-rho * th.sin() / (2.0 * rho_max) + 0.5).float() + return torch.stack([u, v], dim=1) + + +def _t(x, dtype: torch.dtype, device) -> torch.Tensor: + """Convert array-like or tensor *x* to a ``torch.Tensor`` on *device*.""" + if isinstance(x, torch.Tensor): + return x.to(dtype=dtype, device=device) + return torch.as_tensor(np.asarray(x), dtype=dtype, device=device) + + def _octahedral_decode( width: int, height: int, @@ -130,3 +244,22 @@ def _octahedral_decode( dy = torch.where(dz <= 0.0, (1.0 - px.abs()) * sy, py) n = torch.clamp((dx**2 + dy**2 + dz**2).sqrt(), min=1e-20) return dx / n, dy / n, -dz / n + + +def _nn_chunk(query: torch.Tensor, keys: torch.Tensor, chunk: int) -> torch.Tensor: + """Chunked nearest-neighbour search via ``torch.cdist``. + + Chunk size is capped so the float32 distance matrix stays within 2 GiB. + + Returns: + ``(M,)`` int64 index of the closest key for each query row. + """ + N = keys.shape[0] + safe_chunk = max(1, (2 << 30) // (4 * max(N, 1))) + effective = min(chunk, safe_chunk) + M = query.shape[0] + idx = torch.empty(M, dtype=torch.long, device=query.device) + for s in range(0, M, effective): + e = min(s + effective, M) + idx[s:e] = torch.cdist(query[s:e], keys).argmin(dim=1) + return idx diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py index de7c5a9c76f0..459bdb690094 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py @@ -8,10 +8,54 @@ from __future__ import annotations import math +from collections.abc import Mapping +from typing import Protocol import torch +import warp as wp from fovi.sensing.coords import SamplingCoords -from fovi.sensing.projection import angular_directions + +from isaaclab.utils.warp import ProxyArray +from isaaclab.utils.warp.memory import make_masked_copy + +from .gaze_kernels import warp_stream + +GRID_STYLE = "warped_cartesian_as_grid" + + +def buffer_tensor(value: torch.Tensor | TorchBuffer) -> torch.Tensor: + """Get a renderer or public tensor without copying.""" + return value if isinstance(value, torch.Tensor) else value.torch + + +def proxy_outputs(outputs: Mapping[str, torch.Tensor | ProxyArray]) -> dict[str, ProxyArray]: + """Wrap output buffers as zero-copy :class:`ProxyArray` values, as :class:`CameraData` publishes them.""" + return { + name: ProxyArray(wp.from_torch(value)) if isinstance(value, torch.Tensor) else value + for name, value in outputs.items() + } + + +def copy_updated_rows(source: torch.Tensor, target: torch.Tensor, rows: wp.array) -> None: + """Copy the environments that ``rows`` selects from ``source`` into ``target``, shape (num_envs, N, 1, C). + + The other environments keep their values. The masked copy needs no full-batch temporary and no host sync. + + Args: + source: The new samples; may be a strided view. + target: The published samples, written in place. + rows: Which environments to copy, shape (num_envs,) of ``bool``. + """ + source3, target3 = source.squeeze(2), target.squeeze(2) + dtype = wp.dtype_from_torch(target.dtype) + wp.launch( + make_masked_copy(dtype, 3), + dim=tuple(target3.shape), + inputs=[wp.from_torch(source3, dtype=dtype), rows, None], + outputs=[wp.from_torch(target3, dtype=dtype)], + device=str(target.device), + stream=warp_stream(target.device), + ) def bounded_angular_radius(radius: torch.Tensor, half_fov_rad: float) -> torch.Tensor: @@ -42,17 +86,21 @@ def native_grid_directions(coords: SamplingCoords, *, image_rotation_deg: float Grid radius is proportional to visual angle, and the padding outside the nominal field continues toward the antipode without wrapping. """ - + _require_spherical(coords) cartesian = coords.cartesian.to(torch.float64) radius = torch.linalg.vector_norm(cartesian, dim=-1) - half_fov = math.radians(coords.fov) / 2 - padded_radius = bounded_angular_radius(radius, half_fov) / half_fov - scale = torch.where(radius > 0, padded_radius / radius.clamp_min(1e-30), 1.0) - rays = angular_directions(cartesian * scale[:, None], coords.fov) - x, y, z = rays.unbind(-1) + boundary_radius, boundary_angle = _angular_padding_boundary(coords) + angle = bounded_angular_radius(radius / boundary_radius, boundary_angle) + scale = torch.where(radius > 0, angle.sin() / radius.clamp_min(1e-30), angle.new_zeros(())) + xy = cartesian * scale[:, None] + z = -angle.cos() angle = math.radians(image_rotation_deg) - c, s = math.cos(angle), math.sin(angle) - return torch.stack((c * x + s * y, s * x - c * y, -z), -1).float() + x, y = xy.unbind(-1) + rays = torch.stack( + (math.cos(angle) * x - math.sin(angle) * y, math.sin(angle) * x + math.cos(angle) * y, z), + -1, + ) + return torch.nn.functional.normalize(rays, dim=-1).float() def native_grid_exit_uv( @@ -63,15 +111,99 @@ def native_grid_exit_uv( Texture rows and columns follow canonical vector order: native x then y. The public image applies Fovi's upright grid permutation after rendering. """ + _require_spherical(coords) angle = math.radians(image_rotation_deg) x, y, z = directions.to(torch.float64).unbind(-1) xy = torch.stack((math.cos(angle) * x + math.sin(angle) * y, -math.sin(angle) * x + math.cos(angle) * y), -1) lateral = torch.linalg.vector_norm(xy, dim=-1) theta = torch.atan2(lateral, -z) - radius = unbounded_angular_radius(theta, math.radians(coords.fov) / 2) + boundary_radius, boundary_angle = _angular_padding_boundary(coords) + radius = unbounded_angular_radius(theta, boundary_angle) * boundary_radius cartesian = xy * (radius / lateral.clamp_min(1e-30))[..., None] visible = theta < math.pi - 1e-8 native = coords.visual_to_native(cartesian) uv = (native.flip(-1) + 1) / 2 visible = visible & (uv >= 0).all(-1) & (uv <= 1).all(-1) return uv.float(), visible + + +def grid_output_shape(coords: SamplingCoords) -> tuple[int, int]: + """Resolve public image dimensions, preserving vector cameras' shape.""" + if coords.style == GRID_STYLE: + return coords.resolution, coords.resolution + return len(coords), 1 + + +def mask_grid_samples(outputs: Mapping[str, torch.Tensor | TorchBuffer], coords: SamplingCoords) -> None: + """Zero samples outside the configured footprint before pooling or publication.""" + if coords.style != GRID_STYLE: + return + invalid = ~coords.valid_mask[None, :, None, None] + for name, value in outputs.items(): + if name == "rgb" and "rgba" in outputs: + continue + tensor = buffer_tensor(value) + tensor.masked_fill_(invalid, 0) + + +def allocate_grid_outputs( + outputs: Mapping[str, torch.Tensor | TorchBuffer], coords: SamplingCoords +) -> dict[str, torch.Tensor]: + """Allocate stable public BHWC buffers from flat renderer outputs.""" + result: dict[str, torch.Tensor] = {} + for name, value in outputs.items(): + if name == "rgb" and "rgba" in outputs: + continue + tensor = buffer_tensor(value) + result[name] = tensor.new_zeros((tensor.shape[0], coords.resolution, coords.resolution, tensor.shape[-1])) + if "rgb" in outputs and "rgba" in result: + result["rgb"] = result["rgba"][..., :3] + return result + + +def grid_sample_indices(coords: SamplingCoords) -> torch.Tensor: + """Resolve the public image permutation once, outside rendering updates.""" + return coords.as_grid(torch.arange(len(coords), device=coords.device)).reshape(-1) + + +def copy_grid_outputs( + source: Mapping[str, torch.Tensor | TorchBuffer], + target: dict[str, torch.Tensor], + indices: torch.Tensor, +) -> None: + """Update stable public image buffers without changing sample ordering.""" + for name, value in source.items(): + if name == "rgb" and "rgba" in source: + continue + tensor = buffer_tensor(value) + flat_source = tensor.reshape(tensor.shape[0], -1, tensor.shape[-1]) + flat_target = target[name].view(tensor.shape[0], -1, tensor.shape[-1]) + torch.index_select(flat_source, 1, indices, out=flat_target) + + +class TorchBuffer(Protocol): + """Renderer buffer exposing a Torch view.""" + + @property + def torch(self) -> torch.Tensor: ... + + +def _require_spherical(coords: SamplingCoords) -> None: + if coords.field_geometry != "spherical": + raise ValueError(f"Foveated cameras sample spherical coordinates, got {coords.field_geometry!r}.") + + +def _angular_padding_boundary(coords: SamplingCoords) -> tuple[float, float]: + if coords.fov_type == "circular": + radius = 1.0 + elif coords.fov_type == "square": + radius = math.sqrt(2) + elif coords.fov_type == "wang": + corner = coords.cartesian.new_tensor([[1.0, 1.0]]) + radius = float(torch.linalg.vector_norm(coords.native_to_visual(corner)).item()) + else: + raise ValueError(f"Unsupported native grid footprint {coords.fov_type!r}.") + angle = radius * math.radians(coords.fov) / 2 + if angle >= math.pi: + raise ValueError("Spherical native grid footprint reaches the antipode; reduce FoV or use circular coverage.") + return radius, angle diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py new file mode 100644 index 000000000000..c7093b517c9b --- /dev/null +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py @@ -0,0 +1,282 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""Shared retinal-pooling helpers for FoveatedCamera backends. + +Builds a pair of (lowres, highres) :class:`SamplingCoords` and a retinal +pooler analogous to :class:`fovi.sensing.samplers.PoolingGridSampler`, but driven by a +:class:`FoveatedCameraCfg` and operating on rays rather than images. + +Key deviation from ``PoolingGridSampler``: the highres grid shares ``cmf_a`` with +the lowres grid (no ``cmf_a_mult``). Only ``res`` is scaled by +``pool_res_mult`` so the photoreceptor and RGC layers represent the same +visual-field geometry at different densities. + +Construction happens in two stages to accommodate Isaac's sensor init order: +1. ``build_lowres_coords`` + ``build_highres_coords`` run *before* + ``super()._initialize_impl()`` (CPU) so the backend can size its render + buffers from the highres sample count. +2. ``build_pooler`` runs *after* coords have been moved to the sensor's + device, so the KNN indices/distances/Gaussian weights materialise on the + correct device (they are plain tensor attributes and are not moved by + ``nn.Module.to``). +""" + +from __future__ import annotations + +from typing import TYPE_CHECKING + +import torch +from fovi.arch.knn import KNNPoolingLayer +from fovi.arch.pooling import GridPoolingLayer, build_retinal_pooler +from fovi.sensing.coords import SamplingCoords, auto_match_num_coords + +from .calibrated_geometry import sampling_geometry + +if TYPE_CHECKING: + from .foveated_camera_cfg import FoveatedCameraCfg + + +# Upper bound on ``batch * outputs * k`` elements per modal-pooling chunk. Each chunk holds about ten +# int64 tensors of this size, so peak scratch memory stays near 300 MB regardless of the batch size. +_MODAL_CHUNK_ELEMENTS = 2**22 + + +def build_lowres_coords(cfg: FoveatedCameraCfg, device: str) -> tuple[SamplingCoords, int]: + """Build the lowres (RGC / public output) SamplingCoords. + + Returns ``(lowres_coords, matched_res)`` where ``matched_res`` is the + auto-matched radial resolution also needed for the highres grid. + """ + fov, cmf_a = sampling_geometry(cfg) + + matched_res, _ = auto_match_num_coords( + fov, + cmf_a, + cfg.foveated_res, + cfg.foveated_style, + 1, + device, + quiet=True, + fov_type=cfg.fov_type, + radius_norm=cfg.radius_norm, + field_geometry="spherical", + ) + lowres = SamplingCoords( + fov=fov, + cmf_a=cmf_a, + res=matched_res, + device=device, + style=cfg.foveated_style, + isotropic_plotting_type=cfg.isotropic_plotting_type, + fov_type=cfg.fov_type, + radius_norm=cfg.radius_norm, + field_geometry="spherical", + ) + return lowres, matched_res + + +def build_highres_coords(cfg: FoveatedCameraCfg, lowres: SamplingCoords, matched_res: int) -> SamplingCoords | None: + """Build the highres (photoreceptor) SamplingCoords when pooling is on: the lowres retina's geometry at + ``pool_res_mult`` times its resolution, on the same device.""" + if not cfg.pool_enabled: + return None + # pool_res_mult is a float to support fractional ratios (e.g. sqrt(2) for + # a 2× N_hi/N_lo ratio). SamplingCoords requires an integer radial res. + return lowres.clone(resolution=int(round(cfg.pool_res_mult * matched_res))) + + +def build_pooler( + cfg: FoveatedCameraCfg, + lowres: SamplingCoords, + highres: SamplingCoords | None, + device: str, +) -> tuple[KNNPoolingLayer | GridPoolingLayer | None, int | None]: + """Build the retinal pooling layer of ``cfg.pool_mode``, which pools every output except segmentation. Both coord + sets must already be on ``device``. + + Segmentation pools by modal label over this pooler's neighbourhoods: pass :func:`segmentation_neighbor_indices` of + it to :func:`pool_segmentation_buffer`. + """ + if highres is None: + return None, None + return build_retinal_pooler( + highres, + lowres, + k=cfg.pool_k, + mode=cfg.pool_mode, + device=device, + sample_cortex=cfg.pool_sample_cortex, + gauss_sigma=cfg.pool_gauss_sigma, + ) + + +def segmentation_neighbor_indices(pooler: KNNPoolingLayer | GridPoolingLayer) -> torch.Tensor: + """Return a pooler's ``(k, N_lo)`` neighbour table in tie-break order. + + Entries are input-sample indices; ``N_hi`` (the number of input samples) + marks a neighbour excluded by the pooler (spatial padding or a masked input + sample), and every slot of a masked output sample is excluded. + + * :class:`KNNPoolingLayer`: its padded KNN indices, nearest neighbour first. + * :class:`GridPoolingLayer`: the samples in each pooling window (same + padding, stride and masks as the pooler), ordered by distance from the + window centre and then in row-major window order. + """ + if isinstance(pooler, KNNPoolingLayer): + return pooler.knn_indices_pad_token + if not isinstance(pooler, GridPoolingLayer): + raise TypeError(f"Modal pooling needs a KNN or grid pooler, got {type(pooler).__name__}") + + num_inputs = len(pooler.in_coords) + device = pooler.input_mask.device + # Pool sample indices (float64 is exact for any realistic count) with the pooler's own padding; + # -1 marks padding and masked samples. + grid = pooler.in_coords.as_grid(torch.arange(num_inputs, device=device, dtype=torch.float64)[None, None]) + grid = pooler._pad(torch.where(pooler.input_mask, grid, -1.0), -1.0) + side, stride = pooler.kernel_size, pooler.stride + windows = grid[0, 0].unfold(0, side, stride).unfold(1, side, stride) # (H_lo, W_lo, side, side) + windows = windows.flatten(-2).permute(2, 0, 1) # (k, H_lo, W_lo) + axis = torch.arange(side, device=device, dtype=torch.float64) - (side - 1) / 2 + radius = (axis[:, None].square() + axis[None, :].square()).flatten() + windows = windows[torch.sort(radius, stable=True).indices] + windows = torch.where(pooler.output_mask[0], windows, -1.0) + if not pooler.polar: + # Invert the upright Cartesian layout produced by ``as_grid``, as GridPoolingLayer.forward does. + windows = windows.flip(-2).transpose(-2, -1) + indices = windows.flatten(-2).long() + return torch.where(indices < 0, num_inputs, indices) + + +def is_segmentation_output(name: str) -> bool: + """Whether a sensor output holds segmentation labels, which pool with ``pool_int_mode``, the modal label + (:func:`pool_segmentation_buffer`). + + Uses the key name (``"segmentation" in name``) rather than the dtype: every Isaac Lab segmentation variant + (``semantic_segmentation``, ``instance_segmentation_fast``, ``instance_id_segmentation_fast``) holds labels that + averaging would corrupt, whether stored as integer IDs or colorized RGBA. + """ + return "segmentation" in name + + +def pool_hwc_buffer( + pooler: KNNPoolingLayer | GridPoolingLayer, buf: torch.Tensor, visible: torch.Tensor | None = None +) -> torch.Tensor: + """Pool a ``(B, N_hi, 1, C)`` sensor buffer into ``(B, N_lo, 1, C)``. + + Both poolers expect ``(B, C, N)`` inputs, so we permute in and out. + + Args: + pooler: The retinal pooler. + buf: ``(B, N_hi, 1, C)`` floating-point samples. + visible: ``(B, N_hi)`` photoreceptors the physical camera sees, or None for all. The others are left out of + each pooled sample, as the pooler leaves out photoreceptors outside the retina, and a pooled sample that + sees none is zero. + """ + B, N_hi, one, C = buf.shape + assert one == 1, f"expected (B, N, 1, C) buffer, got {buf.shape}" + x = buf[:, :, 0, :].transpose(1, 2).contiguous() # (B, C, N_hi) + if visible is None: + y = pooler(x) # (B, C, N_lo) + else: + seen = visible[:, None, :] + weight = seen.to(x.dtype) + if pooler.mode == "sum": + y = pooler(x * weight) + else: + # Pool the samples with their visibility in one call: a weighted mean over the visible photoreceptors is + # the pooled masked samples over the pooled mask, and a max over them ignores -inf. + masked = torch.where(seen, x, -torch.inf) if pooler.mode == "max" else x * weight + pooled = pooler(torch.cat((masked, weight), dim=1)) + values, coverage = pooled[:, :C], pooled[:, C:] + if pooler.mode != "max": + values = values / coverage.clamp_min(torch.finfo(x.dtype).tiny) + y = torch.where(coverage > 0, values, 0) + return y.transpose(1, 2).unsqueeze(2).contiguous() # (B, N_lo, 1, C) + + +def pool_segmentation_buffer( + neighbors: torch.Tensor, buf: torch.Tensor, visible: torch.Tensor | None = None +) -> torch.Tensor: + """Pool a ``(B, N_hi, 1, C)`` segmentation buffer into ``(B, N_lo, 1, C)`` by majority vote. + + Each output sample takes the most common full channel vector among its + pooling neighbours (so neighbours ``[0, 0, 0]``, ``[0, 0, 0]``, + ``[0, 0, 1]`` give ``[0, 0, 0]``), keeping the buffer's dtype: values are + compared bitwise and copied from an input sample, never converted or mixed. + This holds for integer IDs of any width and for colorized RGBA vectors. + + Ties go to the value whose first occurrence comes earliest in the pooler's + neighbour order (see :func:`segmentation_neighbor_indices`; the nearest + neighbour wins for KNN pooling). Neighbours the pooler excludes, or the + physical camera does not see, do not vote, and outputs without any valid + neighbour are zero, as in fovi. + + Args: + neighbors: ``(k, N_lo)`` neighbour table from :func:`segmentation_neighbor_indices`, on the buffer's device. + buf: ``(B, N_hi, 1, C)`` buffer of any dtype. + visible: ``(B, N_hi)`` photoreceptors the physical camera sees, or None for all. + + Returns: + ``(B, N_lo, 1, C)`` pooled buffer with the dtype of ``buf``. + """ + B, N_hi, one, C = buf.shape + assert one == 1, f"expected (B, N, 1, C) buffer, got {buf.shape}" + indices = neighbors # (k, N_lo), N_hi = excluded + k, N_lo = indices.shape + values = buf[:, :, 0, :].contiguous() # (B, N_hi, C) + # Equality keys, padded with one never-voting sample at index N_hi. + keys = torch.nn.functional.pad(_equality_keys(values), (0, 1)) # (B, N_hi + 1) + valid = (indices != N_hi).T # (N_lo, k) + table = indices.T # (N_lo, k) + chunk_size = max(1, _MODAL_CHUNK_ELEMENTS // max(1, N_lo * k)) + # Visibility, padded like the keys; the never-voting sample is unseen. + seen = None if visible is None else torch.nn.functional.pad(visible, (0, 1)).split(chunk_size) + slots = [] + for index, chunk in enumerate(keys.split(chunk_size)): + chunk_valid = valid if seen is None else valid & seen[index][:, table] # (N_lo, k) or (b, N_lo, k) + slots.append(_modal_slot(chunk[:, table], chunk_valid)) + slot = torch.cat(slots) # (B, N_lo); k where no neighbour is valid + has_value = slot < k + # (B, N_lo) input sample index; outputs without a value read sample 0 and are zeroed below. + source = table.gather(1, slot.clamp(max=k - 1).T).T.clamp(max=N_hi - 1) + pooled = values.gather(1, source.unsqueeze(-1).expand(-1, -1, C)) + pooled = torch.where(has_value.unsqueeze(-1), pooled, torch.zeros((), dtype=buf.dtype, device=buf.device)) + return pooled.unsqueeze(2) + + +def _equality_keys(values: torch.Tensor) -> torch.Tensor: + """Map ``(B, N, C)`` channel vectors to ``(B, N)`` int64 keys that are equal iff the vectors are bitwise equal. + + Vectors of at most 8 bytes are packed into the key directly; wider vectors + fall back to dense ranks from :func:`torch.unique`. + """ + B, N, _ = values.shape + raw = values.view(torch.uint8) if values.dtype != torch.bool else values.to(torch.uint8) + num_bytes = raw.shape[-1] + if num_bytes <= 8: + return torch.nn.functional.pad(raw, (0, 8 - num_bytes)).view(torch.int64).reshape(B, N) + return torch.unique(raw.reshape(B * N, num_bytes), dim=0, return_inverse=True)[1].reshape(B, N) + + +def _modal_slot(keys: torch.Tensor, valid: torch.Tensor) -> torch.Tensor: + """Pick the modal neighbour slot of ``(B, N_lo, k)`` keys; ``valid`` is the ``(N_lo, k)`` or ``(B, N_lo, k)`` + voting mask. + + Returns the ``(B, N_lo)`` earliest slot holding the most common valid key, + or ``k`` where no slot is valid. + """ + k = keys.shape[-1] + sorted_keys, order = torch.sort(keys, dim=-1) + # Label equal-key runs in sorted order, then count valid votes and find the earliest valid slot per run. + new_run = torch.ones_like(sorted_keys, dtype=torch.bool) + new_run[..., 1:] = sorted_keys[..., 1:] != sorted_keys[..., :-1] + run = new_run.cumsum(-1) - 1 + valid_sorted = valid.expand_as(order).gather(-1, order) + votes = torch.zeros_like(run).scatter_add_(-1, run, valid_sorted.long()) + earliest = torch.full_like(run, k).scatter_reduce_(-1, run, torch.where(valid_sorted, order, k), "amin") + # Most votes first, then earliest slot; runs without valid votes score zero. + best = (votes * (k + 1) + (k - earliest)).argmax(-1, keepdim=True) + return earliest.gather(-1, best).squeeze(-1) diff --git a/source/isaaclab_fovi/test/test_active_gaze.py b/source/isaaclab_fovi/test/test_active_gaze.py index df6b8c4c88fa..001403d620f1 100644 --- a/source/isaaclab_fovi/test/test_active_gaze.py +++ b/source/isaaclab_fovi/test/test_active_gaze.py @@ -3,7 +3,7 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""The gaze action, its observation, without a simulator.""" +"""The gaze action, its observation and its teacher, without a simulator.""" import math from types import SimpleNamespace @@ -11,14 +11,38 @@ import pytest import torch import warp as wp -from isaaclab_fovi.mdp.gaze import GazeAction, gaze_state, gaze_step_kernel +from fovi.sensing.projection import CameraModel +from isaaclab_fovi.mdp.gaze import ( + GazeAction, + gaze_reset_kernel, + gaze_state, + gaze_step_kernel, + teacher_block_dim, + teacher_labels_kernel, +) from isaaclab_fovi.mdp.gaze_cfg import GazeActionCfg -from isaaclab_fovi.sensors.gaze_kernels import torch_stream +from isaaclab_fovi.sensors.gaze_kernels import camera_params, torch_stream +from isaaclab.test.utils import DeviceScope, test_devices +from isaaclab.utils.math import quat_apply, quat_apply_inverse from isaaclab.utils.warp import ProxyArray pytestmark = pytest.mark.kitless +DEVICES = test_devices(DeviceScope.CPU_AND_DEFAULT_CUDA) + + +def angles_to_direction(angles_deg: torch.Tensor) -> torch.Tensor: + """Camera-frame unit directions of gaze angles [deg], shape (..., 2) to (..., 3): up and left are positive.""" + tilt, pan = angles_deg.deg2rad().unbind(-1) + return torch.stack((-tilt.cos() * pan.sin(), -tilt.sin(), tilt.cos() * pan.cos()), -1) + + +def direction_to_angles(direction: torch.Tensor) -> torch.Tensor: + """Gaze angles [deg] of camera-frame directions, shape (..., 3) to (..., 2): the reference for the kernels.""" + x, y, z = direction.unbind(-1) + return torch.stack((-torch.atan2(y, torch.sqrt(x.square() + z.square())), -torch.atan2(x, z)), -1).rad2deg() + def clamp_gaze(gaze: torch.Tensor, limit: float) -> torch.Tensor: """Gazes scaled back onto the circle of radius ``limit`` when they leave it: the reference for the step kernel.""" @@ -55,9 +79,131 @@ def test_gaze_step_kernel_matches_the_torch_update(): torch.testing.assert_close(angles, expected * radius, atol=1e-5, rtol=1e-6) -def test_gaze_config_rejects_invalid_bounds(): +def mount_frame(rotation_deg: float) -> torch.Tensor: + """The camera's ``_mask_frame`` for an image rolled by ``rotation_deg``: upright gaze frame to physical frame.""" + angle = torch.tensor(rotation_deg).deg2rad() + c, s = float(angle.cos()), float(angle.sin()) + return torch.tensor([[c, s, 0.0], [-s, c, 0.0], [0.0, 0.0, 1.0]]) + + +# The kernel's block size depends on the device; the image roll is rotated across the two. +TEACHER_CASES = [("cpu", 0.0)] + [(device, 35.0) for device in DEVICES if device != "cpu"] + + +@pytest.mark.parametrize(("device", "rotation_deg"), TEACHER_CASES) +def test_teacher_labels_kernel_matches_the_torch_labels(device, rotation_deg): + camera = CameraModel("pinhole", (480, 640), (400.0, 400.0, 319.5, 239.5), distortion=(-0.1, 0.02, 0.0, 0.0)) + field_radius, step, limit = 30.0, 0.1, 1.0 + frame = mount_frame(rotation_deg) + generator = torch.Generator().manual_seed(5) + count = 4099 + # Each camera has its own mount, as on a moving head. + mount = torch.nn.functional.normalize(torch.randn(count, 4, generator=generator), dim=-1) + positions = torch.randn(count, 3, generator=generator) + lateral = torch.randn(count, 2, generator=generator) * 0.6 + local = torch.cat((lateral, torch.rand(count, 1, generator=generator) + 0.2), -1) + targets = positions + quat_apply(mount, local) + orientations = torch.nn.functional.normalize(torch.randn(count, 4, generator=generator), dim=-1) + offset = torch.tensor([0.0, 0.0, 0.3]) + gaze = (torch.rand(count, 2, generator=generator) * 2 - 1) * 0.7 + + # The torch path the kernel replaces: the point fixed to each target, the teacher, then the labels and logs. + points = targets + quat_apply(orientations, offset.expand(count, -1)) + direction = torch.nn.functional.normalize(quat_apply_inverse(mount, points - positions), dim=-1) + + def teachable(direction: torch.Tensor) -> torch.Tensor: + # Gazes are measured in the upright image frame, which the frame carries into the physical camera's. + desired = direction_to_angles(direction @ frame) / field_radius + return camera.project(direction)[1] & (desired.norm(dim=-1) <= limit) + + upright = direction @ frame + desired = direction_to_angles(upright) / field_radius + valid = teachable(direction) + # A target within 1e-4 rad of the image edge, the lens's widest angle or the gaze limit may land on either side + # in float32; every other target must agree exactly. + nudges = 1e-4 * torch.cat((torch.eye(3), -torch.eye(3))) + decisive = torch.stack( + [teachable(torch.nn.functional.normalize(direction + nudge, dim=-1)) == valid for nudge in nudges] + ).all(0) + action = torch.where(valid[:, None], ((desired - gaze) / step).clamp(-1, 1), 0.0) + looking = angles_to_direction(gaze * field_radius) + error = torch.atan2(torch.cross(looking, upright, dim=-1).norm(dim=-1), (looking * upright).sum(-1)).rad2deg() + expected = torch.cat((action, valid[:, None].float()), dim=-1) + + labels = torch.empty(count, 3, device=device) + log = torch.full((2,), float("nan"), device=device) + block = teacher_block_dim(device) + with torch_stream(device): + wp.launch( + teacher_labels_kernel, + dim=(1, block), + inputs=[ + wp.from_torch(targets.to(device), dtype=wp.vec3f), + wp.from_torch(orientations.to(device), dtype=wp.quatf), + wp.vec3f(*offset.tolist()), + wp.from_torch(positions.to(device), dtype=wp.vec3f), + wp.from_torch(mount.to(device), dtype=wp.quatf), + wp.from_torch((gaze * field_radius).to(device), dtype=wp.vec2f), + wp.mat33f(*frame.flatten().tolist()), + field_radius, + step, + limit, + camera_params(camera), + ], + outputs=[wp.from_torch(labels), wp.from_torch(log)], + block_dim=block, + ) + labels, log = labels.cpu(), log.cpu() + assert valid[decisive].any() and (~valid[decisive]).any() and decisive.float().mean() > 0.99 + torch.testing.assert_close(labels[decisive], expected[decisive], atol=1e-4, rtol=0) + labelled = labels[:, 2] > 0.5 + assert float(log[1]) == pytest.approx(float(labelled.float().mean())) + assert float(log[0]) == pytest.approx(float(error[labelled].mean()), rel=1e-4) + + +def test_teacher_gaze_fixates_the_target_through_a_rolled_mount(): + """Following a teacher label puts the fixation, which reaches the physical camera at frame * gaze * z, on the + target.""" + rotation_deg = 120.0 + camera = CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5)) + field_radius, step = 40.0, 10.0 + frame = mount_frame(rotation_deg) + direction = torch.nn.functional.normalize(torch.tensor([[0.25, -0.15, 1.0], [-0.3, 0.2, 1.0]]), dim=-1) + count = len(direction) + identity = torch.tensor([[0.0, 0.0, 0.0, 1.0]]).repeat(count, 1) + labels, log = torch.empty(count, 3), torch.empty(2) + with torch_stream("cpu"): + wp.launch( + teacher_labels_kernel, + dim=(1, 1), + inputs=[ + wp.from_torch(direction, dtype=wp.vec3f), + wp.from_torch(identity, dtype=wp.quatf), + wp.vec3f(0.0, 0.0, 0.0), + wp.zeros(count, dtype=wp.vec3f), + wp.from_torch(identity, dtype=wp.quatf), + wp.zeros(count, dtype=wp.vec2f), + wp.mat33f(*frame.flatten().tolist()), + field_radius, + step, + 1.0, + camera_params(camera), + ], + outputs=[wp.from_torch(labels), wp.from_torch(log)], + block_dim=1, + ) + assert (labels[:, 2] == 1).all() + gaze = labels[:, :2] * step + fixation = angles_to_direction(gaze * field_radius) @ frame.T + torch.testing.assert_close(fixation, direction, atol=1e-5, rtol=0) + # The error is the gaze's angle from the target before the step: the gaze starts on the optical axis. + torch.testing.assert_close(log[0], direction[:, 2].acos().rad2deg().mean(), atol=1e-3, rtol=0) + + +def test_gaze_config_rejects_bounds_that_divide_by_zero_and_unknown_mounts(): GazeActionCfg(asset_name="camera").validate_config() - for field, value in (("step_size", 0.0), ("step_size", float("nan")), ("gaze_limit", math.inf)): + GazeActionCfg(asset_name="camera", mount="tracked").validate_config() + for field, value in (("step_size", 0.0), ("step_size", float("nan")), ("gaze_limit", math.inf), ("mount", "head")): cfg = GazeActionCfg(asset_name="camera") setattr(cfg, field, value) with pytest.raises(ValueError, match=field): @@ -78,22 +224,22 @@ def test_process_actions_moves_the_gaze_by_the_supplied_actions(): term._asset = camera term.field_radius_deg = 20.0 term._state = ProxyArray(wp.zeros(num_envs, dtype=wp.vec4f, device="cpu")) - term._all_ids = wp.array(list(range(num_envs)), dtype=wp.int32, device="cpu") + term._velocity = term._state.torch[:, 2:] term._step_launch = term._raw = None manager_actions = torch.zeros(num_envs, 5) manager_actions[:, 2:4] = torch.tensor([[1.0, 0.0], [0.0, -1.0], [0.5, 0.5], [3.0, 0.0]]) term.process_actions(manager_actions[:, 2:4]) expected = clamp_gaze(manager_actions[:, 2:4].clamp(-1, 1) * 0.1, 1.0) - torch.testing.assert_close(term.processed_actions, expected) - torch.testing.assert_close(term.state[:, 2:], expected / 0.5) + torch.testing.assert_close(term.gaze, expected) + torch.testing.assert_close(term.velocity, expected / 0.5) torch.testing.assert_close(angles.torch, expected * 20.0) assert set_angles[-1] is angles.torch assert term.raw_actions.data_ptr() == manager_actions[:, 2:4].data_ptr() supplied = torch.tensor([[-1.0, 0.0]]).repeat(num_envs, 1) term.process_actions(supplied) - torch.testing.assert_close(term.processed_actions, clamp_gaze(expected - 0.1 * supplied.abs(), 1.0)) + torch.testing.assert_close(term.gaze, clamp_gaze(expected - 0.1 * supplied.abs(), 1.0)) assert term.raw_actions is supplied torch.testing.assert_close( gaze_state(SimpleNamespace(action_manager=SimpleNamespace(get_term=lambda name: term))), term.state @@ -102,11 +248,47 @@ def test_process_actions_moves_the_gaze_by_the_supplied_actions(): # A gaze set on the camera directly is where the next step starts. angles.torch.copy_(torch.tensor([[10.0, 0.0]]).repeat(num_envs, 1)) term.process_actions(torch.zeros(num_envs, 2)) - torch.testing.assert_close(term.processed_actions, torch.tensor([[0.5, 0.0]]).repeat(num_envs, 1)) - - previous = term.state.clone() - term.reset([3, 1]) - torch.testing.assert_close(term.state[[0, 2]], previous[[0, 2]]) - assert not term.state[[1, 3]].any() and not angles.torch[[1, 3]].any() - term.reset() - assert not term.state.any() and not angles.torch.any() + torch.testing.assert_close(term.gaze, torch.tensor([[0.5, 0.0]]).repeat(num_envs, 1)) + + +@pytest.mark.parametrize(("ids", "random_start"), [(None, False), ([3, 0, 7], True)]) +def test_gaze_reset_kernel_matches_the_torch_reset(ids, random_start): + count, radius = 10, 23.6 + generator = torch.Generator().manual_seed(6) + angles, state = (torch.randn(count, size, generator=generator) for size in (2, 4)) + selected = torch.arange(count) if ids is None else torch.tensor(ids) + start = torch.randn(len(selected), 2, generator=generator) if random_start else torch.zeros(len(selected), 2) + expected_angles, expected_state = angles.clone(), state.clone() + # The torch reset the kernel replaces: the gaze at its start, at rest. + expected_state[selected] = torch.cat((start, torch.zeros_like(start)), dim=-1) + expected_angles[selected] = start * radius + + with torch_stream("cpu"): + wp.launch( + gaze_reset_kernel, + dim=len(selected), + inputs=[ + wp.from_torch(selected.to(torch.int32)) if ids is not None else wp.zeros(1, dtype=wp.int32), + int(ids is not None), + wp.from_torch(start, dtype=wp.vec2f) if random_start else wp.zeros(1, dtype=wp.vec2f), + int(random_start), + radius, + ], + outputs=[wp.from_torch(angles, dtype=wp.vec2f), wp.from_torch(state, dtype=wp.vec4f)], + ) + torch.testing.assert_close(angles, expected_angles, atol=0, rtol=0) + torch.testing.assert_close(state, expected_state, atol=0, rtol=0) + + +def test_fixed_mount_teacher_rejects_only_turns_after_capture(): + """The fixed-mount teacher aims from the captured mount while the camera has turned its mount as many times as + when the term captured it, and refuses once a later turn makes the capture stale.""" + term = object.__new__(GazeAction) + term.tracked_mount = False + term._mount_turns = 2 + term._fixed_mount = "captured" + term._asset = SimpleNamespace(mount_turns=2) + assert GazeAction.teacher_mounts(term) == "captured" + term._asset.mount_turns = 3 + with pytest.raises(RuntimeError, match="mount='tracked'"): + GazeAction.teacher_mounts(term) diff --git a/source/isaaclab_fovi/test/test_camera_cfg.py b/source/isaaclab_fovi/test/test_camera_cfg.py index a3c1e0d712ef..aa783bcb2330 100644 --- a/source/isaaclab_fovi/test/test_camera_cfg.py +++ b/source/isaaclab_fovi/test/test_camera_cfg.py @@ -14,7 +14,7 @@ import pytest import torch from isaaclab_fovi.sensors import FoveatedCamera, FoveatedCameraCfg -from isaaclab_fovi.sensors.calibrated_geometry import resolve_camera_model +from isaaclab_fovi.sensors.calibrated_geometry import resolve_camera_model, sampling_geometry from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera from isaaclab_newton.renderers import NewtonWarpRendererCfg @@ -48,22 +48,24 @@ def ray_angle_deg(camera, pixel: tuple[float, float]) -> float: def test_defaults_are_grid_sampling_at_the_human_cmf_estimate() -> None: cfg = FoveatedCameraCfg() + assert cfg.foveated_style == "warped_cartesian_as_grid" assert cfg.cmf_a_deg == 0.591 assert cfg.camera_model is None def test_pinhole_spawn_describes_an_ideal_pinhole_across_its_short_side() -> None: spawn = PinholeCameraCfg() - camera = resolve_camera_model(make_cfg(spawn=spawn)) - fov = camera.field_of_view("short") + fov, cmf_a = sampling_geometry(make_cfg(spawn=spawn)) expected = math.degrees(2 * math.atan(spawn.horizontal_aperture / (2 * spawn.focal_length))) assert fov == pytest.approx(expected, rel=1e-6) + assert cmf_a == 0.591 + camera = resolve_camera_model(make_cfg(spawn=spawn)) assert camera.model == "pinhole" assert camera.distortion == () # Without a vertical aperture the image is square; with one, the retina spans the short (vertical) side. assert camera.image_size[0] == camera.image_size[1] spawn = PinholeCameraCfg(focal_length=10.0, horizontal_aperture=20.0, vertical_aperture=10.0) - fov = resolve_camera_model(make_cfg(spawn=spawn)).field_of_view("short") + fov, _ = sampling_geometry(make_cfg(spawn=spawn)) assert fov == pytest.approx(math.degrees(2 * math.atan(0.5)), rel=1e-6) @@ -94,7 +96,7 @@ def test_zero_coefficient_opencv_fisheye_is_an_ideal_equidistant_fisheye() -> No # Equidistant: the angle off the optical axis grows linearly with image radius. for radius in (50.0, 150.0, 310.0): assert ray_angle_deg(camera, (319.5 + radius, 319.5)) == pytest.approx(math.degrees(radius / focal), rel=1e-6) - fov = camera.field_of_view("short") + fov, _ = sampling_geometry(cfg) assert fov == pytest.approx(math.degrees(640 / focal), rel=1e-6) @@ -118,10 +120,25 @@ def test_cameras_fovi_cannot_model_are_rejected() -> None: resolve_camera_model(make_cfg(spawn=spawn)) -@pytest.mark.parametrize("option", [{"pool_enabled": True}, {"foveated_style": "isotropic"}]) -def test_camera_config_rejects_deferred_sampling_options(option) -> None: - with pytest.raises(TypeError, match=next(iter(option))): - make_cfg(**option) +def test_config_validates_pooling_and_shell_settings() -> None: + assert make_cfg(pool_mode="gaussian").pool_mode == "gaussian" + with pytest.raises(ValueError, match="pool_mode must be one of"): + make_cfg(pool_mode="median") + # Segmentation pools only by modal label: other modes would mix labels into ones no object has. + assert make_cfg().pool_int_mode == "modal" + with pytest.raises(ValueError, match="pool_int_mode must be one of"): + make_cfg(pool_int_mode="avg") + # Square shells need a square or circular footprint and a grid style. + grid = dict(foveated_style="warped_cartesian_as_grid", radius_norm=math.inf) + assert make_cfg(**grid, fov_type="square").fov_type == "square" + with pytest.raises(ValueError, match="wang"): + make_cfg(**grid, fov_type="wang") + for kwargs in ( + dict(radius_norm=1.0, foveated_style="warped_cartesian_as_grid"), + dict(radius_norm=math.inf, foveated_style="isotropic"), + ): + with pytest.raises(ValueError, match="radius_norm"): + make_cfg(**kwargs) @dataclass @@ -134,9 +151,7 @@ class CameraSelection: renderer_cfg: RendererSelection -def test_renderer_selects_the_implementation(monkeypatch) -> None: - monkeypatch.setattr(Camera, "__del__", lambda self: None) - +def test_renderer_selects_the_implementation() -> None: def dispatch(cfg) -> type: return type(FoveatedCamera.__new__(FoveatedCamera, cfg)) @@ -155,12 +170,7 @@ def dispatch(cfg) -> type: def test_cameras_that_turn_their_pose_by_the_gaze_need_per_frame_pose_updates(monkeypatch) -> None: """Newton and OVRTX turn the rendered pose by the gaze in each pose update, so without pose updates the renderer would never see the gaze; Isaac RTX writes the gaze into its camera prims instead.""" - - def construct(self, cfg): - self.cfg = cfg - self.stage = None - - monkeypatch.setattr(Camera, "__init__", construct) + monkeypatch.setattr(Camera, "__init__", lambda self, cfg: setattr(self, "stage", None)) monkeypatch.setattr(Camera, "__del__", lambda self: None) monkeypatch.setattr(FoveatedRTXCamera, "_prepare_projection", lambda self: None) monkeypatch.setattr(sim_utils, "find_matching_prims", lambda *args: []) @@ -170,16 +180,14 @@ def cfg(renderer_cfg) -> FoveatedCameraCfg: with pytest.raises(ValueError, match="update_latest_camera_pose=True"): FoveatedCamera(cfg(NewtonWarpRendererCfg())) - assert isinstance(FoveatedCamera(cfg(IsaacRtxRendererCfg())), FoveatedRTXCamera) + assert not FoveatedCamera(cfg(IsaacRtxRendererCfg())).turns_pose_by_gaze IMPORT_BOUNDARY = """ import importlib, importlib.abc, sys # Kit, fovi's research modules and training frameworks must not load with the sensor package. -BLOCKED = ( - "isaacsim", "omni", "fovi.arch", "fovi.models", "fovi.training", "rsl_rl", "ffcv", "wandb", "lightning", "timm", -) +BLOCKED = ("isaacsim", "omni", "fovi.models", "fovi.training", "ffcv", "wandb", "lightning", "timm") class Block(importlib.abc.MetaPathFinder): @@ -189,11 +197,7 @@ def find_spec(self, fullname, path=None, target=None): sys.meta_path.insert(0, Block()) -for module in ( - "isaaclab_fovi.sensors.foveated_newton_camera", - "isaaclab_fovi.sensors.foveated_rtx_camera", - "isaaclab_fovi.mdp.gaze", -): +for module in ("isaaclab_fovi", "isaaclab_fovi.sensors", "isaaclab_fovi.sensors.pooling", "isaaclab_fovi.mdp"): importlib.import_module(module) print("import boundary passed") """ diff --git a/source/isaaclab_fovi/test/test_camera_gaze.py b/source/isaaclab_fovi/test/test_camera_gaze.py index a1110ae5cc49..ae6ac139a472 100644 --- a/source/isaaclab_fovi/test/test_camera_gaze.py +++ b/source/isaaclab_fovi/test/test_camera_gaze.py @@ -15,17 +15,18 @@ from fovi.sensing.coords import SamplingCoords from fovi.sensing.projection import CameraModel, angular_directions, gaze_rotation from fovi.sensing.retina import RetinalTransform -from isaaclab_fovi.sensors import FoveatedCameraCfg +from isaaclab_fovi.sensors.calibrated_geometry import retinal_directions, sampling_geometry from isaaclab_fovi.sensors.foveated_camera import FoveatedCamera from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera from isaaclab_fovi.sensors.gaze_kernels import ( - CameraParams, camera_params, - project_direction, + project_directions, + publish_grid_kernel, set_gaze_kernel, torch_stream, ) -from isaaclab_fovi.sensors.native_grid import native_grid_directions +from isaaclab_fovi.sensors.native_grid import GRID_STYLE, grid_sample_indices, native_grid_directions +from isaaclab_fovi.sensors.pooling import build_lowres_coords from isaaclab.sensors.camera.camera import Camera from isaaclab.sensors.camera.camera_data import CameraData @@ -36,6 +37,7 @@ matrix_from_quat, quat_apply, quat_from_matrix, + quat_mul, ) from isaaclab.utils.warp import ProxyArray @@ -64,32 +66,31 @@ def camera_config() -> SimpleNamespace: retinal_window_reference_side="long", retinal_window_fraction=0.75, foveated_res=12, - mask_to_sensor_fov=True, + foveated_style="isotropic", + fov_type="circular", + radius_norm=2.0, + isotropic_plotting_type="v1like", image_rotation_deg=0.0, ) -def test_camera_sampling_matches_software_sampling(monkeypatch) -> None: - data = camera_config() - model = CameraModel(**data.camera_model) - cfg = FoveatedCameraCfg(prim_path="/World/Camera", **vars(data)) - monkeypatch.setattr(Camera, "__init__", lambda self, cfg: setattr(self, "cfg", cfg)) - monkeypatch.setattr(Camera, "__del__", lambda self: None) - camera = FoveatedCamera.__new__(FoveatedCamera, cfg) - FoveatedCamera.__init__(camera, cfg) - software = RetinalTransform( - fov=model.field_of_view("long", 0.75), - cmf_a=2.5, +def test_rendering_and_software_sampling_share_window_and_nodes() -> None: + cfg = camera_config() + fov, a = sampling_geometry(cfg) + camera = CameraModel(**cfg.camera_model) + assert fov == pytest.approx(camera.field_of_view("long", 0.75)) + assert a == 2.5 + coords, _ = build_lowres_coords(cfg, "cpu") + retina = RetinalTransform( + fov=fov, + cmf_a=a, resolution=12, device="cpu", - style="warped_cartesian_as_grid", field_geometry="spherical", - camera_model=model, + camera_model=camera, gaze_convention="pan_tilt", ) - torch.testing.assert_close(camera.sampling_coords.cartesian, software.sampler.coords.cartesian) - assert (camera.cfg.width, camera.cfg.height) == (12, 12) - assert (cfg.width, cfg.height) == (1, 1) + torch.testing.assert_close(coords.cartesian, retina.sampler.coords.cartesian) class GazeHarness(FoveatedCamera): @@ -105,20 +106,15 @@ def __init__(self, count: int = 2, device: str = "cpu", **overrides) -> None: self._view = SimpleNamespace(count=count) self._device = device self._ALL_INDICES = wp.array(list(range(count)), dtype=wp.int32, device=device) - self._camera_model = CameraModel(**self.cfg.camera_model) - fov = self._camera_model.field_of_view(self.cfg.retinal_window_reference_side, self.cfg.retinal_window_fraction) - self._sampling_coords = SamplingCoords( - fov, self.cfg.cmf_a_deg, self.cfg.foveated_res, style="warped_cartesian_as_grid", field_geometry="spherical" - ) - self._retinal_rays = native_grid_directions( - self._sampling_coords, image_rotation_deg=self.cfg.image_rotation_deg - ) + self._sampling_coords, _ = build_lowres_coords(self.cfg, device) + self._sampling_coords_highres = None # The camera's own pose buffers, at the identity orientation, with their world-to-ROS conversion. self._data = CameraData() self._data.create_buffers(count, device) self._data.quat_w_world.torch[:, 3] = 1.0 # Isaac RTX's behaviour; Newton and OVRTX turn the pose by the gaze in their pose update. self._gaze_pose_reads_angles = False + self._gaze_written = False self._initialize_gaze() @property @@ -155,11 +151,11 @@ def set_local_poses(self, *, orientations) -> None: class RtxGazeHarness(GazeHarness, FoveatedRTXCamera): """The Isaac RTX camera's prim-writing gaze on stand-in camera prims.""" - def __init__(self, mount_opengl: torch.Tensor, device="cpu") -> None: - super().__init__(count=len(mount_opengl), device=device) + def __init__(self, mount_opengl: torch.Tensor) -> None: + super().__init__(count=len(mount_opengl)) self._view = PrimView(mount_opengl) - self._base_local_orientation = mount_opengl.clone() - self._gaze_basis_quat = quat_from_matrix(self._gaze_basis) + self._base_local_orientation = matrix_from_quat(mount_opengl) + self.mount_turns = 0 MOUNT = torch.nn.functional.normalize(torch.tensor([[0.2, -0.4, 0.1, 0.9], [0.0, 0.3, -0.5, 0.6]]), dim=-1) @@ -171,7 +167,7 @@ def write_view(camera, eyes, targets, env_ids=None): looks at it; the others keep their poses.""" rotation = create_rotation_matrix_from_view(eyes, targets, "Z") looks = ~torch.isnan(rotation).any(dim=(-2, -1)) - ids = (torch.arange(camera._view.count) if env_ids is None else torch.as_tensor(env_ids))[looks] + ids = camera._env_indices(env_ids)[looks] camera._view.local[ids] = quat_from_matrix(rotation[looks]) @@ -188,6 +184,23 @@ def gaze_direction(angles_deg: torch.Tensor) -> torch.Tensor: return torch.stack((-tilt.cos() * pan.sin(), -tilt.sin(), tilt.cos() * pan.cos()), -1) +def angles_toward(camera: CameraModel, pixel: tuple[float, float]) -> torch.Tensor: + """(tilt, pan) gaze angles [deg] that look along the ray through a source pixel (x, y).""" + direction, _ = camera.unproject(torch.tensor([pixel])) + x, y, z = direction.unbind(-1) + return torch.stack((-torch.atan2(y, torch.sqrt(x * x + z * z)), -torch.atan2(x, z)), -1).rad2deg() + + +def test_sensor_mask_keeps_what_the_camera_sees_at_an_edge_gaze() -> None: + """Looking just past an image edge keeps the part of the retina the camera still sees; looking away keeps none.""" + camera = GazeHarness(count=2) + edge = angles_toward(camera._camera_model, (120.5, 39.5)) + camera.set_gaze_angles(torch.cat((edge, torch.tensor([[0.0, 180.0]])))) + valid = camera._gaze_validity() + assert valid[0].any() and not valid[0].all() + assert not valid[1].any() + + @pytest.mark.parametrize("device", CUDA) @pytest.mark.parametrize( "mode, autocast", @@ -241,54 +254,65 @@ def test_gaze_preserves_camera_rotation_with_tf32(device: str, autocast: bool, m assert torch.get_float32_matmul_precision() == "high" -@pytest.mark.parametrize("model_name", ["distorted pinhole", "fisheye with image circle"]) -def test_camera_publishes_only_visible_samples_in_updated_rows(model_name): - model = KERNEL_CAMERAS[model_name] - camera = GazeHarness( - device=KERNEL_DEVICE, - camera_model=asdict(model), - image_rotation_deg=37.0, - retinal_window_reference_side="short", - retinal_window_fraction=0.7, - ) - coords = camera.sampling_coords - n = coords.resolution - rgba = torch.arange(2 * n * n * 4, device=KERNEL_DEVICE).reshape(2, n, n, 4).to(torch.uint8) - depth = torch.arange(1, 2 * n * n + 1, device=KERNEL_DEVICE, dtype=torch.float32).reshape(2, n, n, 1) - camera._prepare_grid_publish({"rgba": rgba, "rgb": rgba[..., :3], "distance_to_camera": depth}) - outputs = camera._data.output - angles = torch.tensor([[6.0, -11.0], [-9.0, 17.0]], device=KERNEL_DEVICE) - camera.set_gaze_angles(angles) +def test_sensor_mask_checks_the_rendered_rays_of_a_rolled_mount() -> None: + """The mask sees exactly the rays the turned camera renders, found here through the camera pose instead.""" + rotation_deg = 30.0 + # An off-center, wide image makes a roll change which samples the camera sees. + model = CameraModel("pinhole", (80, 120), (60.0, 60.0, 45.0, 30.0)) + camera = GazeHarness(camera_model=asdict(model), image_rotation_deg=rotation_deg) + camera.set_gaze_angles(torch.tensor([[6.0, -11.0], [-9.0, 17.0]])) mount = camera.orientation.clone() camera._apply_gaze_pose() - def opengl(orientation): + # Rendered rays leave the turned camera along its OpenGL frame; express them in the mount's OpenGL frame. + def opengl(orientation: torch.Tensor) -> torch.Tensor: return matrix_from_quat(convert_camera_frame_orientation_convention(orientation, "world", "opengl")) - rotation = opengl(mount).transpose(-1, -2) @ opengl(camera.orientation) - # fovi's direction generation in the physical frame, independently of the publication kernel. - ray = angular_directions(coords.cartesian, coords.fov) - x, y, z = ray.unbind(-1) - c, s = math.cos(math.radians(37)), math.sin(math.radians(37)) - gl = torch.stack((c * x + s * y, s * x - c * y, -z), -1) - turned_ray = (gl @ rotation.transpose(-1, -2)) * gl.new_tensor((1.0, -1.0, -1.0)) - keep = model.project(turned_ray)[1] & coords.valid_mask[None] - assert keep.any() and (~keep).any() - - all_rows = wp.ones(2, dtype=wp.bool, device=KERNEL_DEVICE) - camera._publish_grid(all_rows) - for name, values in (("rgba", rgba), ("distance_to_camera", depth)): - canonical = values.reshape(2, n * n, -1) - expected = coords.as_grid(canonical * keep[..., None], sample_dim=1) - torch.testing.assert_close(outputs[name].torch, expected) - assert outputs["rgb"].warp.ptr == outputs["rgba"].warp.ptr - - last = outputs["distance_to_camera"].torch.clone() - depth.add_(1) - camera._publish_grid(wp.array([False, True], dtype=wp.bool, device=KERNEL_DEVICE)) - assert camera._data.output["distance_to_camera"] is outputs["distance_to_camera"] - assert torch.equal(last[0], outputs["distance_to_camera"].torch[0]) - assert not torch.equal(last[1], outputs["distance_to_camera"].torch[1]) + turn = opengl(mount).transpose(-1, -2) @ opengl(camera.orientation) + coords = camera._sampling_coords + rays = retinal_directions(coords.cartesian, coords.fov, rotation_deg) + seen = (turn[:, None] @ rays[None, :, :, None]).squeeze(-1) * torch.tensor([1.0, -1.0, -1.0]) + expected = model.project(seen)[1] + assert expected.any() and (~expected).any() + assert (camera._gaze_validity() == expected).float().mean() > 0.999 + + +def test_only_a_turned_mount_is_recorded(monkeypatch) -> None: + """The fixed-mount teacher reads the live camera position, so only writes that turn a mount count: not a position + move, and not writing back the reported mount (of either quaternion sign), even with a gaze held in the prims.""" + monkeypatch.setattr(Camera, "set_world_poses", write_prims) + monkeypatch.setattr(Camera, "set_world_poses_from_view", write_view) + eyes = torch.zeros(2, 3) + targets = torch.tensor([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0]]) + + def view_twice(camera): + # Looking again from the same eye at the same target leaves the mount where the first view put it. + camera.set_world_poses_from_view(eyes, targets) + camera.mount_turns = 0 + camera.set_world_poses_from_view(eyes, targets) + + def reported(camera, env_ids=None): + return camera.get_world_poses(env_ids, convention="ros")[1] + + def turn_second(camera): + # One degree about the second camera's optical axis. + half = torch.tensor(math.radians(1.0) / 2) + roll = torch.tensor([[0.0, 0.0, 0.0, 1.0], [0.0, 0.0, float(half.sin()), float(half.cos())]]) + camera.set_world_poses(orientations=quat_mul(reported(camera), roll)) + + for move, turned in ( + (lambda camera: camera.set_world_poses(positions=torch.zeros(2, 3)), False), + (lambda camera: camera.set_world_poses(orientations=reported(camera)), False), + (lambda camera: camera.set_world_poses(orientations=-reported(camera, [1]), env_ids=[1]), False), + (turn_second, True), + (lambda camera: camera.set_world_poses_from_view(eyes, eyes), False), + (lambda camera: camera.set_world_poses_from_view(eyes, targets), True), + (view_twice, False), + ): + camera = RtxGazeHarness(MOUNT) + camera.set_gaze_angles(torch.tensor([[6.0, -11.0], [-9.0, 17.0]])) + move(camera) + assert camera.mount_turns == int(turned) def test_gaze_angles_need_one_row_per_camera() -> None: @@ -298,12 +322,68 @@ def test_gaze_angles_need_one_row_per_camera() -> None: assert camera._gaze_angles is None +def test_mount_record_starts_at_the_current_pose() -> None: + """Allocating the gaze before any pose update records the camera's current, ungazed mount, not zeros.""" + camera = GazeHarness() + camera._gaze_pose_reads_angles = True + mount = torch.nn.functional.normalize(torch.tensor([[0.2, -0.4, 0.1, 0.9], [0.0, 0.3, -0.5, 0.6]]), dim=-1) + camera.orientation.copy_(mount) + camera.gaze_angles + expected = convert_camera_frame_orientation_convention(mount, "world", "ros") + torch.testing.assert_close( + matrix_from_quat(camera.ungazed_quat_w_ros()), matrix_from_quat(expected), atol=1e-6, rtol=0 + ) + + +def test_prim_writing_camera_reads_its_mount_before_and_after_a_gaze() -> None: + """Isaac RTX writes the gaze into its prims; its mount reads the same before and after a gaze is set, so a + fixed-mount teacher created after a gaze aims from the real mount.""" + camera = RtxGazeHarness(MOUNT) + # The last pose update read the bare mount. + camera.orientation.copy_(convert_camera_frame_orientation_convention(MOUNT, "opengl", "world")) + expected = matrix_from_quat(convert_camera_frame_orientation_convention(MOUNT, "opengl", "ros")) + torch.testing.assert_close(matrix_from_quat(camera.ungazed_quat_w_ros()), expected, atol=1e-6, rtol=0) + camera.set_gaze_angles(torch.tensor([[6.0, -11.0], [-9.0, 17.0]])) + assert not torch.allclose(matrix_from_quat(camera._view.local), matrix_from_quat(MOUNT), atol=1e-3) + torch.testing.assert_close(matrix_from_quat(camera.ungazed_quat_w_ros()), expected, atol=1e-6, rtol=0) + + +def test_sensor_mask_reuses_its_buffer_and_keeps_rows_that_were_not_updated() -> None: + camera = GazeHarness() + camera.cfg.mask_to_sensor_fov = True + camera.set_gaze_angles(torch.tensor([[0.0, 0.0], [0.0, 0.0]])) + first = camera._gaze_validity() + kept = first[0].clone() + output = {"distance_to_camera": torch.ones(2, len(camera._gaze_rays), 1, 1)} + camera.set_gaze_angles(torch.tensor([[0.0, 180.0], [0.0, 180.0]])) + camera._apply_sensor_fov_mask(output, wp.array([False, True], dtype=wp.bool, device="cpu")) + assert camera._visibility["valid"].torch is first + # The environment that was not updated keeps its samples and its last visibility. + torch.testing.assert_close(first[0], kept) + assert bool(output["distance_to_camera"][0].all()) + assert not output["distance_to_camera"][1].any() + + +def test_pose_update_records_the_mount_before_the_gaze() -> None: + camera = GazeHarness() + mount = torch.nn.functional.normalize(torch.tensor([[0.2, -0.4, 0.1, 0.9], [0.0, 0.3, -0.5, 0.6]]), dim=-1) + camera.orientation.copy_(mount) + camera.set_gaze_angles(torch.tensor([[6.0, -11.0], [-9.0, 17.0]])) + camera._apply_gaze_pose() + expected = convert_camera_frame_orientation_convention(mount, "world", "ros") + torch.testing.assert_close( + matrix_from_quat(camera._mount_quat_ros.torch), matrix_from_quat(expected), atol=1e-6, rtol=0 + ) + assert not torch.allclose(camera.orientation, mount) + + def test_virtual_pose_aims_rays_without_translation_and_preserves_unselected_pose() -> None: camera = GazeHarness() angles = torch.tensor([[6.0, -11.0], [-9.0, 17.0]]) camera.set_gaze_angles(angles) camera._apply_gaze_pose() forward = quat_apply(camera.orientation, torch.tensor([[1.0, 0.0, 0.0]]).expand(2, -1)) + source = CameraModel(**camera.cfg.camera_model) # The world camera frame looks along +X with +Z up; OpenCV looks along +Z with +Y down. directions = gaze_direction(angles) expected = torch.stack((directions[:, 2], -directions[:, 0], -directions[:, 1]), -1) @@ -313,12 +393,28 @@ def test_virtual_pose_aims_rays_without_translation_and_preserves_unselected_pos camera.orientation[0] = torch.tensor([0.0, 0.0, 0.0, 1.0]) camera._apply_gaze_pose([0]) torch.testing.assert_close(camera.orientation[1], untouched) + torch.testing.assert_close( + camera._gaze_validity(), + source.project( + angular_directions(camera._sampling_coords.cartesian, camera._sampling_coords.fov) + @ camera._gaze_rotation.torch.transpose(-1, -2) + )[1], + ) + + +def test_renderer_ray_frame_matches_cv_frame() -> None: + coords = torch.tensor([[0.0, 0.0], [0.3, -0.4], [-1.0, 0.0]]) + rendered = retinal_directions(coords, 120) + cv = angular_directions(coords, 120) + torch.testing.assert_close(rendered, cv * torch.tensor([1, -1, -1])) @pytest.mark.parametrize("device", CUDA) def test_rtx_gaze_pose_writer_is_stable_inside_model_autocast(device: str, tf32_enabled) -> None: - camera = RtxGazeHarness( - torch.tensor([[-0.4625, -0.4940, 0.5341, -0.5067]], device=device).repeat(48, 1), device=device + camera = GazeHarness(count=48, device=device) + camera._gaze_basis = camera._gaze_basis.to(device) + camera._base_local_orientation = matrix_from_quat( + torch.tensor([[-0.4625, -0.4940, 0.5341, -0.5067]], device=device).repeat(48, 1) ) written = [] camera._view = SimpleNamespace( @@ -330,6 +426,7 @@ def test_rtx_gaze_pose_writer_is_stable_inside_model_autocast(device: str, tf32_ for enabled in [False, True]: with torch.autocast(device, dtype=torch.bfloat16, enabled=enabled): camera.set_gaze_angles(angles) + FoveatedRTXCamera._write_gaze_local_pose(camera) assert torch.isfinite(written[1]).all() assert written[1].dtype == torch.float32 torch.testing.assert_close(written[1].norm(dim=-1), torch.ones(48, device=device)) @@ -340,7 +437,6 @@ def test_rtx_world_poses_are_the_mount_so_a_round_trip_keeps_mount_and_gaze(monk """Isaac RTX holds the gaze in its prims; its world poses still report the bare mount, as the other renderers' do, so writing them back (as a viewer navigating the camera does) neither moves the mount nor doubles the gaze.""" monkeypatch.setattr(Camera, "set_world_poses", write_prims) - monkeypatch.setattr(Camera, "set_world_poses_from_view", write_view) camera = RtxGazeHarness(MOUNT) mount = MOUNT camera.set_gaze_angles(torch.tensor([[6.0, -11.0], [-9.0, 17.0]])) @@ -351,23 +447,11 @@ def test_rtx_world_poses_are_the_mount_so_a_round_trip_keeps_mount_and_gaze(monk expected = convert_camera_frame_orientation_convention(mount[1:], "opengl", "ros") torch.testing.assert_close(matrix_from_quat(orientations), matrix_from_quat(expected), atol=1e-6, rtol=0) - camera.set_world_poses(positions=torch.zeros(2, 3)) - torch.testing.assert_close(matrix_from_quat(camera._view.local), matrix_from_quat(gazed), atol=1e-6, rtol=0) _, orientations = camera.get_world_poses(convention="world") camera.set_world_poses(orientations=orientations, convention="world") - torch.testing.assert_close( - matrix_from_quat(camera._base_local_orientation), matrix_from_quat(mount), atol=1e-6, rtol=0 - ) + torch.testing.assert_close(camera._base_local_orientation, matrix_from_quat(mount), atol=1e-6, rtol=0) torch.testing.assert_close(matrix_from_quat(camera._view.local), matrix_from_quat(gazed), atol=1e-6, rtol=0) - eyes = torch.zeros(2, 3) - targets = torch.tensor([[0.0, 0.0, 0.0], [1.0, 0.0, 0.0]]) - camera.set_world_poses_from_view(eyes, targets) - torch.testing.assert_close(matrix_from_quat(camera._view.local[:1]), matrix_from_quat(gazed[:1]), atol=1e-6, rtol=0) - _, pose = camera.get_world_poses(convention="opengl") - expected = create_rotation_matrix_from_view(eyes[1:], targets[1:], "Z") - torch.testing.assert_close(matrix_from_quat(pose[1:]), expected, atol=1e-6, rtol=0) - @pytest.mark.parametrize("device", test_devices(DeviceScope.DEFAULT_CUDA)) def test_gaze_kernels_preserve_shared_stream_for_warp_capture(device: str) -> None: @@ -376,17 +460,14 @@ def test_gaze_kernels_preserve_shared_stream_for_warp_capture(device: str) -> No with wp.ScopedStream(stream), torch.cuda.stream(wp.stream_to_torch(stream)): camera = GazeHarness(device=device) camera.set_gaze_angles(torch.tensor([[5.0, -8.0], [0.0, 0.0]], device=device)) - n = camera.sampling_coords.resolution - camera._prepare_grid_publish({"rgb": torch.ones(2, n, n, 3, dtype=torch.uint8, device=device)}) - camera._publish_grid(wp.ones(2, dtype=wp.bool, device=device)) - output = camera._data.output["rgb"].warp - target = wp.zeros_like(output) + valid = camera._gaze_validity() + target = wp.zeros(valid.shape, dtype=wp.bool, device=device) # Physics must still be able to capture after the camera's temporary stream scopes exit. with wp.ScopedCapture(stream=stream) as capture: - wp.copy(target, output) + wp.copy(target, wp.from_torch(valid)) wp.capture_launch(capture.graph) - torch.testing.assert_close(wp.to_torch(target), wp.to_torch(output)) - assert wp.to_torch(output)[1].any() + torch.testing.assert_close(wp.to_torch(target), valid) + assert valid[1].any() # -- The gaze kernels against fovi's camera geometry ------------------------------------------------------------------ @@ -426,19 +507,6 @@ def set_gaze(angles: torch.Tensor) -> tuple[torch.Tensor, torch.Tensor]: return stored, rotation -@wp.kernel -def _probe_projection( - directions: wp.array(dtype=wp.vec3f), - camera: CameraParams, - pixels: wp.array(dtype=wp.vec2f), - valid: wp.array(dtype=wp.bool), -): - i = wp.tid() - result = project_direction(directions[i], camera) - pixels[i] = wp.vec2f(result[0], result[1]) - valid[i] = result[2] > 0.5 - - @pytest.mark.parametrize("name", KERNEL_CAMERAS) def test_projection_kernel_matches_fovi(name: str) -> None: """The sensor mask projects with fovi's camera model, as the software sampler does on a real camera.""" @@ -449,19 +517,7 @@ def test_projection_kernel_matches_fovi(name: str) -> None: directions[:2000, 2] *= -1 directions = torch.nn.functional.normalize(directions, dim=-1).to(KERNEL_DEVICE) expected_pixels, expected_valid = camera.project(directions) - pixels = torch.empty_like(expected_pixels) - valid = torch.empty_like(expected_valid) - with torch_stream(KERNEL_DEVICE): - wp.launch( - _probe_projection, - len(directions), - [ - wp.from_torch(directions, dtype=wp.vec3f), - camera_params(camera), - wp.from_torch(pixels, dtype=wp.vec2f), - wp.from_torch(valid), - ], - ) + pixels, valid = project_directions(directions, camera_params(camera)) # Float32 rounding may flip a sample that lies on the image edge, nothing more. assert (valid == expected_valid).float().mean() > 0.9995 assert expected_valid.any() and (~expected_valid).any() @@ -477,3 +533,60 @@ def test_gaze_rotation_follows_fovis_pan_tilt_convention() -> None: direction = torch.stack((-tilt.cos() * pan.sin(), -tilt.sin(), tilt.cos() * pan.cos()), -1) torch.testing.assert_close(stored, angles, atol=0, rtol=0) torch.testing.assert_close(rotation, gaze_rotation(direction, "pan_tilt"), atol=1e-5, rtol=0) + + +def test_publish_kernel_matches_masking_then_copying_to_the_grid() -> None: + camera = KERNEL_CAMERAS["distorted pinhole"] + coords = SamplingCoords( + camera.field_of_view("short"), 0.591, 24, style=GRID_STYLE, field_geometry="spherical", device=KERNEL_DEVICE + ) + rays = (native_grid_directions(coords) * coords.cartesian.new_tensor((1, -1, -1))).float().contiguous() + generator = torch.Generator().manual_seed(2) + angles = ((torch.rand(6, 2, generator=generator) * 2 - 1) * 25).to(KERNEL_DEVICE) + _, rotation = set_gaze(angles) + count = len(coords) + outputs = { + "rgba": torch.randint(1, 255, (6, count, 1, 4), generator=generator, dtype=torch.uint8).to(KERNEL_DEVICE), + "depth": (torch.rand(6, count, 1, 1, generator=generator) + 0.5).to(KERNEL_DEVICE), + } + valid = camera.project(rays @ rotation.transpose(-1, -2))[1] + # Environments 1 and 4 were not rendered this frame and keep their previous image. + updated = torch.tensor([True, False, True, True, False, True], device=KERNEL_DEVICE) + + # The sequence the kernel replaces: footprint mask, sensor mask, then the upright layout. The layout comes from + # fovi's own grid reshaping rather than the index permutation the kernel uses. + keep = valid & coords.valid_mask[None] + expected_grid = { + name: coords.as_grid(value.squeeze(2) * keep[..., None], sample_dim=1) for name, value in outputs.items() + } + indices = grid_sample_indices(coords).to(torch.int32).contiguous() + visible = torch.zeros(6, count, dtype=torch.bool, device=KERNEL_DEVICE) + identity = wp.mat33f(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0) + for name, value in outputs.items(): + previous = torch.full_like(expected_grid[name], 7) + target = previous.clone() + with torch_stream(KERNEL_DEVICE): + wp.launch( + publish_grid_kernel, + dim=(6, count), + inputs=[ + wp.from_torch(value.squeeze(2).view(torch.uint8)), + wp.from_torch(indices), + wp.from_torch(coords.valid_mask.contiguous()), + wp.from_torch(updated), + wp.from_torch(rays, dtype=wp.vec3f), + wp.from_torch(rotation, dtype=wp.mat33f), + identity, + camera_params(camera), + 1, + int(name == "rgba"), + wp.from_torch(visible), + ], + outputs=[wp.from_torch(target.view(6, count, -1).view(torch.uint8))], + ) + # Float32 rounding may flip a sample on the image edge, nothing more. + assert (target[updated] == expected_grid[name][updated]).all(-1).float().mean() > 0.999 + assert torch.equal(target[~updated], previous[~updated]) + assert (visible[updated] == valid[updated]).float().mean() > 0.999 + assert not visible[~updated].any() + assert valid.any() and (~valid).any() diff --git a/source/isaaclab_fovi/test/test_native_grid.py b/source/isaaclab_fovi/test/test_native_grid.py index bdd383d28d7e..fce1bef4556f 100644 --- a/source/isaaclab_fovi/test/test_native_grid.py +++ b/source/isaaclab_fovi/test/test_native_grid.py @@ -3,20 +3,47 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""The analytic lens textures use the software sampler's directions and invert the native grid.""" +"""The native grid's rays, lens textures and published layout agree with independent geometry.""" import math import pytest import torch from fovi.sensing.coords import SamplingCoords -from fovi.sensing.projection import angular_directions +from isaaclab_fovi.sensors.calibrated_geometry import retinal_directions from isaaclab_fovi.sensors.lens_lut import build_native_grid_textures -from isaaclab_fovi.sensors.native_grid import bounded_angular_radius, native_grid_directions, native_grid_exit_uv +from isaaclab_fovi.sensors.native_grid import ( + allocate_grid_outputs, + bounded_angular_radius, + copy_grid_outputs, + grid_sample_indices, + mask_grid_samples, + native_grid_directions, + native_grid_exit_uv, + unbounded_angular_radius, +) + +from isaaclab.test.utils import DeviceScope, test_devices pytestmark = pytest.mark.kitless +def make_coords(resolution: int = 64, coverage: str = "circular", field: str = "spherical") -> SamplingCoords: + """A wide grid; ``"square_shells"`` is the square footprint with square (infinity-norm) shells.""" + fov = 80.0 if coverage == "wang" else 170.0 + square_shells = coverage == "square_shells" + return SamplingCoords( + fov=fov, + cmf_a=0.036021 * fov, + res=resolution, + style="warped_cartesian_as_grid", + fov_type="square" if square_shells else coverage, + radius_norm=math.inf if square_shells else 2.0, + field_geometry=field, + device="cpu", + ) + + def texel_centers(resolution: int) -> torch.Tensor: """Native texture UV of each canonical sample: columns follow native x, rows native y.""" axis = (torch.arange(resolution) + 0.5) / resolution @@ -24,31 +51,133 @@ def texel_centers(resolution: int) -> torch.Tensor: return torch.stack((col, row), -1).reshape(-1, 2) -def test_rolled_grid_matches_fovi_and_inverts_every_texel(): - coords = SamplingCoords(170.0, 6.0, 65, style="warped_cartesian_as_grid", field_geometry="spherical") - roll = math.radians(37.0) - rendered = native_grid_directions(coords, image_rotation_deg=37.0) - valid = coords.valid_mask - cv_rays = angular_directions(coords.cartesian[valid], coords.fov) - x, y, z = cv_rays.unbind(-1) - reference = torch.stack((math.cos(roll) * x + math.sin(roll) * y, math.sin(roll) * x - math.cos(roll) * y, -z), -1) - torch.testing.assert_close(rendered[valid], reference, atol=3e-7, rtol=0) +def eccentricity_rays(visual: torch.Tensor, fov_deg: float, rotation_deg: float = 0.0) -> torch.Tensor: + """OpenGL rays for visual-chart points: angle off the axis is the visual radius times the half field of view.""" + visual = visual.to(torch.float64) + theta = torch.linalg.vector_norm(visual, dim=-1) * math.radians(fov_deg) / 2 + phi = torch.atan2(visual[..., 1], visual[..., 0]) + math.radians(rotation_deg) + return torch.stack((theta.sin() * phi.cos(), theta.sin() * phi.sin(), -theta.cos()), -1) + + +@pytest.mark.parametrize( + ("coverage", "resolution", "rotation"), + # Circular padding outside the field, and odd square-shell grids with a texel on the axis, under a roll. + [("circular", 64, 0.0), ("square_shells", 15, 37.0)], +) +def test_every_texel_roundtrips(coverage: str, resolution: int, rotation: float) -> None: + coords = make_coords(resolution, coverage) + rays = native_grid_directions(coords, image_rotation_deg=rotation) + uv, valid = native_grid_exit_uv(rays, coords, image_rotation_deg=rotation) + assert valid.all() + torch.testing.assert_close(uv, texel_centers(resolution), atol=2e-6, rtol=0) + torch.testing.assert_close(rays.norm(dim=-1), torch.ones(len(coords)), atol=1e-6, rtol=0) + + +@pytest.mark.parametrize(("coverage", "rotation"), [("wang", 180.0), ("square_shells", 37.0)]) +def test_inverse_maps_independent_rays_to_their_texels(coverage: str, rotation: float) -> None: + coords = make_coords(64, coverage) + half_fov = math.radians(coords.fov) / 2 + # Rays through fovi's own sample positions inside the field land on those samples' texels. + inside = torch.linalg.vector_norm(coords.cartesian, dim=-1) <= (math.sqrt(2) if coverage == "square_shells" else 1) + rays = eccentricity_rays(coords.cartesian[inside], coords.fov, rotation) + uv, valid = native_grid_exit_uv(rays, coords, image_rotation_deg=rotation) + assert inside.sum() > len(coords) // 2 + assert valid.all() + torch.testing.assert_close(uv, texel_centers(64)[inside], atol=2e-6, rtol=0) + # The optical axis is the texture centre and the nominal rim along each rolled native axis is its edge. + roll = math.radians(rotation) + rim = [ + (math.sin(half_fov) * math.cos(angle), math.sin(half_fov) * math.sin(angle), -math.cos(half_fov)) + for angle in (roll, roll + math.pi / 2) + ] + hand_rays = torch.tensor([(0.0, 0.0, -1.0), *rim], dtype=torch.float64) + uv, _ = native_grid_exit_uv(hand_rays, coords, image_rotation_deg=rotation) + torch.testing.assert_close(uv, torch.tensor([[0.5, 0.5], [0.5, 1.0], [1.0, 0.5]]), atol=1e-6, rtol=0) - uv, visible = native_grid_exit_uv(rendered, coords, image_rotation_deg=37.0) - assert visible.all() - torch.testing.assert_close(uv, texel_centers(coords.resolution), atol=2e-6, rtol=0) - directions, exit_uv = build_native_grid_textures(coords, rendered, image_rotation_deg=37.0, exit_size=129) - torch.testing.assert_close(directions.reshape(-1, 3), rendered) - torch.testing.assert_close(exit_uv[64, 64], torch.tensor([0.5, 0.5])) - torch.testing.assert_close(exit_uv[0, 0], torch.tensor([-1.0, -1.0])) +def test_valid_samples_match_the_software_sampler_rays() -> None: + """The renderer's rays are the ones fovi's software sampler uses on a real camera's images.""" + coords = make_coords() + actual = native_grid_directions(coords) + expected = retinal_directions(coords.cartesian[coords.valid_mask], coords.fov) + torch.testing.assert_close(actual[coords.valid_mask], expected, atol=3e-7, rtol=0) + with pytest.raises(ValueError, match="spherical"): + native_grid_directions(make_coords(16, field="planar")) -def test_spherical_padding_matches_rim_slope_and_does_not_wrap(): - radius = torch.tensor([0.99999, 1.0, 1.00001, 2.0, 10.0], dtype=torch.float64) +def test_spherical_padding_matches_rim_slope_and_does_not_wrap() -> None: + radius = torch.tensor([0.0, 0.99999, 1.0, 1.00001, 2.0, 10.0], dtype=torch.float64) half_fov = math.radians(170) / 2 angles = bounded_angular_radius(radius, half_fov) - assert (angles[1:] > angles[:-1]).all() and (angles < math.pi).all() - left = (angles[1] - angles[0]) / (radius[1] - radius[0]) - right = (angles[2] - angles[1]) / (radius[2] - radius[1]) + assert (angles[1:] > angles[:-1]).all() + assert (angles < math.pi).all() + left = (angles[2] - angles[1]) / (radius[2] - radius[1]) + right = (angles[3] - angles[2]) / (radius[3] - radius[2]) torch.testing.assert_close(left, right, atol=2e-5, rtol=0) + torch.testing.assert_close(unbounded_angular_radius(angles, half_fov), radius, atol=1e-10, rtol=0) + + +@pytest.mark.parametrize(("coverage", "rotation"), [("circular", 0.0), ("square_shells", 37.0)]) +def test_textures_match_independent_geometry(coverage: str, rotation: float) -> None: + coords = make_coords(64, coverage) + size = 256 + direction, inverse = build_native_grid_textures(coords, image_rotation_deg=rotation, exit_size=size) + assert direction.shape == (64, 64, 3) and inverse.shape == (size, size, 2) + inside = coords.valid_mask & (torch.linalg.vector_norm(coords.cartesian, dim=-1) <= math.sqrt(2)) + expected = eccentricity_rays(coords.cartesian[inside], coords.fov, rotation).float() + torch.testing.assert_close(direction.reshape(-1, 3)[inside], expected, atol=1e-6, rtol=0) + # Forward-hemisphere octahedral texel centres decode to (x, y, -(1 - |x| - |y|)) before normalization. + axis = (torch.arange(size, dtype=torch.float64) + 0.5) / size * 2 - 1 + y, x = torch.meshgrid(axis, axis, indexing="ij") + forward = x.abs() + y.abs() < 1 + texel_rays = torch.nn.functional.normalize(torch.stack((x, y, x.abs() + y.abs() - 1), -1), dim=-1) + # Each stored UV, mapped back through fovi's native-to-visual warp, must look along its texel's ray. + stored = forward & (inverse[..., 0] >= 0) + native = (inverse[stored].to(torch.float64) * 2 - 1).flip(-1) + visual = coords.native_to_visual(native) + # Circular grids pad outside the nominal field on another curve; square shells reach their corners linearly. + linear = torch.ones(len(visual), dtype=torch.bool) + if coverage == "circular": + linear = torch.linalg.vector_norm(visual, dim=-1) <= 1 + assert linear.sum() > 1000 + torch.testing.assert_close( + eccentricity_rays(visual[linear], coords.fov, rotation), texel_rays[stored][linear], atol=1e-5, rtol=0 + ) + # The antipode lies outside every grid. + assert (inverse[0, 0] == -1).all() and (inverse[-1, -1] == -1).all() + assert torch.isfinite(inverse).all() + + +def test_upright_grid_masks_and_channel_aliases() -> None: + coords = make_coords(16) + # Coordinate channels make rotation/transposition failures observable. + values = torch.cat((coords.cartesian, torch.ones(len(coords), 2)), -1)[None, :, None] + source = {"rgba": values.clone()} + source["rgb"] = source["rgba"][..., :3] + mask_grid_samples(source, coords) + target = allocate_grid_outputs(source, coords) + copy_grid_outputs(source, target, grid_sample_indices(coords)) + expected = coords.as_grid(source["rgba"][:, :, 0], sample_dim=1) + torch.testing.assert_close(target["rgba"], expected) + assert target["rgb"].untyped_storage().data_ptr() == target["rgba"].untyped_storage().data_ptr() + assert target["rgba"][0, :, :, 0][8, 4] < target["rgba"][0, :, :, 0][8, 11] + assert target["rgba"][0, :, :, 1][4, 8] > target["rgba"][0, :, :, 1][11, 8] + assert (target["rgba"][0][~coords.as_grid(coords.valid_mask)] == 0).all() + + +@pytest.mark.parametrize("device", test_devices(DeviceScope.DEFAULT_CUDA)) +def test_published_grid_copy_is_graph_capturable(device: str) -> None: + coords = make_coords(16).to(device=device) + source = {"value": torch.arange(3 * len(coords) * 4, device=device).to(torch.uint8).reshape(3, len(coords), 1, 4)} + target = allocate_grid_outputs(source, coords) + indices = grid_sample_indices(coords) + copy_grid_outputs(source, target, indices) + torch.testing.assert_close(target["value"], coords.as_grid(source["value"][:, :, 0], sample_dim=1), atol=0, rtol=0) + torch.cuda.synchronize() + graph = torch.cuda.CUDAGraph() + with torch.cuda.graph(graph): + copy_grid_outputs(source, target, indices) + source["value"].zero_() + graph.replay() + torch.cuda.synchronize() + assert torch.count_nonzero(target["value"]) == 0 diff --git a/source/isaaclab_fovi/test/test_newton_buffers.py b/source/isaaclab_fovi/test/test_newton_buffers.py index 42d849230856..b04505672812 100644 --- a/source/isaaclab_fovi/test/test_newton_buffers.py +++ b/source/isaaclab_fovi/test/test_newton_buffers.py @@ -3,29 +3,360 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Newton's renderer requires whole native-grid tiles.""" +"""The Newton foveated camera's render layout and publication, on stand-in renderer buffers.""" +from dataclasses import asdict from types import SimpleNamespace import pytest import torch -from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera +import warp as wp +from fovi.sensing.coords import SamplingCoords +from fovi.sensing.projection import CameraModel +from isaaclab_fovi.sensors import foveated_camera as base_camera +from isaaclab_fovi.sensors import foveated_newton_camera as newton_camera +from isaaclab_fovi.sensors.calibrated_geometry import retinal_directions +from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera, explicit_rays +from isaaclab_fovi.sensors.native_grid import native_grid_directions -from isaaclab.sensors.camera.camera import Camera +from isaaclab.utils.warp import ProxyArray pytestmark = pytest.mark.kitless -def test_native_grid_render_size_must_fill_newton_tiles(): - camera = SimpleNamespace( - cfg=SimpleNamespace( - width=83, - height=83, - renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=16, tile_rendering_height=8), +def rendered_rays_only(camera) -> None: + """Stand-in for the gaze geometry: only the rendered rays, in the ROS frame the camera keeps them in.""" + coords = camera._ray_coords + if coords.style == "warped_cartesian_as_grid": + rays = native_grid_directions(coords, image_rotation_deg=0) + else: + rays = retinal_directions(coords.cartesian, coords.fov, 0) + camera._gaze_rays = (rays * rays.new_tensor((1.0, -1.0, -1.0))).float() + + +def new_camera() -> FoveatedNewtonCamera: + """A Newton camera without its constructor: the state its constructor sets and the handles its destructor reads.""" + camera = object.__new__(FoveatedNewtonCamera) + camera._gaze_angles = camera._gaze_rotation = camera._visibility = camera._grid_publish = None + camera._published_shape = camera._segmentation_neighbors = None + camera._initialize_handle = None + camera._invalidate_initialize_handle = None + camera._prim_deletion_handle = None + camera._view = None + camera._renderer = None + camera._device = "cpu" + return camera + + +@pytest.mark.parametrize("pooled", [False, True]) +def test_native_grid_render_layout_preserves_rays_and_upright_outputs(monkeypatch, pooled) -> None: + coords = SamplingCoords(60.0, 0.591, 16, style="warped_cartesian_as_grid", field_geometry="spherical", device="cpu") + highres = coords.clone(resolution=32) if pooled else None + ray_coords = highres if pooled else coords + pooler = torch.nn.AdaptiveAvgPool1d(len(coords)) if pooled else None + monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 16)) + monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: highres) + monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (pooler, 4)) + monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) + + def initialize_renderer(camera): + # Newton launches image tiles; a vector-shaped width of one is not valid. + assert camera.cfg.height == camera.cfg.width == ray_coords.resolution + rgba = torch.zeros((2, camera.cfg.height, camera.cfg.width, 4), dtype=torch.uint8) + camera._data = SimpleNamespace( + output={ + "rgba": ProxyArray(wp.from_torch(rgba)), + "rgb": ProxyArray(wp.from_torch(rgba[..., :3])), + } + ) + camera._render_data = SimpleNamespace(camera_rays=None) + camera._renderer = SimpleNamespace( + cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), + cleanup=lambda render_data: None, + ) + camera.renderer_rgba = rgba + + def render(camera, env_mask): + assert camera._data.output["rgba"].torch.shape == camera.renderer_rgba.shape + values = torch.arange(camera.renderer_rgba.numel()).reshape(camera.renderer_rgba.shape) + camera.frame_offset + camera.renderer_rgba.copy_(values.to(torch.uint8)) + + monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) + monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) + camera = new_camera() + camera.cfg = SimpleNamespace( + foveated_style="warped_cartesian_as_grid", + mask_to_sensor_fov=False, + cmf_a_deg=0.591, + pool_enabled=pooled, + pool_mode="avg", + pool_sample_cortex=False, + image_rotation_deg=0, + update_period=0.0, + data_types=["rgba", "rgb"], + renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), + ) + camera._initialize_impl() + + rays = wp.to_torch(camera._foveated_rays) + assert rays.shape == (ray_coords.resolution, ray_coords.resolution, 1, 2, 3) + expected_rays = native_grid_directions(ray_coords, image_rotation_deg=0).float() + torch.testing.assert_close(rays.reshape(-1, 2, 3)[:, 1], expected_rays) + public_rgba = camera._data.output["rgba"] + camera.frame_offset = 0 + camera._update_buffers_impl(wp.ones(2, dtype=wp.bool, device="cpu")) + expected = camera.renderer_rgba.reshape(2, len(ray_coords), 1, 4).clone() + expected[:, ~ray_coords.valid_mask] = 0 + if pooled: + # AdaptiveAvgPool1d maps the 4 * N_lo canonical samples to N_lo by averaging each run of four, which the + # camera rounds to the nearest uint8 value. + expected = expected.reshape(2, len(coords), 4, 1, 4).float().mean(dim=2).round().to(torch.uint8) + expected = coords.as_grid(expected.squeeze(2), sample_dim=1) + torch.testing.assert_close(camera._data.output["rgba"].torch, expected, rtol=0, atol=0) + # The published buffers are stable across frames, and rgb shares rgba's memory. + assert camera._data.output["rgba"] is public_rgba + torch.testing.assert_close(camera._data.output["rgb"].torch, expected[..., :3], rtol=0, atol=0) + assert camera._data.output["rgb"].warp.ptr == public_rgba.warp.ptr + + # Newton redraws every row, but only the updated environment's publication changes. + camera.frame_offset = 1 + camera._update_buffers_impl(wp.array([False, True], dtype=wp.bool, device="cpu")) + published = camera._data.output["rgba"].torch + torch.testing.assert_close(published[0], expected[0], rtol=0, atol=0) + assert not torch.equal(published[1], expected[1]) + + +def test_sample_set_publication_keeps_environments_that_were_not_updated(monkeypatch) -> None: + """A sample-set camera publishes its own buffers: Newton redraws every row, but only updated rows change.""" + coords = SamplingCoords(60.0, 0.591, 8, style="isotropic", field_geometry="spherical", device="cpu") + monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 8)) + monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: None) + monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (None, None)) + monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) + + def initialize_renderer(camera): + depth = torch.zeros((2, camera.cfg.height, camera.cfg.width, 1)) + camera._data = SimpleNamespace(output={"distance_to_camera": ProxyArray(wp.from_torch(depth))}) + camera._render_data = SimpleNamespace(camera_rays=None) + camera.renderer_depth = depth + + def render(camera, env_mask): + camera.renderer_depth.fill_(camera.frame_value) + + monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) + monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) + camera = new_camera() + camera.cfg = SimpleNamespace( + foveated_style="isotropic", + mask_to_sensor_fov=False, + pool_enabled=False, + image_rotation_deg=0, + update_period=0.0, + data_types=["distance_to_camera"], + renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), + ) + camera._initialize_impl() + published = camera._data.output["distance_to_camera"] + assert published.torch.shape == (2, len(coords), 1, 1) + assert published.warp.ptr != camera._flat_render_output["distance_to_camera"].warp.ptr + + camera.frame_value = 1.0 + camera._update_buffers_impl(wp.ones(2, dtype=wp.bool, device="cpu")) + camera.frame_value = 2.0 + camera._update_buffers_impl(wp.array([False, True], dtype=wp.bool, device="cpu")) + assert camera._data.output["distance_to_camera"] is published + assert bool((published.torch[0] == 1.0).all()) and bool((published.torch[1] == 2.0).all()) + + +def test_sample_set_sensor_mask_follows_the_published_frame(monkeypatch) -> None: + """An environment that was not updated keeps its published samples and the sensor visibility that masked them.""" + coords = SamplingCoords(60.0, 0.591, 8, style="isotropic", field_geometry="spherical", device="cpu") + monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 8)) + monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: None) + monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (None, None)) + monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) + + def initialize_renderer(camera): + camera.renderer_depth = torch.ones((2, camera.cfg.height, camera.cfg.width, 1)) + camera._data = SimpleNamespace(output={"distance_to_camera": ProxyArray(wp.from_torch(camera.renderer_depth))}) + camera._render_data = SimpleNamespace(camera_rays=None) + + monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) + monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", lambda camera, env_mask: None) + camera = new_camera() + camera.cfg = SimpleNamespace( + foveated_style="isotropic", + mask_to_sensor_fov=True, + camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), + spawn=None, + pool_enabled=False, + image_rotation_deg=0, + update_period=0.0, + data_types=["distance_to_camera"], + renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), + ) + camera._initialize_impl() + # The real gaze geometry, on stand-in pose buffers. + base_camera.FoveatedCamera._initialize_gaze(camera) + camera._view = SimpleNamespace(count=2, close=lambda: None) + camera._data.quat_w_ros = ProxyArray(wp.from_torch(torch.tensor([[0.0, 0.0, 0.0, 1.0]] * 2), dtype=wp.quatf)) + + # The second camera looks away from the physical camera's image, so it sees nothing. + camera.set_gaze_angles(torch.tensor([[0.0, 0.0], [0.0, 180.0]])) + camera._update_buffers_impl(wp.ones(2, dtype=wp.bool, device="cpu")) + seen = camera.sensor_fov_valid_fraction.clone() + assert seen[0] > 0.5 and seen[1] == 0 + # Both look ahead now, but only the first camera's frame is published. + camera.set_gaze_angles(torch.zeros(2, 2)) + camera._update_buffers_impl(wp.array([True, False], dtype=wp.bool, device="cpu")) + assert not camera._data.output["distance_to_camera"].torch[1].any() + torch.testing.assert_close(camera.sensor_fov_valid_fraction, seen) + + +def test_pooled_segmentation_publishes_modal_labels_at_full_precision(monkeypatch) -> None: + """A pooled camera's segmentation output holds each sample's majority label exactly, IDs above 2**24 included.""" + coords = SamplingCoords(60.0, 0.591, 16, style="warped_cartesian_as_grid", field_geometry="spherical", device="cpu") + highres = coords.clone(resolution=32) + runs = torch.arange(len(coords)) + # Each pooled sample's neighbours are a run of four rendered samples, nearest first. + neighbors = torch.stack([4 * runs + j for j in range(4)]) + average = torch.nn.AdaptiveAvgPool1d(len(coords)) + + monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 16)) + monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: highres) + monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (average, 4)) + monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) + # The camera reads the modal neighbourhoods from its standard pooler. + monkeypatch.setattr(base_camera, "segmentation_neighbor_indices", lambda pooler: neighbors) + + def initialize_renderer(camera): + size = (2, camera.cfg.height, camera.cfg.width) + camera.renderer_rgba = torch.zeros((*size, 4), dtype=torch.uint8) + camera.renderer_labels = torch.zeros((*size, 1), dtype=torch.int32) + camera._data = SimpleNamespace( + output={ + "rgba": ProxyArray(wp.from_torch(camera.renderer_rgba)), + "semantic_segmentation": ProxyArray(wp.from_torch(camera.renderer_labels)), + } ) + camera._render_data = SimpleNamespace(camera_rays=None) + camera._renderer = SimpleNamespace(cleanup=lambda render_data: None) + + # In each run, three samples share a label above 2**24 and one differs; float32 would merge neighbouring labels. + majority = 2**24 + 1 + 2 * runs + labels = majority[:, None].repeat(1, 4) + labels[:, 2] = 2**30 + runs + labels = torch.stack((labels.reshape(-1), (labels + 7).reshape(-1))) + + def render(camera, env_mask): + camera.renderer_labels.copy_(labels.to(torch.int32).reshape(camera.renderer_labels.shape)) + + monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) + monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) + camera = new_camera() + camera.cfg = SimpleNamespace( + foveated_style="warped_cartesian_as_grid", + mask_to_sensor_fov=False, + update_period=0.0, + pool_enabled=True, + pool_mode="avg", + pool_sample_cortex=False, + image_rotation_deg=0, + data_types=["rgba", "semantic_segmentation"], + renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), + ) + camera._initialize_impl() + camera._update_buffers_impl(wp.ones(2, dtype=wp.bool, device="cpu")) + + # The modal label of each run after the footprint mask zeroes samples outside the retina, ties to the nearest. + rendered = labels.clone() + rendered[:, ~highres.valid_mask] = 0 + expected = torch.zeros(2, len(coords), dtype=torch.int64) + for env in range(2): + for sample in range(len(coords)): + run = rendered[env, 4 * sample : 4 * sample + 4].tolist() + expected[env, sample] = max(run, key=lambda label: (run.count(label), -run.index(label))) + published = camera._data.output["semantic_segmentation"].torch + assert published.dtype == torch.int32 + torch.testing.assert_close(published[..., 0].long(), coords.as_grid(expected, sample_dim=1), rtol=0, atol=0) + assert camera.image_shape == (16, 16) and camera._data.image_shape == (16, 16) + + +def test_native_grid_render_size_must_fill_newton_tiles() -> None: + """A fractional pool_res_mult can give a grid that Newton's tiles do not divide; the camera rejects it.""" + FoveatedNewtonCamera._validate_native_render_layout( + SimpleNamespace(cfg=SimpleNamespace(width=128, height=128)), 16, 8 ) with pytest.raises(ValueError, match="83x83.*16x8"): - FoveatedNewtonCamera._initialize_impl(camera) + FoveatedNewtonCamera._validate_native_render_layout( + SimpleNamespace(cfg=SimpleNamespace(width=83, height=83)), 16, 8 + ) + + +def test_explicit_rays_keep_sample_order_and_pad_whole_tiles() -> None: + """Newton receives one ray per sample from the optical centre, in sample order, padded to whole tiles.""" + wp.init() + directions = torch.nn.functional.normalize(torch.randn(5, 3, generator=torch.Generator().manual_seed(0)), dim=-1) + rays = explicit_rays(directions, 2, 4) + assert rays.shape == (2, 4, 1, 2) and rays.dtype == wp.vec3f + rays = wp.to_torch(rays).reshape(8, 2, 3) + torch.testing.assert_close(rays[:5, 1], directions) + torch.testing.assert_close(rays[5:, 1], directions[-1].expand(3, -1)) + assert not rays[:, 0].any() + with pytest.raises(ValueError, match="shape"): + explicit_rays(torch.zeros(3, 2), 3, 1) + with pytest.raises(ValueError, match="cannot hold"): + explicit_rays(torch.zeros(5, 3), 2, 2) + + +def test_pooled_rgb_is_the_view_of_pooled_rgba(monkeypatch) -> None: + """The renderer publishes rgb as a view of rgba even when only rgba is requested, and so do pooled sample sets.""" + style = "isotropic" + coords = SamplingCoords(60.0, 0.591, 16, style=style, field_geometry="spherical", device="cpu") + highres = coords.clone(resolution=32) + monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 16)) + monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: highres) + monkeypatch.setattr( + newton_camera, "build_pooler", lambda *args, **kwargs: (torch.nn.AdaptiveAvgPool1d(len(coords)), 4) + ) + monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) + + def initialize_renderer(camera): + camera.renderer_rgba = torch.zeros((2, camera.cfg.height, camera.cfg.width, 4), dtype=torch.uint8) + rgba = ProxyArray(wp.from_torch(camera.renderer_rgba)) + camera._data = SimpleNamespace( + output={"rgba": rgba, "rgb": ProxyArray(wp.from_torch(camera.renderer_rgba[..., :3]))} + ) + camera._render_data = SimpleNamespace(camera_rays=None) + camera._renderer = SimpleNamespace(cleanup=lambda render_data: None) + + def render(camera, env_mask): + camera.renderer_rgba.copy_(torch.tensor([10, 20, 30, 255], dtype=torch.uint8)) + + monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) + monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) + camera = new_camera() + camera.cfg = SimpleNamespace( + foveated_style=style, + mask_to_sensor_fov=False, + update_period=0.0, + pool_enabled=True, + pool_mode="avg", + pool_sample_cortex=False, + image_rotation_deg=0, + data_types=["rgba"], + renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), + ) + camera._initialize_impl() + camera._update_buffers_impl(wp.ones(2, dtype=wp.bool, device="cpu")) + + rgb, rgba = camera._data.output["rgb"].torch, camera._data.output["rgba"].torch + assert rgb.any() + torch.testing.assert_close(rgb, rgba[..., :3], rtol=0, atol=0) + # rgb is a view of rgba, not a copy: a write to rgba shows through it. + assert rgb.data_ptr() == rgba.data_ptr() + rgba[..., 0] = 7 + assert bool((rgb[..., 0] == 7).all()) def test_runtime_intrinsics_leave_the_retinas_rays_alone(monkeypatch) -> None: @@ -36,9 +367,8 @@ def test_runtime_intrinsics_leave_the_retinas_rays_alone(monkeypatch) -> None: def replace_rays(*args, **kwargs): raise AssertionError("the stock setter replaces the renderer's rays") - monkeypatch.setattr(Camera, "set_intrinsic_matrices", replace_rays) - monkeypatch.setattr(Camera, "__del__", lambda self: None) - camera = object.__new__(FoveatedNewtonCamera) + monkeypatch.setattr(newton_camera.Camera, "set_intrinsic_matrices", replace_rays) + camera = new_camera() with pytest.warns(UserWarning, match="leaves a foveated camera as configured") as caught: camera.set_intrinsic_matrices(torch.eye(3).repeat(2, 1, 1)) # The warning points at the caller's line. diff --git a/source/isaaclab_fovi/test/test_pooling.py b/source/isaaclab_fovi/test/test_pooling.py new file mode 100644 index 000000000000..d8cda0eb5880 --- /dev/null +++ b/source/isaaclab_fovi/test/test_pooling.py @@ -0,0 +1,172 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""The camera's pooling of its sensor buffers, segmentation and sensor mask, without a simulator. + +fovi's poolers are tested in fovi; these tests cover what the camera builds on them. +""" + +import pytest +import torch +from isaaclab_fovi.sensors import FoveatedCameraCfg, pooling +from isaaclab_fovi.sensors.pooling import ( + build_highres_coords, + build_lowres_coords, + build_pooler, + pool_hwc_buffer, + pool_segmentation_buffer, + segmentation_neighbor_indices, +) + +from isaaclab.sim import PinholeCameraCfg +from isaaclab.test.utils import DeviceScope, test_devices + +pytestmark = pytest.mark.kitless + +DEVICE = next(iter(test_devices(DeviceScope.DEFAULT_CUDA)), "cpu") +"""The modal pooling runs the same tensor operations on every device; the default GPU is what simulations use.""" + + +def pooling_cfg(**overrides) -> FoveatedCameraCfg: + """A pooled foveated camera configuration for the pooling helpers, with ``overrides`` applied. + + A 90 degree pinhole window (focal length 1, aperture 2) with a CMF constant of a tenth of it, and a small isotropic + retina pooled from three visual-field neighbours. + """ + values = dict( + prim_path="/World/Camera", + spawn=PinholeCameraCfg(focal_length=1.0, horizontal_aperture=2.0), + cmf_a_deg=9.0, + foveated_res=8, + foveated_style="isotropic", + pool_enabled=True, + pool_k=3, + pool_sample_cortex=False, + ) + return FoveatedCameraCfg(**{**values, **overrides}) + + +def test_camera_pools_its_buffers_by_its_config() -> None: + cfg = pooling_cfg(pool_mode="max") + lowres, matched = build_lowres_coords(cfg, "cpu") + highres = build_highres_coords(cfg, lowres, matched) + # The photoreceptor grid shares the retina's geometry at a higher resolution, and the pooler takes the config. + assert len(highres) > len(lowres) and highres.cmf_a == lowres.cmf_a and highres.fov == lowres.fov + pooler, neighbors = build_pooler(cfg, lowres, highres, "cpu") + assert neighbors == 3 and pooler.mode == "max" + # Pooling keeps each environment's channels apart and in order. + constants = torch.tensor([[0.25, 0.5, 0.75], [3.0, 6.0, 9.0]]) + rendered = constants[:, None, None, :].expand(2, len(highres), 1, 3).clone() + actual = pool_hwc_buffer(pooler, rendered) + assert actual.dtype == rendered.dtype + torch.testing.assert_close(actual, constants[:, None, None, :].expand(2, len(lowres), 1, 3)) + # Without pooling there is no photoreceptor grid. + cfg = pooling_cfg(pool_enabled=False) + lowres, matched = build_lowres_coords(cfg, "cpu") + assert build_highres_coords(cfg, lowres, matched) is None + + +# Three output samples over five input samples; 5 marks an excluded neighbour. Columns are outputs, rows are +# neighbour slots nearest first. +HAND_TABLE = torch.tensor([[0, 3, 5], [1, 4, 5], [2, 5, 5]]) + + +def test_modal_pooling_keeps_majority_color_vector() -> None: + # Output 0 sees [0,0,0,255] twice and [0,0,1,255] once; a per-channel max would give [0,0,1,255]. + # Output 1 sees one vote each for two colors (its third slot is excluded): the nearest neighbour wins. + # Output 2 has no valid neighbour and is zero. + colors = torch.tensor( + [[0, 0, 0, 255], [0, 0, 0, 255], [0, 0, 1, 255], [10, 20, 30, 255], [200, 100, 0, 255]], dtype=torch.uint8 + ) + rendered = colors[None, :, None, :].to(DEVICE) + pooled = pool_segmentation_buffer(HAND_TABLE.to(DEVICE), rendered) + expected = torch.tensor([[0, 0, 0, 255], [10, 20, 30, 255], [0, 0, 0, 0]], dtype=torch.uint8) + assert pooled.dtype == torch.uint8 + assert torch.equal(pooled.cpu(), expected[None, :, None, :]) + # Swapping the tied neighbours' order flips the winner. + swapped = HAND_TABLE[[1, 0, 2]].to(DEVICE) + assert torch.equal(pool_segmentation_buffer(swapped, rendered)[0, 1, 0].cpu(), colors[4]) + + +def test_modal_pooling_preserves_ids_above_float_precision() -> None: + # 2**24 + 1 and 2**24 + 3 round to other values in float32; the IDs must come back exactly. + big = 2**40 + ids = torch.tensor([2**24 + 1, 2**24 + 1, 2**24 + 3, big + 7, big + 7], dtype=torch.int64) + batch = torch.stack([ids, ids.flip(0)])[:, :, None, None].to(DEVICE) + pooled = pool_segmentation_buffer(HAND_TABLE.to(DEVICE), batch) + expected = torch.tensor([[2**24 + 1, big + 7, 0], [big + 7, 2**24 + 1, 0]], dtype=torch.int64) + assert pooled.dtype == torch.int64 + assert torch.equal(pooled[..., 0, 0].cpu(), expected) + # Two int64 channels exceed the 8-byte packed key; vectors differing only in the second channel stay distinct. + vectors = torch.tensor([[1, 2**40], [1, 2**40 + 1], [1, 2**40 + 1], [5, 6], [7, 8]], dtype=torch.int64) + pooled = pool_segmentation_buffer(HAND_TABLE.to(DEVICE), vectors[None, :, None, :].to(DEVICE)) + assert torch.equal(pooled[0, :, 0].cpu(), torch.tensor([[1, 2**40 + 1], [5, 6], [0, 0]])) + + +def reference_modal_pool(table: torch.Tensor, values: torch.Tensor) -> torch.Tensor: + """Brute-force modal pooling of ``(B, N_hi, C)`` values over a ``(k, N_lo)`` neighbour table.""" + batch, num_inputs, channels = values.shape + out = torch.zeros(batch, table.shape[1], channels, dtype=values.dtype) + for b in range(batch): + for n in range(table.shape[1]): + neighbours = [tuple(values[b, i].tolist()) for i in table[:, n].tolist() if i != num_inputs] + if neighbours: + # max() keeps the first of equally common values, i.e. the earliest neighbour slot. + out[b, n] = torch.tensor(max(neighbours, key=neighbours.count), dtype=values.dtype) + return out + + +@pytest.mark.parametrize( + ("style", "pool_k", "sample_cortex"), [("warped_cartesian_as_grid", 9, False), ("isotropic", 3, False)] +) +def test_modal_pooling_uses_the_poolers_neighbourhoods(monkeypatch, style: str, pool_k: int, sample_cortex) -> None: + """Segmentation pools over the same neighbourhoods as the camera's other outputs: grid windows or KNN.""" + cfg = pooling_cfg(foveated_style=style, pool_k=pool_k, pool_sample_cortex=sample_cortex, pool_mode="max") + lowres, matched = build_lowres_coords(cfg, "cpu") + highres = build_highres_coords(cfg, lowres, matched) + pooler, k = build_pooler(cfg, lowres, highres, "cpu") + table = segmentation_neighbor_indices(pooler) + assert table.shape == (k, len(lowres)) + # The table holds exactly the samples the max pooler reduces over: a max over the table matches it. + values = torch.rand(1, len(highres), 1, 1, generator=torch.Generator().manual_seed(0)) + 1 + padded = torch.cat([values[0, :, 0, 0], torch.zeros(1)]) + torch.testing.assert_close(padded[table].max(dim=0).values, pool_hwc_buffer(pooler, values)[0, :, 0, 0]) + + # Few labels so neighbourhoods hold repeats and ties; tiny chunks exercise the batched loop. + monkeypatch.setattr(pooling, "_MODAL_CHUNK_ELEMENTS", 1) + labels = torch.randint(0, 3, (3, len(highres), 1, 2), generator=torch.Generator().manual_seed(1)).to(torch.uint8) + pooled = pool_segmentation_buffer(table, labels) + assert torch.equal(pooled[:, :, 0], reference_modal_pool(table, labels[:, :, 0])) + + +@pytest.mark.parametrize(("style", "pool_k", "mode"), [("warped_cartesian_as_grid", 9, "avg"), ("isotropic", 6, "max")]) +def test_pooling_leaves_out_photoreceptors_the_camera_does_not_see(style: str, pool_k: int, mode: str) -> None: + cfg = pooling_cfg(foveated_style=style, pool_mode=mode, pool_k=pool_k) + lowres, matched = build_lowres_coords(cfg, DEVICE) + highres = build_highres_coords(cfg, lowres, matched) + pooler, _ = build_pooler(cfg, lowres, highres, DEVICE) + # The camera's image edge cuts the retina at x = 0.3 in the first environment; the second sees everything. + visible = torch.stack([highres.cartesian[:, 0] < 0.3, torch.ones(len(highres), dtype=torch.bool, device=DEVICE)]) + # The camera zeroes unseen photoreceptors before pooling. A negative value lets those zeros win a plain max. + value = -0.7 if mode == "max" else 0.7 + values = torch.where(visible, value, 0.0)[:, :, None, None] + pooled = pool_hwc_buffer(pooler, values, visible)[:, :, 0, 0] + unseen = pool_hwc_buffer(pooler, visible.float()[:, :, None, None], visible)[:, :, 0, 0] == 0 + # Some outputs straddle the edge: plain pooling lets the mask's zeros into them. + straddling = (pool_hwc_buffer(pooler, values)[0, :, 0, 0] - value).abs() > 0.01 + assert (straddling & ~unseen[0] & lowres.valid_mask).any() + # Each output pools only what the camera sees: the constant where it sees any photoreceptor, zero where it sees + # none or lies outside the retina. + expected = torch.where(unseen | ~lowres.valid_mask, 0.0, value) + torch.testing.assert_close(pooled, expected) + assert unseen[0].any() and not unseen[1, lowres.valid_mask].any() + + +def test_modal_pooling_leaves_out_labels_the_camera_does_not_see() -> None: + # Output 0 sees labels [1, 1, 2]; hiding the two 1s leaves 2. Output 1 sees [4, 5]; hiding both leaves nothing. + labels = torch.tensor([1, 1, 2, 4, 5], dtype=torch.int32)[None, :, None, None].expand(2, -1, -1, -1) + visible = torch.tensor([[False, False, True, False, False], [True, True, True, True, True]]) + pooled = pool_segmentation_buffer(HAND_TABLE, labels, visible)[..., 0, 0] + assert torch.equal(pooled, torch.tensor([[2, 0, 0], [1, 4, 0]], dtype=torch.int32)) diff --git a/source/isaaclab_fovi/test/test_rtx_camera.py b/source/isaaclab_fovi/test/test_rtx_camera.py index 02594a411ab5..23fbbfd36593 100644 --- a/source/isaaclab_fovi/test/test_rtx_camera.py +++ b/source/isaaclab_fovi/test/test_rtx_camera.py @@ -5,18 +5,23 @@ """RTX camera contracts that need no renderer: construction, lens textures and their USD schema, and capture.""" +import math import tempfile from pathlib import Path from types import SimpleNamespace import pytest +import torch +import warp as wp +from isaaclab_fovi.sensors import foveated_rtx_camera, lens_lut from isaaclab_fovi.sensors.foveated_camera_cfg import FoveatedCameraCfg from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera -from isaaclab_fovi.sensors.lens_lut import apply_lens_lut_to_prim +from isaaclab_fovi.sensors.lens_lut import apply_lens_lut_to_prim, build_lut_textures from isaaclab_ov.renderers import OVRTXRendererCfg from isaaclab.sensors.camera.camera import Camera from isaaclab.sim import PinholeCameraCfg +from isaaclab.utils.warp import ProxyArray pytestmark = pytest.mark.kitless @@ -42,6 +47,37 @@ def test_near_clip_comes_from_spawn_or_else_the_camera_prim() -> None: assert FoveatedRTXCamera._near_clipping_distance(spawned, prim) == pytest.approx(0.01) +@pytest.mark.parametrize("native_grid", [False, True]) +def test_partial_capture_extracts_only_the_updated_environments(native_grid) -> None: + """Environments outside the update mask keep their samples, and each camera's near-plane offset is added once.""" + height, width = 4, 5 + texture = torch.arange(3 * height * width, dtype=torch.float32).reshape(3, height, width, 1) + if native_grid: + texels = [(py, px) for py in range(height) for px in range(width)] + else: + texels = [(3, 1), (0, 4), (2, 0), (1, 3), (3, 4), (0, 2), (2, 2)] + camera = SimpleNamespace( + cfg=SimpleNamespace(renderer_cfg=SimpleNamespace(renderer_type="ovrtx")), + # An OVRTX camera with distance_to_camera output adds each camera's near clip. + _offset_distance=True, + _native_grid=native_grid, + _near_clip=torch.tensor([0.25, 0.5, 0.75]).view(-1, 1, 1, 1), + # The renderer-bound texture buffers are ProxyArrays, as the parent camera allocates them. + _texture_output={"distance_to_camera": ProxyArray(wp.from_torch(texture))}, + _foveated_output={"distance_to_camera": torch.full((3, len(texels), 1, 1), -1.0)}, + _extract_py=torch.tensor([py for py, _ in texels]), + _extract_px=torch.tensor([px for _, px in texels]), + ) + updated = wp.array([True, False, True], dtype=wp.bool, device="cpu") + for _ in range(2): + FoveatedRTXCamera._extract_foveated_samples(camera, updated) + samples = camera._foveated_output["distance_to_camera"] + for env, near_clip in ((0, 0.25), (2, 0.75)): + expected = torch.tensor([float(texture[env, py, px, 0]) + near_clip for py, px in texels]) + torch.testing.assert_close(samples[env, :, 0, 0], expected, atol=0, rtol=0) + assert bool((samples[1] == -1.0).all()) + + def test_releasing_the_camera_removes_its_lens_textures(monkeypatch, tmp_path) -> None: monkeypatch.setattr(Camera, "__del__", lambda self, *args, **kwargs: None) camera = object.__new__(FoveatedRTXCamera) @@ -65,18 +101,27 @@ def construct(self, cfg): self.cfg = cfg self.stage = stage - def prepare(self): - self._dir_tex_path, self._exit_tex_path = "/textures/enter.exr", "/textures/exit.exr" + build_directions = lens_lut.native_grid_directions + ray_builds = [] + + def measure_directions(*args, **kwargs): + rays = build_directions(*args, **kwargs) + ray_builds.append(rays) + return rays + texture_paths = ("/textures/enter.exr", "/textures/exit.exr") monkeypatch.setattr(Camera, "__init__", construct) - monkeypatch.setattr(FoveatedRTXCamera, "_prepare_projection", prepare) + # Count at both import locations so evaluating a second ray grid in the camera fails this check. + monkeypatch.setattr(lens_lut, "native_grid_directions", measure_directions) + monkeypatch.setattr(foveated_rtx_camera, "native_grid_directions", measure_directions, raising=False) + monkeypatch.setattr(lens_lut, "save_lut_textures", lambda *args: texture_paths) monkeypatch.setattr(FoveatedRTXCamera, "__del__", lambda self, *args, **kwargs: None) cfg = FoveatedCameraCfg( prim_path="/World/envs/env_.*/Camera", spawn=PinholeCameraCfg(), renderer_cfg=OVRTXRendererCfg(), data_types=["rgb"], - foveated_res=64, + foveated_res=16, ) assert cfg.spawn.lock_camera camera = FoveatedRTXCamera(cfg) @@ -84,7 +129,8 @@ def prepare(self): assert prim.GetAttribute("omni:kit:cameraLock").Get() is False assert prim.GetAttribute("omni:lensdistortion:model").Get() == "lut" assert prim.GetAttribute("omni:lensdistortion:lut:rayEnterDirectionTexture").Get().path == "/textures/enter.exr" - assert camera.cfg is not cfg and camera.cfg.height == 64 + assert camera.cfg is not cfg and (camera.cfg.height, camera.cfg.width) == (16, 16) + assert len(ray_builds) == 1 assert cfg.spawn.lock_camera and (cfg.height, cfg.width) == (1, 1) @@ -106,3 +152,32 @@ def test_lens_lut_survives_usd_export_without_schema_registration() -> None: "generalizedProjectionNDCTexturePath", ): assert not prim.HasProperty(name), name + + +def test_sample_set_lens_textures_place_samples_and_mark_rays_outside_the_field() -> None: + # A sample set with one sample per texel, in shuffled order, puts each sample's ray at its own texel. + size = 4 + axis = (torch.arange(size) + 0.5) / size + row, col = torch.meshgrid(axis, axis, indexing="ij") + centres = torch.stack((col, row), -1).reshape(-1, 2) + order = torch.randperm(size * size, generator=torch.Generator().manual_seed(0)) + directions = torch.nn.functional.normalize(torch.randn(size * size, 3, generator=torch.Generator().manual_seed(1))) + direction_texture, _ = build_lut_textures(centres[order], directions, size, size, 16, 16, device="cpu") + texels = (centres[order] * size).long() + torch.testing.assert_close(direction_texture[texels[:, 1], texels[:, 0]], directions) + + # The inverse lookup sends each in-field ray to its nearest sample, and every other ray to the invalid UV, never + # to the fovea. Three samples: the optical axis (OpenGL -z) and two rays 10 degrees off it. + angle = math.radians(10.0) + directions = torch.tensor( + [[0.0, 0.0, -1.0], [math.sin(angle), 0.0, -math.cos(angle)], [0.0, math.sin(angle), -math.cos(angle)]] + ) + uv = torch.tensor([[0.5, 0.5], [0.9, 0.5], [0.5, 0.9]]) + _, exit_texture = build_lut_textures(uv, directions, 8, 8, 32, 32, device="cpu") + texels = exit_texture.reshape(-1, exit_texture.shape[-1])[:, :2] + invalid = (texels == -1.0).all(dim=-1) + # Rays outside the 10 degree field outnumber those inside it on the hemisphere's octahedral grid. + assert invalid.float().mean() > 0.5 and (~invalid).any() + assert all(any(torch.equal(texel, sample) for sample in uv) for texel in texels[~invalid]) + # The octahedral centre is the optical axis, which reaches the axis sample. + torch.testing.assert_close(exit_texture[exit_texture.shape[0] // 2, exit_texture.shape[1] // 2, :2], uv[0]) diff --git a/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst b/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst index 6a26475420f2..94b3efa5d3dc 100644 --- a/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst +++ b/source/isaaclab_tasks/changelog.d/active-gaze-cartpole.added.rst @@ -1,2 +1,3 @@ -* Added the ``IsaacContrib-Cartpole-Camera-Fovi`` task with foveated RGB and depth presets, policy-controlled - gaze, and the stock RSL-RL PPO runner. The task is available with the ``fovi`` extra. +* Added the ``IsaacContrib-Cartpole-Camera-Fovi`` task in :mod:`isaaclab_tasks.contrib.active_gaze`: the Cartpole + camera task with a foveated camera whose gaze the policy moves, trained with gaze-supervised PPO and a fixed gaze + action noise. It is registered when the ``fovi`` extra is installed. diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py new file mode 100644 index 000000000000..3544c85a35fb --- /dev/null +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py @@ -0,0 +1,85 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""Building blocks of active-gaze camera tasks: a foveated version of a stock camera, and the gaze observations.""" + +from __future__ import annotations + +from dataclasses import MISSING, fields + +from isaaclab_fovi import mdp +from isaaclab_fovi.sensors import FoveatedCameraCfg + +from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg, SceneEntityCfg +from isaaclab.sensors import CameraCfg +from isaaclab.utils import configclass + +from isaaclab_tasks.utils import PresetCfg, preset + + +def foveated_camera(camera: CameraCfg, foveated_res: int | None = None) -> FoveatedCameraCfg: + """A foveated camera at the camera's mount, with its optics, data types and renderer. + + The retina covers the camera's short side and is ``foveated_res`` samples across, by default the camera's width, + so the number of rendered rays stays close to the camera's pixels. Samples the camera does not see are zero. + The foveated camera keeps its own image size and per-frame pose updates, which render each new gaze. + """ + # A copy, so the foveated camera shares no nested configuration (spawn, renderer, offset) with the preset's. + camera = camera.copy() + own = {"class_type", "width", "height", "update_latest_camera_pose"} + values = {field.name: getattr(camera, field.name) for field in fields(CameraCfg) if field.name not in own} + resolution = camera.width if foveated_res is None else foveated_res + return FoveatedCameraCfg(**values, foveated_res=resolution, mask_to_sensor_fov=True) + + +def foveated_presets(cameras: PresetCfg, foveated_res: int | None = None) -> PresetCfg: + """The foveated version of every camera preset, under the same names. Other sensors are left out. + + ``foveated_res`` applies to every preset; by default each keeps its camera's width. + """ + options = {} + for name in cameras.__dataclass_fields__: + camera = getattr(cameras, name) + if not name.startswith("_") and isinstance(camera, CameraCfg): + options[name] = foveated_camera(camera, foveated_res) + return preset(**options) + + +def select_presets(options: PresetCfg, names) -> PresetCfg: + """The options of a preset whose names are in ``names``, plus its default.""" + return preset( + **{name: getattr(options, name) for name in options.__dataclass_fields__ if name in {*names, "default"}} + ) + + +def oracle_observations( + target_cfg: SceneEntityCfg, offset: tuple[float, float, float] = (0.0, 0.0, 0.0) +) -> OracleObservationsCfg: + """The teacher's gaze labels toward a point fixed to an asset.""" + return OracleObservationsCfg( + labels=ObservationTermCfg(func=mdp.gaze_teacher_labels, params={"target_cfg": target_cfg, "offset": offset}) + ) + + +@configclass +class GazeObservationsCfg(ObservationGroupCfg): + """The gaze, in field radii, and its velocity, in field radii per second.""" + + state = ObservationTermCfg(func=mdp.gaze_state) + + def __post_init__(self): + self.enable_corruption = False + self.concatenate_terms = True + + +@configclass +class OracleObservationsCfg(ObservationGroupCfg): + """The teacher's gaze labels. Training labels, never a policy input.""" + + labels: ObservationTermCfg = MISSING + + def __post_init__(self): + self.enable_corruption = False + self.concatenate_terms = True diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py index b3ba0ba05bb2..409c686b00e5 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py @@ -3,16 +3,38 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Stock Cartpole camera PPO with gaze state in the actor and critic observations.""" +"""RSL-RL agents of the active-gaze tasks: the stock PPO with gaze supervision and a fixed gaze noise.""" -from isaaclab.utils import configclass +from dataclasses import fields + +from isaaclab.utils import configclass, replace + +from isaaclab_rl.rsl_rl import RslRlMLPModelCfg, RslRlPpoAlgorithmCfg from isaaclab_tasks.core.cartpole.agents.rsl_rl_ppo_cfg import CartpoleCameraPPORunnerCfg +from .gaze_distribution_cfg import GazeGaussianDistributionCfg +from .gaze_supervised_ppo_cfg import GazeSupervisedPPOCfg + + +def gaze_supervised(algorithm: RslRlPpoAlgorithmCfg, **kwargs) -> GazeSupervisedPPOCfg: + """The PPO settings of ``algorithm`` with gaze supervision by the teacher.""" + values = {field.name: getattr(algorithm, field.name) for field in fields(algorithm) if field.name != "class_name"} + return GazeSupervisedPPOCfg(**values, **kwargs) + + +def gaze_actor(actor: RslRlMLPModelCfg) -> RslRlMLPModelCfg: + """The stock actor with a fixed, small noise on its gaze actions, the last two.""" + stock = actor.distribution_cfg + head = GazeGaussianDistributionCfg(init_std=stock.init_std, std_type=stock.std_type, std_range=stock.std_range) + return replace(actor, distribution_cfg=head) + @configclass class CartpoleCameraFoviPPORunnerCfg(CartpoleCameraPPORunnerCfg): - """Train the camera policy and gaze actions with the stock PPO runner.""" + """The stock Cartpole camera PPO with gaze supervision; the actor and critic also see the gaze.""" experiment_name = "cartpole_camera_fovi" obs_groups = {"actor": ["policy", "gaze"], "critic": ["critic", "gaze"]} + actor = gaze_actor(CartpoleCameraPPORunnerCfg().actor) + algorithm = gaze_supervised(CartpoleCameraPPORunnerCfg().algorithm) diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py index afe967165329..da42ff2226c3 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py @@ -3,84 +3,83 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Camera Cartpole with a foveated view and policy-controlled gaze.""" +"""Cartpole with a foveated camera, in RGB or depth. -from dataclasses import MISSING +The stock camera task with the camera foveated and two gaze actions. The teacher looks at the pole's tip. The retina +is :data:`RETINA_RES` samples across, enough for a task that only needs to see a bar. The policy gets two gaze actions, +whose noise is fixed, and the teacher's gaze labels supervise them during training. +""" from isaaclab_fovi import mdp -from isaaclab_fovi.sensors import FoveatedCameraCfg -from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg -from isaaclab.sensors import CameraCfg +from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg, SceneEntityCfg from isaaclab.utils import configclass +from isaaclab_tasks.core.cartpole import mdp as cartpole_mdp from isaaclab_tasks.core.cartpole.cartpole_common import CartpoleTiledCameraCfg -from isaaclab_tasks.core.cartpole.cartpole_manager_camera_env_cfg import ( - CartpoleCameraEnvCfg, - CartpoleCameraSceneCfg, - image_observations_cfg, -) +from isaaclab_tasks.core.cartpole.cartpole_manager_camera_env_cfg import CartpoleCameraEnvCfg, CartpoleCameraSceneCfg from isaaclab_tasks.core.cartpole.cartpole_manager_env_cfg import ActionsCfg as CartpoleActionsCfg +from isaaclab_tasks.core.cartpole.cartpole_manager_env_cfg import ObservationsCfg as CartpoleObservationsCfg from isaaclab_tasks.utils import PresetCfg +from .active_gaze_cfg import GazeObservationsCfg, foveated_presets, oracle_observations, select_presets -def _foveated_camera(camera: CameraCfg) -> FoveatedCameraCfg: - """Apply the retina to the stock Cartpole camera's mount, optics, and renderer.""" - return FoveatedCameraCfg( - prim_path=camera.prim_path, - offset=camera.offset, - spawn=camera.spawn, - data_types=camera.data_types, - renderer_cfg=camera.renderer_cfg, - foveated_res=32, - mask_to_sensor_fov=True, - ) +POLE_TIP = (0.0, 0.0, 1.0) +"""The pole's tip in the pole's frame [m].""" +RETINA_RES = 32 +"""Retina samples across; the stock camera is 96 pixels across.""" -@configclass -class CameraPresetsCfg(PresetCfg): - """Select the foveated RGB or depth output.""" - rgb = _foveated_camera(CartpoleTiledCameraCfg().rgb) - depth = _foveated_camera(CartpoleTiledCameraCfg().depth) - default = rgb +def observations(data_type: str, image_term) -> object: + """The stock camera observations of ``data_type``, the gaze, and the teacher's labels.""" + + @configclass + class ObservationsCfg: + @configclass + class PolicyCfg(ObservationGroupCfg): + image = ObservationTermCfg( + func=image_term, + params={ + "sensor_cfg": SceneEntityCfg("tiled_camera"), + "data_type": data_type, + "channel_first": True, + "frame_stack": 2, + }, + ) + + def __post_init__(self): + self.enable_corruption = False + self.concatenate_terms = True + + policy: ObservationGroupCfg = PolicyCfg() + critic: ObservationGroupCfg = CartpoleObservationsCfg.PolicyCfg() + gaze: ObservationGroupCfg = GazeObservationsCfg() + oracle: ObservationGroupCfg = oracle_observations(SceneEntityCfg("robot", body_names="pole"), POLE_TIP) + + return ObservationsCfg() @configclass class SceneCfg(CartpoleCameraSceneCfg): - tiled_camera: CameraPresetsCfg = CameraPresetsCfg() + tiled_camera = select_presets(foveated_presets(CartpoleTiledCameraCfg(), RETINA_RES), ("rgb", "depth")) @configclass class ActionsCfg(CartpoleActionsCfg): + # The gaze must be the last action term. gaze = mdp.GazeActionCfg(asset_name="tiled_camera") -@configclass -class ObservationsCfg: - @configclass - class GazeCfg(ObservationGroupCfg): - state = ObservationTermCfg(func=mdp.gaze_state) - - policy: ObservationGroupCfg = MISSING - critic: ObservationGroupCfg = MISSING - gaze: GazeCfg = GazeCfg() - - -def _observations(data_type: str) -> ObservationsCfg: - images = image_observations_cfg(data_type) - return ObservationsCfg(policy=images.policy, critic=images.critic) - - @configclass class CartpoleCameraFoviEnvCfg(PresetCfg): - """Cartpole with gaze control and RGB or depth retinal observations.""" + """Cartpole with a foveated camera; ``presets=depth`` selects depth images.""" @configclass class BaseCfg(CartpoleCameraEnvCfg.BaseCartpoleCameraEnvCfg): scene: SceneCfg = SceneCfg(num_envs=512, env_spacing=20.0) actions: ActionsCfg = ActionsCfg() - rgb = BaseCfg(observations=_observations("rgb")) - depth = BaseCfg(observations=_observations("depth")) + rgb = BaseCfg(observations=observations("rgb", cartpole_mdp.image_rgb)) + depth = BaseCfg(observations=observations("depth", cartpole_mdp.image_depth)) default = rgb diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution.py new file mode 100644 index 000000000000..9829707c282f --- /dev/null +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution.py @@ -0,0 +1,61 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""Gaussian action head whose gaze actions have a fixed standard deviation.""" + +from __future__ import annotations + +import math + +import torch +from rsl_rl.modules.distribution import GaussianDistribution +from torch.distributions import Normal + +GAZE_ACTIONS = 2 +"""The gaze actions (tilt, pan) are the policy's last two actions.""" + + +class GazeGaussianDistribution(GaussianDistribution): + """Gaussian action head with a learned standard deviation for every action but the gaze, the last two, whose + standard deviation is fixed at ``gaze_std``. + + The gaze step clamps each gaze action to [-1, 1], so beyond that range a wider gaze distribution changes neither + the reward nor PPO's surrogate, and the entropy bonus grows a learned standard deviation without bound; the sampled + gaze then random-walks however well its mean follows the teacher. + + Args: + output_dim: Number of actions, the two gaze actions included. + init_std: Initial standard deviation of the other actions. + std_range: (min, max) clamp of the other actions' standard deviation. + std_type: Parameterization of the other actions' standard deviation: ``"scalar"`` or ``"log"``. + learn_std: Whether the other actions' standard deviation is learned. + gaze_std: Fixed standard deviation of the gaze actions. + """ + + def __init__( + self, + output_dim: int, + init_std: float = 1.0, + std_range: tuple[float, float] = (1e-6, 1e6), + std_type: str = "scalar", + learn_std: bool = True, + gaze_std: float = 0.1, + ) -> None: + if output_dim <= GAZE_ACTIONS: + raise ValueError(f"The gaze head needs actions besides the {GAZE_ACTIONS} gaze actions, got {output_dim}.") + if not (math.isfinite(gaze_std) and gaze_std > 0): + raise ValueError(f"gaze_std must be positive and finite, got {gaze_std!r}.") + # The learned parameter covers the other actions only. + super().__init__(output_dim - GAZE_ACTIONS, init_std, std_range, std_type, learn_std) + self.output_dim = output_dim + self.register_buffer("gaze_std", torch.full((GAZE_ACTIONS,), float(gaze_std))) + + def update(self, mlp_output: torch.Tensor) -> None: + """Update the distribution from the MLP output: learned noise for the other actions, fixed for the gaze.""" + if self.std_type == "scalar": + std = self.std_param.clamp(self.std_range[0], self.std_range[1]) + else: + std = self.log_std_param.clamp(self.log_std_range[0], self.log_std_range[1]).exp() + self._distribution = Normal(mlp_output, torch.cat((std, self.gaze_std))) diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution_cfg.py new file mode 100644 index 000000000000..fac45da54582 --- /dev/null +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_distribution_cfg.py @@ -0,0 +1,24 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""Configuration of :class:`~isaaclab_tasks.contrib.active_gaze.gaze_distribution.GazeGaussianDistribution`.""" + +from __future__ import annotations + +from isaaclab.utils import configclass + +from isaaclab_rl.rsl_rl import RslRlMLPModelCfg + + +@configclass +class GazeGaussianDistributionCfg(RslRlMLPModelCfg.GaussianDistributionCfg): + """Gaussian action head whose gaze actions, the last two, have a fixed standard deviation. + + ``init_std``, ``std_type`` and ``std_range`` apply to the other actions. + """ + + class_name: str = "isaaclab_tasks.contrib.active_gaze.gaze_distribution:GazeGaussianDistribution" + gaze_std: float = 0.1 + """Fixed standard deviation of the gaze actions. One action moves the gaze by the gaze action's ``step_size``.""" diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo.py new file mode 100644 index 000000000000..3e1990dfdeb7 --- /dev/null +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo.py @@ -0,0 +1,134 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""PPO with gaze supervision by a teacher, for RSL-RL. + +The update follows :meth:`rsl_rl.algorithms.PPO.update` (BSD-3-Clause) for feedforward models without RND or +symmetry, and adds the teacher's gaze loss to the PPO loss. +""" + +from __future__ import annotations + +import math + +import torch +from rsl_rl.algorithms import PPO +from torch import nn + +from .gaze_distribution import GAZE_ACTIONS + + +def gaze_loss(mean: torch.Tensor, labels: torch.Tensor) -> torch.Tensor: + """Mean distance between the policy's gaze-action means and the teacher's, over valid labels. + + Args: + mean: The policy's gaze-action means, shape (batch, 2). + labels: The teacher's gaze actions and their validity, shape (batch, 3). + """ + valid = labels[:, 2] > 0.5 + # Invalid rows may hold NaN; replacing it keeps their (discarded) residuals finite, so no NaN reaches the gradients. + residual = torch.where(valid[:, None], mean - torch.nan_to_num(labels[:, :2]), 0.0) + return residual.norm(dim=-1).sum() / valid.sum().clamp_min(1) + + +class GazeSupervisedPPO(PPO): + """PPO whose loss also pulls the policy's gaze toward a teacher's. + + The gaze is the last two actions. The teacher's labels are the observation group ``oracle_group``, as + :class:`isaaclab_fovi.mdp.gaze_teacher_labels` computes them; they never enter the actor or the critic. Only the + means of the gaze actions are supervised; pair it with + :class:`~isaaclab_tasks.contrib.active_gaze.gaze_distribution.GazeGaussianDistribution`, which fixes their noise. + + Args: + oracle_loss_coef: Weight of the gaze loss. Zero trains plain PPO. + oracle_group: Observation group of the teacher's labels. + """ + + def __init__( + self, + actor, + critic, + storage, + *, + oracle_loss_coef: float = 1.0, + oracle_group: str = "oracle", + **kwargs, + ): + if actor.is_recurrent or critic.is_recurrent or kwargs.get("rnd_cfg") or kwargs.get("symmetry_cfg"): + raise ValueError("GazeSupervisedPPO supports feedforward models without RND or symmetry.") + if not math.isfinite(oracle_loss_coef) or oracle_loss_coef < 0: + raise ValueError("oracle_loss_coef must be finite and nonnegative.") + super().__init__(actor, critic, storage, **kwargs) + self.oracle_loss_coef = oracle_loss_coef + self.oracle_group = oracle_group + + def update(self) -> dict[str, float]: + totals = torch.zeros(5, device=self.device) + generator = self.storage.mini_batch_generator(self.num_mini_batches, self.num_learning_epochs) + for batch in generator: + if self.normalize_advantage_per_mini_batch: + with torch.no_grad(): + batch.advantages = (batch.advantages - batch.advantages.mean()) / (batch.advantages.std() + 1e-8) + with torch.amp.autocast( + device_type=torch.device(self.device).type, enabled=self.use_mixed_precision, dtype=torch.bfloat16 + ): + self.actor(batch.observations, stochastic_output=True) + log_prob = self.actor.get_output_log_prob(batch.actions) + values = self.critic(batch.observations) + entropy = self.actor.output_entropy.mean() + if self.desired_kl is not None and self.schedule == "adaptive": + self._adapt_learning_rate(batch.old_distribution_params, self.actor.output_distribution_params) + ratio = torch.exp(log_prob - batch.old_actions_log_prob.squeeze(-1)) + advantages = batch.advantages.squeeze(-1) + surrogate = torch.max( + -advantages * ratio, -advantages * ratio.clamp(1.0 - self.clip_param, 1.0 + self.clip_param) + ).mean() + value_error = (values - batch.returns).pow(2) + if self.use_clipped_value_loss: + clipped = batch.values + (values - batch.values).clamp(-self.clip_param, self.clip_param) + value_error = torch.max(value_error, (clipped - batch.returns).pow(2)) + value_loss = value_error.mean() + loss = surrogate + self.value_loss_coef * value_loss - self.entropy_coef * entropy + if self.oracle_loss_coef > 0: + labels = batch.observations[self.oracle_group].float() + oracle = gaze_loss(self.actor.output_mean[:, -GAZE_ACTIONS:].float(), labels) + valid = (labels[:, 2] > 0.5).float().mean() + loss = loss + self.oracle_loss_coef * oracle + else: + # Plain PPO: the teacher's labels are neither needed nor read. + oracle = valid = torch.zeros((), device=self.device) + self.optimizer.zero_grad() + loss.backward() + if self.is_multi_gpu: + self.reduce_parameters() + nn.utils.clip_grad_norm_(self.actor.parameters(), self.max_grad_norm) + nn.utils.clip_grad_norm_(self.critic.parameters(), self.max_grad_norm) + self.optimizer.step() + totals += torch.stack((value_loss, surrogate, entropy, oracle, valid)).detach().float() + obs = self.storage.observations.flatten(0, 1) + self.actor.update_normalization(obs) + self.critic.update_normalization(obs) + self.storage.clear() + means = (totals / (self.num_learning_epochs * self.num_mini_batches)).tolist() + return dict(zip(("value", "surrogate", "entropy", "oracle", "oracle_valid"), means, strict=True)) + + def _adapt_learning_rate(self, old_params, new_params): + """Adapt the learning rate to the policy's KL divergence, as PPO's adaptive schedule does.""" + with torch.inference_mode(): + kl = self.actor.get_kl_divergence(old_params, new_params).mean() + if self.is_multi_gpu: + torch.distributed.all_reduce(kl, op=torch.distributed.ReduceOp.SUM) + kl /= self.gpu_world_size + if self.gpu_global_rank == 0: + if kl > self.desired_kl * 2.0: + self.learning_rate = max(1e-5, self.learning_rate / 1.5) + elif 0.0 < kl < self.desired_kl / 2.0: + self.learning_rate = min(1e-2, self.learning_rate * 1.5) + if self.is_multi_gpu: + rate = torch.tensor(self.learning_rate, device=self.device) + torch.distributed.broadcast(rate, src=0) + self.learning_rate = rate.item() + for group in self.optimizer.param_groups: + group["lr"] = self.learning_rate diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo_cfg.py new file mode 100644 index 000000000000..907dc6773afb --- /dev/null +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/gaze_supervised_ppo_cfg.py @@ -0,0 +1,26 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""Configuration of :class:`~isaaclab_tasks.contrib.active_gaze.gaze_supervised_ppo.GazeSupervisedPPO`.""" + +from __future__ import annotations + +from isaaclab.utils import configclass + +from isaaclab_rl.rsl_rl import RslRlPpoAlgorithmCfg + + +@configclass +class GazeSupervisedPPOCfg(RslRlPpoAlgorithmCfg): + """PPO whose loss also pulls the policy's gaze toward a teacher's. + + See :class:`~isaaclab_tasks.contrib.active_gaze.gaze_supervised_ppo.GazeSupervisedPPO`. + """ + + class_name: str = "isaaclab_tasks.contrib.active_gaze.gaze_supervised_ppo:GazeSupervisedPPO" + oracle_loss_coef: float = 1.0 + """Weight of the gaze loss. Zero trains plain PPO.""" + oracle_group: str = "oracle" + """Observation group of the teacher's labels.""" diff --git a/source/isaaclab_tasks/test/contrib/test_active_gaze_ppo.py b/source/isaaclab_tasks/test/contrib/test_active_gaze_ppo.py new file mode 100644 index 000000000000..3ed040c4f789 --- /dev/null +++ b/source/isaaclab_tasks/test/contrib/test_active_gaze_ppo.py @@ -0,0 +1,129 @@ +# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). +# All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause + +"""Gaze-supervised PPO and the fixed-noise gaze head of the active-gaze tasks, without a simulator.""" + +import pytest +import torch +from rsl_rl.algorithms import PPO +from rsl_rl.models import MLPModel +from rsl_rl.storage import RolloutStorage +from tensordict import TensorDict + +from isaaclab_tasks.contrib.active_gaze.gaze_distribution import GazeGaussianDistribution +from isaaclab_tasks.contrib.active_gaze.gaze_distribution_cfg import GazeGaussianDistributionCfg +from isaaclab_tasks.contrib.active_gaze.gaze_supervised_ppo import GazeSupervisedPPO, gaze_loss + +pytestmark = pytest.mark.kitless + +NUM_ENVS = 64 +STEPS = 8 + + +def test_gaze_loss_ignores_invalid_labels(): + mean = torch.tensor([[0.0, 0.0], [1.0, 1.0]], requires_grad=True) + labels = torch.tensor([[0.3, 0.4, 1.0], [float("nan"), float("nan"), 0.0]]) + loss = gaze_loss(mean, labels) + loss.backward() + assert float(loss.detach()) == pytest.approx(0.5) + assert torch.isfinite(mean.grad).all() and not mean.grad[1].any() + + +def _algorithm( + oracle_loss_coef: float = 1.0, with_labels: bool = True, stock: bool = False, gaze_head: bool = False +) -> tuple[PPO | GazeSupervisedPPO, TensorDict]: + torch.manual_seed(0) + labels = torch.rand(NUM_ENVS, 3) * 2 - 1 + labels[:, 2] = (torch.arange(NUM_ENVS) % 4 != 0).float() + labels[labels[:, 2] == 0, :2] = float("nan") + groups = {"policy": torch.randn(NUM_ENVS, 6)} | ({"oracle": labels} if with_labels else {}) + obs = TensorDict(groups, batch_size=[NUM_ENVS]) + model_groups = {"actor": ["policy"], "critic": ["policy"]} + distribution = {"class_name": "GaussianDistribution", "init_std": 1.0} + if gaze_head: + head = GazeGaussianDistributionCfg(init_std=1.0, gaze_std=0.1) + distribution = {"class_name": head.class_name, "init_std": 1.0, "gaze_std": head.gaze_std} + actor = MLPModel(obs, model_groups, "actor", 3, hidden_dims=[32], distribution_cfg=distribution) + critic = MLPModel(obs, model_groups, "critic", 1, hidden_dims=[32]) + storage = RolloutStorage("rl", NUM_ENVS, STEPS, obs, [3], "cpu") + settings = dict(num_learning_epochs=4, num_mini_batches=4, learning_rate=3e-3, schedule="fixed", device="cpu") + if stock: + return PPO(actor, critic, storage, **settings), obs + return GazeSupervisedPPO(actor, critic, storage, oracle_loss_coef=oracle_loss_coef, **settings), obs + + +def _train(algorithm: PPO, obs: TensorDict, iterations: int) -> dict[str, float]: + for _ in range(iterations): + for _ in range(STEPS): + with torch.inference_mode(): + algorithm.act(obs) + algorithm.process_env_step(obs, torch.zeros(NUM_ENVS), torch.zeros(NUM_ENVS), {}) + algorithm.compute_returns(obs) + losses = algorithm.update() + return losses + + +def test_update_pulls_the_gaze_toward_the_teacher(): + algorithm, obs = _algorithm() + valid = obs["oracle"][:, 2] > 0.5 + + def distance() -> float: + with torch.no_grad(): + mean = algorithm.actor(obs)[:, -2:] + return float((mean - obs["oracle"][:, :2])[valid].norm(dim=-1).mean()) + + before = distance() + losses = _train(algorithm, obs, 40) + assert losses["oracle_valid"] == pytest.approx(0.75) + assert all(torch.isfinite(p).all() for p in algorithm.actor.parameters()) + assert distance() < 0.7 * before + + +def test_zero_coefficient_update_matches_stock_ppo_without_labels(): + def updated(stock: bool) -> tuple[list[torch.Tensor], list[torch.Tensor], dict[str, float]]: + algorithm, obs = _algorithm(oracle_loss_coef=0.0, with_labels=False, stock=stock) + modules = (algorithm.actor, algorithm.critic) + initial = [p.detach().clone() for module in modules for p in module.parameters()] + torch.manual_seed(1) + losses = _train(algorithm, obs, 1) + return initial, [p.detach().clone() for module in modules for p in module.parameters()], losses + + initial, gaze_params, losses = updated(stock=False) + stock_initial, stock_params, stock_losses = updated(stock=True) + assert losses["oracle"] == 0.0 and losses["oracle_valid"] == 0.0 + for name in ("value", "surrogate", "entropy"): + assert losses[name] == pytest.approx(stock_losses[name], rel=1e-6, abs=1e-7) + for start, stock_start in zip(initial, stock_initial, strict=True): + torch.testing.assert_close(start, stock_start, atol=0, rtol=0) + for param, stock_param in zip(gaze_params, stock_params, strict=True): + torch.testing.assert_close(param, stock_param, atol=0, rtol=0) + assert all(not torch.equal(param, start) for param, start in zip(gaze_params, initial, strict=True)) + + +def test_gaze_head_keeps_the_gaze_noise_fixed_while_ppo_learns_the_rest(): + """The entropy bonus and the surrogate move the other actions' noise, never the gaze's.""" + algorithm, obs = _algorithm(gaze_head=True) + algorithm.entropy_coef = 0.5 + head = algorithm.actor.distribution + assert isinstance(head, GazeGaussianDistribution) + assert head.std_param.shape == (1,) + _train(algorithm, obs, iterations=3) + with torch.no_grad(): + head.update(torch.zeros(1, 3)) + std = head.std[0] + torch.testing.assert_close(std[1:], torch.full((2,), 0.1)) + assert abs(float(std[0]) - 1.0) > 1e-3 + # The gaze noise is part of the saved policy, so a checkpoint restores it. + assert torch.equal(head.state_dict()["gaze_std"], torch.full((2,), 0.1)) + + +def test_gaze_head_fixes_the_last_two_actions_noise_and_rejects_invalid_settings(): + head = GazeGaussianDistribution(5, init_std=2.0, std_type="log", gaze_std=0.05) + assert head.input_dim == 5 + head.update(torch.zeros(3, 5)) + torch.testing.assert_close(head.std, torch.tensor([[2.0, 2.0, 2.0, 0.05, 0.05]]).expand(3, -1)) + for output_dim, gaze_std in ((5, 0.0), (5, float("inf")), (2, 0.1)): + with pytest.raises(ValueError, match="gaze"): + GazeGaussianDistribution(output_dim, gaze_std=gaze_std) diff --git a/source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py b/source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py index d72497bacbcb..b8235943b28f 100644 --- a/source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py +++ b/source/isaaclab_tasks/test/core/test_cartpole_camera_presets.py @@ -21,7 +21,6 @@ CartpoleCameraEnvCfg as CartpoleManagerCameraEnvCfg, ) from isaaclab_tasks.utils.hydra import resolve_presets -from isaaclab_tasks.utils.parse_cfg import load_cfg_from_registry _ENV_CFG_CLASSES = [ pytest.param(CartpoleDirectCameraEnvCfg, id="direct"), @@ -50,24 +49,3 @@ def test_newton_renderer_accepts_supported_data_types(cfg_cls): """The guard must not reject data types the Newton Warp renderer does publish.""" cfg = resolve_presets(cfg_cls(), {"newton_warp", "rgb"}) validate(cfg) # must not raise - - -def test_foveated_cartpole_presets_connect_the_camera_and_stock_ppo(): - """The registered task selects matching image data and runs without teacher-specific inputs or training code.""" - pytest.importorskip("isaaclab_fovi") - pytest.importorskip("fovi") - task = "IsaacContrib-Cartpole-Camera-Fovi" - for data_type in ("rgb", "depth"): - raw_cfg = load_cfg_from_registry(task, "env_cfg_entry_point") - cfg = resolve_presets(raw_cfg, {data_type, "newton_warp"}) - validate(cfg) - image = cfg.observations.policy.image.params - assert image["data_type"] == data_type - assert cfg.scene.tiled_camera.data_types == [data_type] - assert image["sensor_cfg"].name == cfg.actions.gaze.asset_name - assert not hasattr(cfg.observations, "oracle") - - agent = load_cfg_from_registry(task, "rsl_rl_cfg_entry_point") - assert agent.obs_groups == {"actor": ["policy", "gaze"], "critic": ["critic", "gaze"]} - assert agent.algorithm.class_name == "PPO" - assert agent.actor.distribution_cfg.class_name == "GaussianDistribution" From 4530d197407afeaf4127c6cce5602a760cd0284c Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 16:17:54 -0800 Subject: [PATCH 04/14] Consolidate foveated sampling and visibility --- .../sensors/calibrated_geometry.py | 27 +++---------- .../isaaclab_fovi/sensors/foveated_camera.py | 19 +++++++-- .../sensors/foveated_newton_camera.py | 18 ++------- .../sensors/foveated_rtx_camera.py | 19 +++------ .../isaaclab_fovi/sensors/gaze_kernels.py | 5 ++- .../isaaclab_fovi/sensors/pooling.py | 37 +++++++---------- source/isaaclab_fovi/test/test_camera_cfg.py | 13 +++--- source/isaaclab_fovi/test/test_camera_gaze.py | 29 ++++++++------ .../isaaclab_fovi/test/test_newton_buffers.py | 40 +++++-------------- source/isaaclab_fovi/test/test_pooling.py | 17 ++++---- source/isaaclab_fovi/test/test_rtx_camera.py | 17 +++++++- 11 files changed, 102 insertions(+), 139 deletions(-) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py index d499139eec0c..395ce83ff92f 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py @@ -8,13 +8,16 @@ from __future__ import annotations import math -from typing import Protocol +from typing import TYPE_CHECKING import torch from fovi.sensing.projection import CameraCalibration, CameraModel, angular_directions from isaaclab.sim import PinholeCameraCfg +if TYPE_CHECKING: + from .foveated_camera_cfg import FoveatedCameraCfg + IDEAL_IMAGE_WIDTH = 1024 """Pixel width [px] of the image assigned to a camera derived from ideal spawn optics. @@ -79,7 +82,7 @@ def camera_model_from_spawn(spawn: PinholeCameraCfg) -> CameraCalibration: ) -def resolve_camera_model(cfg: SamplingGeometryConfig) -> CameraModel: +def resolve_camera_model(cfg: FoveatedCameraCfg) -> CameraModel: """Return the physical camera the retina looks through. This is ``cfg.camera_model`` when set, otherwise the camera that ``cfg.spawn`` @@ -95,16 +98,6 @@ def resolve_camera_model(cfg: SamplingGeometryConfig) -> CameraModel: return CameraModel(**camera_model_from_spawn(cfg.spawn)) -def sampling_geometry(cfg: SamplingGeometryConfig) -> tuple[float, float]: - """Return the retinal field of view and the CMF constant, both in degrees. - - The field of view is the angular span of the retinal window in the physical - camera. Both values are in the units :class:`fovi.sensing.coords.SamplingCoords` takes. - """ - fov = resolve_camera_model(cfg).field_of_view(cfg.retinal_window_reference_side, cfg.retinal_window_fraction) - return fov, cfg.cmf_a_deg - - def retinal_directions(cartesian: torch.Tensor, fov_deg: float, image_rotation_deg: float = 0.0) -> torch.Tensor: """Return OpenGL-frame angular rays, including the sensor mount roll.""" rays = angular_directions(cartesian, fov_deg) @@ -121,13 +114,3 @@ def compose_rotations(left: torch.Tensor, right: torch.Tensor) -> torch.Tensor: training process enables reduced-precision matrix multiplication. """ return (left[..., :, :, None] * right[..., None, :, :]).sum(dim=-2) - - -class SamplingGeometryConfig(Protocol): - """The configuration fields that place the retina in the physical camera.""" - - camera_model: CameraCalibration | None - cmf_a_deg: float - retinal_window_reference_side: str - retinal_window_fraction: float - spawn: PinholeCameraCfg | None diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py index 28af5b3b8ad7..5f0524baec98 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py @@ -34,6 +34,7 @@ ) from .native_grid import GRID_STYLE, buffer_tensor, native_grid_directions from .pooling import ( + build_retinal_coords, is_segmentation_output, pool_hwc_buffer, pool_segmentation_buffer, @@ -280,11 +281,23 @@ def set_intrinsic_matrices(self, matrices, focal_length=None, env_ids=None): stacklevel=2, ) - def _initialize_gaze(self) -> None: - """Prepare the gaze geometry: the rendered rays in the physical camera's frame and the pose conversions.""" + def _prepare_sampling(self) -> None: + """Resolve physical calibration and retinal coordinates before the renderer sizes its buffers.""" self._camera_model = resolve_camera_model(self.cfg) + self._sampling_coords, self._sampling_coords_highres = build_retinal_coords(self.cfg, self._camera_model, "cpu") + self._ray_coords = self._sampling_coords_highres or self._sampling_coords + self._native_grid = self.cfg.foveated_style == GRID_STYLE + self._num_valid_samples = len(self._sampling_coords) + self._num_ray_samples = len(self._ray_coords) + + def _initialize_sampling(self) -> None: + """Move retinal coordinates to the sensor device and prepare the gaze rays and frame conversions.""" + self._sampling_coords = self._sampling_coords.to(device=self._device) + if self._sampling_coords_highres is not None: + self._sampling_coords_highres = self._sampling_coords_highres.to(device=self._device) + self._ray_coords = self._sampling_coords_highres or self._sampling_coords self._gaze_camera = camera_params(self._camera_model) - coords = self._sampling_coords_highres or self._sampling_coords + coords = self._ray_coords rotation_deg = self.cfg.image_rotation_deg # The rays as rendered, mount roll included, in the ROS frame the camera model projects. if coords.style == GRID_STYLE: diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py index f86bfeb479a9..55d64a3c68a7 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py @@ -19,7 +19,6 @@ from .foveated_camera import OPENGL_TO_ROS_AXES, FoveatedCamera from .native_grid import ( - GRID_STYLE, allocate_grid_outputs, copy_grid_outputs, copy_updated_rows, @@ -28,7 +27,7 @@ mask_grid_samples, proxy_outputs, ) -from .pooling import build_highres_coords, build_lowres_coords, build_pooler +from .pooling import build_pooler if TYPE_CHECKING: from .foveated_camera_cfg import FoveatedCameraCfg @@ -77,11 +76,7 @@ def __init__(self, cfg: FoveatedCameraCfg): def _initialize_impl(self): # The pooler's KNN tensors are plain attributes that nn.Module.to() does not move, so the coordinates start on # the CPU and the pooler is built on the sensor device after the parent initializes. - self._sampling_coords, matched_res = build_lowres_coords(self.cfg, device="cpu") - self._native_grid = self.cfg.foveated_style == GRID_STYLE - self._sampling_coords_highres = build_highres_coords(self.cfg, self._sampling_coords, matched_res) - self._num_valid_samples = len(self._sampling_coords) - self._num_ray_samples = len(self._sampling_coords_highres or self._sampling_coords) + self._prepare_sampling() logger.info( "FoveatedNewtonCamera: %d samples (%d rendered), style=%s, cmf_a=%.4g deg, field of view=%.1f deg", self._num_valid_samples, @@ -92,8 +87,7 @@ def _initialize_impl(self): ) # The parent allocates render buffers for the rendered rays: the high-resolution ones when pooling. - ray_coords = self._sampling_coords_highres or self._sampling_coords - self.cfg.height, self.cfg.width = grid_output_shape(ray_coords) + self.cfg.height, self.cfg.width = grid_output_shape(self._ray_coords) renderer = self.cfg.renderer_cfg if renderer.render_order == "tiled": tile_width = renderer.tile_rendering_width @@ -112,11 +106,7 @@ def _initialize_impl(self): super()._initialize_impl() - self._sampling_coords = self._sampling_coords.to(device=self._device) - if self._sampling_coords_highres is not None: - self._sampling_coords_highres = self._sampling_coords_highres.to(device=self._device) - self._ray_coords = self._sampling_coords_highres or self._sampling_coords - self._initialize_gaze() + self._initialize_sampling() self._pooler, self._pool_k = build_pooler( self.cfg, self._sampling_coords, self._sampling_coords_highres, device=str(self._device) ) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py index 7260df107eed..c3a6efc0dcc4 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py @@ -32,7 +32,6 @@ from .calibrated_geometry import compose_rotations, retinal_directions from .foveated_camera import FoveatedCamera from .native_grid import ( - GRID_STYLE, allocate_grid_outputs, copy_grid_outputs, copy_updated_rows, @@ -40,7 +39,7 @@ mask_grid_samples, proxy_outputs, ) -from .pooling import build_highres_coords, build_lowres_coords, build_pooler +from .pooling import build_pooler if TYPE_CHECKING: from isaaclab.utils.warp import ProxyArray @@ -79,6 +78,7 @@ def __init__(self, cfg: FoveatedCameraCfg): self._pooled_output: dict[str, torch.Tensor] | None = None # The projection sets the texture size on the configuration before the parent allocates for it; the caller's # configuration stays untouched. + # The textures are square, so the parent's inferred vertical aperture agrees with the lens calibration. cfg = clone(cfg) self.cfg = cfg self._prepare_projection() @@ -153,13 +153,8 @@ def process_rendered_frame(self) -> None: def _prepare_projection(self) -> None: # The lens textures and sample extraction use the rendered samples: the high-resolution ones when pooling. - self._sampling_coords, matched_res = build_lowres_coords(self.cfg, device="cpu") - self._sampling_coords_highres = build_highres_coords(self.cfg, self._sampling_coords, matched_res) - ray_coords = self._sampling_coords_highres or self._sampling_coords - self._ray_coords = ray_coords - self._native_grid = self.cfg.foveated_style == GRID_STYLE - self._num_valid_samples = len(self._sampling_coords) - self._num_ray_samples = len(ray_coords) + self._prepare_sampling() + ray_coords = self._ray_coords size = ray_coords.resolution if not self._native_grid: @@ -233,11 +228,7 @@ def _initialize_impl(self) -> None: if not ext_manager.set_extension_enabled_immediate(ext_name, True): logger.warning("Could not enable Kit extension '%s'; the lens lookup may not render.", ext_name) - self._sampling_coords = self._sampling_coords.to(device=self._device) - if self._sampling_coords_highres is not None: - self._sampling_coords_highres = self._sampling_coords_highres.to(device=self._device) - self._ray_coords = self._sampling_coords_highres or self._sampling_coords - self._initialize_gaze() + self._initialize_sampling() _, local_orientation = self._view.get_local_poses() self._base_local_orientation = matrix_from_quat(local_orientation.torch).clone() self._pooler, self._pool_k = build_pooler( diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py index 1f90730b1ec4..63beb9bbe386 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/gaze_kernels.py @@ -282,6 +282,7 @@ def publish_grid_kernel( or, when masking, the physical camera's view. ``source`` and ``target`` hold each sample's channels as raw bytes, so one kernel serves every output type. + When masking, the first output records visibility and the other outputs reuse it on the same stream. """ env, cell = wp.tid() if not updated[env]: @@ -289,9 +290,11 @@ def publish_grid_kernel( sample = indices[cell] keep = footprint[sample] if mask_to_sensor != 0: - seen = sees(rays[sample], rotation[env], frame, camera) if record_visible != 0: + seen = sees(rays[sample], rotation[env], frame, camera) visible[env, sample] = seen + else: + seen = visible[env, sample] keep = keep and seen for k in range(target.shape[2]): if keep: diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py index c7093b517c9b..3735e297f46c 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/pooling.py @@ -15,7 +15,7 @@ visual-field geometry at different densities. Construction happens in two stages to accommodate Isaac's sensor init order: -1. ``build_lowres_coords`` + ``build_highres_coords`` run *before* +1. ``build_retinal_coords`` runs *before* ``super()._initialize_impl()`` (CPU) so the backend can size its render buffers from the highres sample count. 2. ``build_pooler`` runs *after* coords have been moved to the sensor's @@ -32,8 +32,7 @@ from fovi.arch.knn import KNNPoolingLayer from fovi.arch.pooling import GridPoolingLayer, build_retinal_pooler from fovi.sensing.coords import SamplingCoords, auto_match_num_coords - -from .calibrated_geometry import sampling_geometry +from fovi.sensing.projection import CameraModel if TYPE_CHECKING: from .foveated_camera_cfg import FoveatedCameraCfg @@ -44,17 +43,15 @@ _MODAL_CHUNK_ELEMENTS = 2**22 -def build_lowres_coords(cfg: FoveatedCameraCfg, device: str) -> tuple[SamplingCoords, int]: - """Build the lowres (RGC / public output) SamplingCoords. - - Returns ``(lowres_coords, matched_res)`` where ``matched_res`` is the - auto-matched radial resolution also needed for the highres grid. - """ - fov, cmf_a = sampling_geometry(cfg) +def build_retinal_coords( + cfg: FoveatedCameraCfg, camera: CameraModel, device: str +) -> tuple[SamplingCoords, SamplingCoords | None]: + """Build the public retina and, when pooling, the denser retina with the same angular geometry.""" + fov = camera.field_of_view(cfg.retinal_window_reference_side, cfg.retinal_window_fraction) matched_res, _ = auto_match_num_coords( fov, - cmf_a, + cfg.cmf_a_deg, cfg.foveated_res, cfg.foveated_style, 1, @@ -66,7 +63,7 @@ def build_lowres_coords(cfg: FoveatedCameraCfg, device: str) -> tuple[SamplingCo ) lowres = SamplingCoords( fov=fov, - cmf_a=cmf_a, + cmf_a=cfg.cmf_a_deg, res=matched_res, device=device, style=cfg.foveated_style, @@ -75,17 +72,11 @@ def build_lowres_coords(cfg: FoveatedCameraCfg, device: str) -> tuple[SamplingCo radius_norm=cfg.radius_norm, field_geometry="spherical", ) - return lowres, matched_res - - -def build_highres_coords(cfg: FoveatedCameraCfg, lowres: SamplingCoords, matched_res: int) -> SamplingCoords | None: - """Build the highres (photoreceptor) SamplingCoords when pooling is on: the lowres retina's geometry at - ``pool_res_mult`` times its resolution, on the same device.""" - if not cfg.pool_enabled: - return None - # pool_res_mult is a float to support fractional ratios (e.g. sqrt(2) for - # a 2× N_hi/N_lo ratio). SamplingCoords requires an integer radial res. - return lowres.clone(resolution=int(round(cfg.pool_res_mult * matched_res))) + highres = None + if cfg.pool_enabled: + # Fractional ratios (e.g. sqrt(2) for twice as many samples) still need an integer radial resolution. + highres = lowres.clone(resolution=int(round(cfg.pool_res_mult * lowres.resolution))) + return lowres, highres def build_pooler( diff --git a/source/isaaclab_fovi/test/test_camera_cfg.py b/source/isaaclab_fovi/test/test_camera_cfg.py index aa783bcb2330..7827c7bf68e8 100644 --- a/source/isaaclab_fovi/test/test_camera_cfg.py +++ b/source/isaaclab_fovi/test/test_camera_cfg.py @@ -14,7 +14,7 @@ import pytest import torch from isaaclab_fovi.sensors import FoveatedCamera, FoveatedCameraCfg -from isaaclab_fovi.sensors.calibrated_geometry import resolve_camera_model, sampling_geometry +from isaaclab_fovi.sensors.calibrated_geometry import resolve_camera_model from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera from isaaclab_newton.renderers import NewtonWarpRendererCfg @@ -55,18 +55,16 @@ def test_defaults_are_grid_sampling_at_the_human_cmf_estimate() -> None: def test_pinhole_spawn_describes_an_ideal_pinhole_across_its_short_side() -> None: spawn = PinholeCameraCfg() - fov, cmf_a = sampling_geometry(make_cfg(spawn=spawn)) expected = math.degrees(2 * math.atan(spawn.horizontal_aperture / (2 * spawn.focal_length))) - assert fov == pytest.approx(expected, rel=1e-6) - assert cmf_a == 0.591 camera = resolve_camera_model(make_cfg(spawn=spawn)) + assert camera.field_of_view("short") == pytest.approx(expected, rel=1e-6) assert camera.model == "pinhole" assert camera.distortion == () # Without a vertical aperture the image is square; with one, the retina spans the short (vertical) side. assert camera.image_size[0] == camera.image_size[1] spawn = PinholeCameraCfg(focal_length=10.0, horizontal_aperture=20.0, vertical_aperture=10.0) - fov, _ = sampling_geometry(make_cfg(spawn=spawn)) - assert fov == pytest.approx(math.degrees(2 * math.atan(0.5)), rel=1e-6) + camera = resolve_camera_model(make_cfg(spawn=spawn)) + assert camera.field_of_view("short") == pytest.approx(math.degrees(2 * math.atan(0.5)), rel=1e-6) def test_opencv_pinhole_spawn_gives_that_calibrated_camera() -> None: @@ -96,8 +94,7 @@ def test_zero_coefficient_opencv_fisheye_is_an_ideal_equidistant_fisheye() -> No # Equidistant: the angle off the optical axis grows linearly with image radius. for radius in (50.0, 150.0, 310.0): assert ray_angle_deg(camera, (319.5 + radius, 319.5)) == pytest.approx(math.degrees(radius / focal), rel=1e-6) - fov, _ = sampling_geometry(cfg) - assert fov == pytest.approx(math.degrees(640 / focal), rel=1e-6) + assert camera.field_of_view("short") == pytest.approx(math.degrees(640 / focal), rel=1e-6) def test_explicit_camera_model_wins_over_the_spawn() -> None: diff --git a/source/isaaclab_fovi/test/test_camera_gaze.py b/source/isaaclab_fovi/test/test_camera_gaze.py index ae6ac139a472..213bd08463a8 100644 --- a/source/isaaclab_fovi/test/test_camera_gaze.py +++ b/source/isaaclab_fovi/test/test_camera_gaze.py @@ -15,7 +15,7 @@ from fovi.sensing.coords import SamplingCoords from fovi.sensing.projection import CameraModel, angular_directions, gaze_rotation from fovi.sensing.retina import RetinalTransform -from isaaclab_fovi.sensors.calibrated_geometry import retinal_directions, sampling_geometry +from isaaclab_fovi.sensors.calibrated_geometry import retinal_directions from isaaclab_fovi.sensors.foveated_camera import FoveatedCamera from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera from isaaclab_fovi.sensors.gaze_kernels import ( @@ -26,7 +26,7 @@ torch_stream, ) from isaaclab_fovi.sensors.native_grid import GRID_STYLE, grid_sample_indices, native_grid_directions -from isaaclab_fovi.sensors.pooling import build_lowres_coords +from isaaclab_fovi.sensors.pooling import build_retinal_coords from isaaclab.sensors.camera.camera import Camera from isaaclab.sensors.camera.camera_data import CameraData @@ -71,19 +71,20 @@ def camera_config() -> SimpleNamespace: radius_norm=2.0, isotropic_plotting_type="v1like", image_rotation_deg=0.0, + pool_enabled=False, ) def test_rendering_and_software_sampling_share_window_and_nodes() -> None: cfg = camera_config() - fov, a = sampling_geometry(cfg) camera = CameraModel(**cfg.camera_model) - assert fov == pytest.approx(camera.field_of_view("long", 0.75)) - assert a == 2.5 - coords, _ = build_lowres_coords(cfg, "cpu") + fov = camera.field_of_view("long", 0.75) + coords, _ = build_retinal_coords(cfg, camera, "cpu") + assert coords.fov == pytest.approx(fov) + assert coords.cmf_a == 2.5 retina = RetinalTransform( fov=fov, - cmf_a=a, + cmf_a=2.5, resolution=12, device="cpu", field_geometry="spherical", @@ -106,8 +107,7 @@ def __init__(self, count: int = 2, device: str = "cpu", **overrides) -> None: self._view = SimpleNamespace(count=count) self._device = device self._ALL_INDICES = wp.array(list(range(count)), dtype=wp.int32, device=device) - self._sampling_coords, _ = build_lowres_coords(self.cfg, device) - self._sampling_coords_highres = None + self._prepare_sampling() # The camera's own pose buffers, at the identity orientation, with their world-to-ROS conversion. self._data = CameraData() self._data.create_buffers(count, device) @@ -115,7 +115,7 @@ def __init__(self, count: int = 2, device: str = "cpu", **overrides) -> None: # Isaac RTX's behaviour; Newton and OVRTX turn the pose by the gaze in their pose update. self._gaze_pose_reads_angles = False self._gaze_written = False - self._initialize_gaze() + self._initialize_sampling() @property def orientation(self) -> torch.Tensor: @@ -562,7 +562,10 @@ def test_publish_kernel_matches_masking_then_copying_to_the_grid() -> None: indices = grid_sample_indices(coords).to(torch.int32).contiguous() visible = torch.zeros(6, count, dtype=torch.bool, device=KERNEL_DEVICE) identity = wp.mat33f(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0) - for name, value in outputs.items(): + # Only the first output receives the real gaze. Reprojecting depth instead of reusing the first launch's + # visibility would point the depth rays the wrong way and hide visible samples. + _, looking_away = set_gaze(torch.tensor([[0.0, 180.0]], device=KERNEL_DEVICE).repeat(6, 1)) + for index, (name, value) in enumerate(outputs.items()): previous = torch.full_like(expected_grid[name], 7) target = previous.clone() with torch_stream(KERNEL_DEVICE): @@ -575,11 +578,11 @@ def test_publish_kernel_matches_masking_then_copying_to_the_grid() -> None: wp.from_torch(coords.valid_mask.contiguous()), wp.from_torch(updated), wp.from_torch(rays, dtype=wp.vec3f), - wp.from_torch(rotation, dtype=wp.mat33f), + wp.from_torch(rotation if index == 0 else looking_away, dtype=wp.mat33f), identity, camera_params(camera), 1, - int(name == "rgba"), + int(index == 0), wp.from_torch(visible), ], outputs=[wp.from_torch(target.view(6, count, -1).view(torch.uint8))], diff --git a/source/isaaclab_fovi/test/test_newton_buffers.py b/source/isaaclab_fovi/test/test_newton_buffers.py index b04505672812..ec3aa5f7bc5a 100644 --- a/source/isaaclab_fovi/test/test_newton_buffers.py +++ b/source/isaaclab_fovi/test/test_newton_buffers.py @@ -15,7 +15,6 @@ from fovi.sensing.projection import CameraModel from isaaclab_fovi.sensors import foveated_camera as base_camera from isaaclab_fovi.sensors import foveated_newton_camera as newton_camera -from isaaclab_fovi.sensors.calibrated_geometry import retinal_directions from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera, explicit_rays from isaaclab_fovi.sensors.native_grid import native_grid_directions @@ -24,16 +23,6 @@ pytestmark = pytest.mark.kitless -def rendered_rays_only(camera) -> None: - """Stand-in for the gaze geometry: only the rendered rays, in the ROS frame the camera keeps them in.""" - coords = camera._ray_coords - if coords.style == "warped_cartesian_as_grid": - rays = native_grid_directions(coords, image_rotation_deg=0) - else: - rays = retinal_directions(coords.cartesian, coords.fov, 0) - camera._gaze_rays = (rays * rays.new_tensor((1.0, -1.0, -1.0))).float() - - def new_camera() -> FoveatedNewtonCamera: """A Newton camera without its constructor: the state its constructor sets and the handles its destructor reads.""" camera = object.__new__(FoveatedNewtonCamera) @@ -54,10 +43,8 @@ def test_native_grid_render_layout_preserves_rays_and_upright_outputs(monkeypatc highres = coords.clone(resolution=32) if pooled else None ray_coords = highres if pooled else coords pooler = torch.nn.AdaptiveAvgPool1d(len(coords)) if pooled else None - monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 16)) - monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: highres) + monkeypatch.setattr(base_camera, "build_retinal_coords", lambda *args, **kwargs: (coords, highres)) monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (pooler, 4)) - monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) def initialize_renderer(camera): # Newton launches image tiles; a vector-shaped width of one is not valid. @@ -85,6 +72,7 @@ def render(camera, env_mask): monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) camera = new_camera() camera.cfg = SimpleNamespace( + camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), foveated_style="warped_cartesian_as_grid", mask_to_sensor_fov=False, cmf_a_deg=0.591, @@ -129,10 +117,8 @@ def render(camera, env_mask): def test_sample_set_publication_keeps_environments_that_were_not_updated(monkeypatch) -> None: """A sample-set camera publishes its own buffers: Newton redraws every row, but only updated rows change.""" coords = SamplingCoords(60.0, 0.591, 8, style="isotropic", field_geometry="spherical", device="cpu") - monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 8)) - monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: None) + monkeypatch.setattr(base_camera, "build_retinal_coords", lambda *args, **kwargs: (coords, None)) monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (None, None)) - monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) def initialize_renderer(camera): depth = torch.zeros((2, camera.cfg.height, camera.cfg.width, 1)) @@ -147,6 +133,7 @@ def render(camera, env_mask): monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) camera = new_camera() camera.cfg = SimpleNamespace( + camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), foveated_style="isotropic", mask_to_sensor_fov=False, pool_enabled=False, @@ -171,10 +158,8 @@ def render(camera, env_mask): def test_sample_set_sensor_mask_follows_the_published_frame(monkeypatch) -> None: """An environment that was not updated keeps its published samples and the sensor visibility that masked them.""" coords = SamplingCoords(60.0, 0.591, 8, style="isotropic", field_geometry="spherical", device="cpu") - monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 8)) - monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: None) + monkeypatch.setattr(base_camera, "build_retinal_coords", lambda *args, **kwargs: (coords, None)) monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (None, None)) - monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) def initialize_renderer(camera): camera.renderer_depth = torch.ones((2, camera.cfg.height, camera.cfg.width, 1)) @@ -185,10 +170,9 @@ def initialize_renderer(camera): monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", lambda camera, env_mask: None) camera = new_camera() camera.cfg = SimpleNamespace( + camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), foveated_style="isotropic", mask_to_sensor_fov=True, - camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), - spawn=None, pool_enabled=False, image_rotation_deg=0, update_period=0.0, @@ -196,8 +180,6 @@ def initialize_renderer(camera): renderer_cfg=SimpleNamespace(render_order="tiled", tile_rendering_width=8, tile_rendering_height=8), ) camera._initialize_impl() - # The real gaze geometry, on stand-in pose buffers. - base_camera.FoveatedCamera._initialize_gaze(camera) camera._view = SimpleNamespace(count=2, close=lambda: None) camera._data.quat_w_ros = ProxyArray(wp.from_torch(torch.tensor([[0.0, 0.0, 0.0, 1.0]] * 2), dtype=wp.quatf)) @@ -222,10 +204,8 @@ def test_pooled_segmentation_publishes_modal_labels_at_full_precision(monkeypatc neighbors = torch.stack([4 * runs + j for j in range(4)]) average = torch.nn.AdaptiveAvgPool1d(len(coords)) - monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 16)) - monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: highres) + monkeypatch.setattr(base_camera, "build_retinal_coords", lambda *args, **kwargs: (coords, highres)) monkeypatch.setattr(newton_camera, "build_pooler", lambda *args, **kwargs: (average, 4)) - monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) # The camera reads the modal neighbourhoods from its standard pooler. monkeypatch.setattr(base_camera, "segmentation_neighbor_indices", lambda pooler: neighbors) @@ -255,6 +235,7 @@ def render(camera, env_mask): monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) camera = new_camera() camera.cfg = SimpleNamespace( + camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), foveated_style="warped_cartesian_as_grid", mask_to_sensor_fov=False, update_period=0.0, @@ -314,12 +295,10 @@ def test_pooled_rgb_is_the_view_of_pooled_rgba(monkeypatch) -> None: style = "isotropic" coords = SamplingCoords(60.0, 0.591, 16, style=style, field_geometry="spherical", device="cpu") highres = coords.clone(resolution=32) - monkeypatch.setattr(newton_camera, "build_lowres_coords", lambda *args, **kwargs: (coords, 16)) - monkeypatch.setattr(newton_camera, "build_highres_coords", lambda *args, **kwargs: highres) + monkeypatch.setattr(base_camera, "build_retinal_coords", lambda *args, **kwargs: (coords, highres)) monkeypatch.setattr( newton_camera, "build_pooler", lambda *args, **kwargs: (torch.nn.AdaptiveAvgPool1d(len(coords)), 4) ) - monkeypatch.setattr(FoveatedNewtonCamera, "_initialize_gaze", rendered_rays_only) def initialize_renderer(camera): camera.renderer_rgba = torch.zeros((2, camera.cfg.height, camera.cfg.width, 4), dtype=torch.uint8) @@ -337,6 +316,7 @@ def render(camera, env_mask): monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) camera = new_camera() camera.cfg = SimpleNamespace( + camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), foveated_style=style, mask_to_sensor_fov=False, update_period=0.0, diff --git a/source/isaaclab_fovi/test/test_pooling.py b/source/isaaclab_fovi/test/test_pooling.py index d8cda0eb5880..8db3b69c12b4 100644 --- a/source/isaaclab_fovi/test/test_pooling.py +++ b/source/isaaclab_fovi/test/test_pooling.py @@ -11,10 +11,10 @@ import pytest import torch from isaaclab_fovi.sensors import FoveatedCameraCfg, pooling +from isaaclab_fovi.sensors.calibrated_geometry import resolve_camera_model from isaaclab_fovi.sensors.pooling import ( - build_highres_coords, - build_lowres_coords, build_pooler, + build_retinal_coords, pool_hwc_buffer, pool_segmentation_buffer, segmentation_neighbor_indices, @@ -50,8 +50,7 @@ def pooling_cfg(**overrides) -> FoveatedCameraCfg: def test_camera_pools_its_buffers_by_its_config() -> None: cfg = pooling_cfg(pool_mode="max") - lowres, matched = build_lowres_coords(cfg, "cpu") - highres = build_highres_coords(cfg, lowres, matched) + lowres, highres = build_retinal_coords(cfg, resolve_camera_model(cfg), "cpu") # The photoreceptor grid shares the retina's geometry at a higher resolution, and the pooler takes the config. assert len(highres) > len(lowres) and highres.cmf_a == lowres.cmf_a and highres.fov == lowres.fov pooler, neighbors = build_pooler(cfg, lowres, highres, "cpu") @@ -64,8 +63,8 @@ def test_camera_pools_its_buffers_by_its_config() -> None: torch.testing.assert_close(actual, constants[:, None, None, :].expand(2, len(lowres), 1, 3)) # Without pooling there is no photoreceptor grid. cfg = pooling_cfg(pool_enabled=False) - lowres, matched = build_lowres_coords(cfg, "cpu") - assert build_highres_coords(cfg, lowres, matched) is None + _, highres = build_retinal_coords(cfg, resolve_camera_model(cfg), "cpu") + assert highres is None # Three output samples over five input samples; 5 marks an excluded neighbour. Columns are outputs, rows are @@ -124,8 +123,7 @@ def reference_modal_pool(table: torch.Tensor, values: torch.Tensor) -> torch.Ten def test_modal_pooling_uses_the_poolers_neighbourhoods(monkeypatch, style: str, pool_k: int, sample_cortex) -> None: """Segmentation pools over the same neighbourhoods as the camera's other outputs: grid windows or KNN.""" cfg = pooling_cfg(foveated_style=style, pool_k=pool_k, pool_sample_cortex=sample_cortex, pool_mode="max") - lowres, matched = build_lowres_coords(cfg, "cpu") - highres = build_highres_coords(cfg, lowres, matched) + lowres, highres = build_retinal_coords(cfg, resolve_camera_model(cfg), "cpu") pooler, k = build_pooler(cfg, lowres, highres, "cpu") table = segmentation_neighbor_indices(pooler) assert table.shape == (k, len(lowres)) @@ -144,8 +142,7 @@ def test_modal_pooling_uses_the_poolers_neighbourhoods(monkeypatch, style: str, @pytest.mark.parametrize(("style", "pool_k", "mode"), [("warped_cartesian_as_grid", 9, "avg"), ("isotropic", 6, "max")]) def test_pooling_leaves_out_photoreceptors_the_camera_does_not_see(style: str, pool_k: int, mode: str) -> None: cfg = pooling_cfg(foveated_style=style, pool_mode=mode, pool_k=pool_k) - lowres, matched = build_lowres_coords(cfg, DEVICE) - highres = build_highres_coords(cfg, lowres, matched) + lowres, highres = build_retinal_coords(cfg, resolve_camera_model(cfg), DEVICE) pooler, _ = build_pooler(cfg, lowres, highres, DEVICE) # The camera's image edge cuts the retina at x = 0.3 in the first environment; the second sees everything. visible = torch.stack([highres.cartesian[:, 0] < 0.3, torch.ones(len(highres), dtype=torch.bool, device=DEVICE)]) diff --git a/source/isaaclab_fovi/test/test_rtx_camera.py b/source/isaaclab_fovi/test/test_rtx_camera.py index 23fbbfd36593..adb3258ea669 100644 --- a/source/isaaclab_fovi/test/test_rtx_camera.py +++ b/source/isaaclab_fovi/test/test_rtx_camera.py @@ -13,6 +13,7 @@ import pytest import torch import warp as wp +from fovi.sensing.projection import CameraModel from isaaclab_fovi.sensors import foveated_rtx_camera, lens_lut from isaaclab_fovi.sensors.foveated_camera_cfg import FoveatedCameraCfg from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera @@ -100,6 +101,16 @@ def test_construction_authors_the_lens_and_unlocks_cameras_without_changing_the_ def construct(self, cfg): self.cfg = cfg self.stage = stage + self._device = "cpu" + # The stock camera infers the vertical aperture using the allocated texture dimensions. + self.cfg.spawn.vertical_aperture = cfg.spawn.horizontal_aperture * cfg.height / cfg.width + + field_of_view = CameraModel.field_of_view + sampling_models = [] + + def measure_window(model, *args): + sampling_models.append(model) + return field_of_view(model, *args) build_directions = lens_lut.native_grid_directions ray_builds = [] @@ -111,6 +122,7 @@ def measure_directions(*args, **kwargs): texture_paths = ("/textures/enter.exr", "/textures/exit.exr") monkeypatch.setattr(Camera, "__init__", construct) + monkeypatch.setattr(CameraModel, "field_of_view", measure_window) # Count at both import locations so evaluating a second ray grid in the camera fails this check. monkeypatch.setattr(lens_lut, "native_grid_directions", measure_directions) monkeypatch.setattr(foveated_rtx_camera, "native_grid_directions", measure_directions, raising=False) @@ -131,7 +143,10 @@ def measure_directions(*args, **kwargs): assert prim.GetAttribute("omni:lensdistortion:lut:rayEnterDirectionTexture").Get().path == "/textures/enter.exr" assert camera.cfg is not cfg and (camera.cfg.height, camera.cfg.width) == (16, 16) assert len(ray_builds) == 1 - assert cfg.spawn.lock_camera and (cfg.height, cfg.width) == (1, 1) + camera._initialize_sampling() + assert len(sampling_models) == 1 and camera.camera_model is sampling_models[0] + assert camera.camera_model.image_size == (1024, 1024) + assert cfg.spawn.lock_camera and cfg.spawn.vertical_aperture is None and (cfg.height, cfg.width) == (1, 1) def test_lens_lut_survives_usd_export_without_schema_registration() -> None: From edfc948a6cc65d8f0a95c507350c1e9dafe5df79 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 16:17:54 -0800 Subject: [PATCH 05/14] Reuse stock Cartpole camera observations for active gaze --- .../fovi-cartpole-observations.skip | 0 .../cartpole_camera_fovi_env_cfg.py | 37 ++++++------------- 2 files changed, 12 insertions(+), 25 deletions(-) create mode 100644 source/isaaclab_tasks/changelog.d/fovi-cartpole-observations.skip diff --git a/source/isaaclab_tasks/changelog.d/fovi-cartpole-observations.skip b/source/isaaclab_tasks/changelog.d/fovi-cartpole-observations.skip new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py index da42ff2226c3..75406bd76a00 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py @@ -12,14 +12,16 @@ from isaaclab_fovi import mdp -from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg, SceneEntityCfg +from isaaclab.managers import ObservationGroupCfg, SceneEntityCfg from isaaclab.utils import configclass -from isaaclab_tasks.core.cartpole import mdp as cartpole_mdp from isaaclab_tasks.core.cartpole.cartpole_common import CartpoleTiledCameraCfg -from isaaclab_tasks.core.cartpole.cartpole_manager_camera_env_cfg import CartpoleCameraEnvCfg, CartpoleCameraSceneCfg +from isaaclab_tasks.core.cartpole.cartpole_manager_camera_env_cfg import ( + CartpoleCameraEnvCfg, + CartpoleCameraSceneCfg, + image_observations_cfg, +) from isaaclab_tasks.core.cartpole.cartpole_manager_env_cfg import ActionsCfg as CartpoleActionsCfg -from isaaclab_tasks.core.cartpole.cartpole_manager_env_cfg import ObservationsCfg as CartpoleObservationsCfg from isaaclab_tasks.utils import PresetCfg from .active_gaze_cfg import GazeObservationsCfg, foveated_presets, oracle_observations, select_presets @@ -31,29 +33,14 @@ """Retina samples across; the stock camera is 96 pixels across.""" -def observations(data_type: str, image_term) -> object: +def observations(data_type: str) -> object: """The stock camera observations of ``data_type``, the gaze, and the teacher's labels.""" + camera = image_observations_cfg(data_type) @configclass class ObservationsCfg: - @configclass - class PolicyCfg(ObservationGroupCfg): - image = ObservationTermCfg( - func=image_term, - params={ - "sensor_cfg": SceneEntityCfg("tiled_camera"), - "data_type": data_type, - "channel_first": True, - "frame_stack": 2, - }, - ) - - def __post_init__(self): - self.enable_corruption = False - self.concatenate_terms = True - - policy: ObservationGroupCfg = PolicyCfg() - critic: ObservationGroupCfg = CartpoleObservationsCfg.PolicyCfg() + policy: ObservationGroupCfg = camera.policy + critic: ObservationGroupCfg = camera.critic gaze: ObservationGroupCfg = GazeObservationsCfg() oracle: ObservationGroupCfg = oracle_observations(SceneEntityCfg("robot", body_names="pole"), POLE_TIP) @@ -80,6 +67,6 @@ class BaseCfg(CartpoleCameraEnvCfg.BaseCartpoleCameraEnvCfg): scene: SceneCfg = SceneCfg(num_envs=512, env_spacing=20.0) actions: ActionsCfg = ActionsCfg() - rgb = BaseCfg(observations=observations("rgb", cartpole_mdp.image_rgb)) - depth = BaseCfg(observations=observations("depth", cartpole_mdp.image_depth)) + rgb = BaseCfg(observations=observations("rgb")) + depth = BaseCfg(observations=observations("depth")) default = rgb From b795348191ccc7565adf222d2c879df5259d77b8 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 16:25:45 -0800 Subject: [PATCH 06/14] Simplify foveated camera and gaze config validation --- .../isaaclab_fovi/mdp/gaze_cfg.py | 11 +++----- .../sensors/foveated_camera_cfg.py | 26 +++++++------------ source/isaaclab_fovi/test/test_active_gaze.py | 8 +++++- 3 files changed, 19 insertions(+), 26 deletions(-) diff --git a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py index 0318605a11fc..1d8b75373902 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py +++ b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze_cfg.py @@ -36,13 +36,8 @@ class GazeActionCfg(ActionTermCfg): def validate_config(self): """Reject gaze bounds that would divide by zero and unknown mounts.""" - if not _positive_finite(self.step_size): - raise ValueError(f"GazeActionCfg.step_size must be positive and finite, got {self.step_size!r}.") - if not _positive_finite(self.gaze_limit): - raise ValueError(f"GazeActionCfg.gaze_limit must be positive and finite, got {self.gaze_limit!r}.") + for name, value in (("step_size", self.step_size), ("gaze_limit", self.gaze_limit)): + if not (isinstance(value, (int, float)) and math.isfinite(value) and value > 0): + raise ValueError(f"GazeActionCfg.{name} must be positive and finite, got {value!r}.") if self.mount not in ("fixed", "tracked"): raise ValueError(f"GazeActionCfg.mount must be 'fixed' or 'tracked', got {self.mount!r}.") - - -def _positive_finite(value) -> bool: - return isinstance(value, (int, float)) and math.isfinite(value) and value > 0 diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py index c4039eabcee6..9f1db703ac50 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py @@ -23,19 +23,6 @@ POOL_MODES = ("avg", "gaussian", "max", "sum") """fovi pooling modes for the outputs other than segmentation.""" -SEGMENTATION_POOL_MODES = ("modal",) -"""Pooling modes for segmentation outputs: the modal label only.""" - - -def validate_radius_norm(radius_norm: float, style: str, fov_type: str) -> None: - """Reject warped-grid radius norms that fovi cannot sample, before renderer startup.""" - if radius_norm not in RADIUS_NORMS: - raise ValueError(f"radius_norm must be one of {RADIUS_NORMS}, got {radius_norm!r}.") - if radius_norm != 2.0 and style not in WARPED_CARTESIAN_STYLES: - raise ValueError("Non-default radius_norm requires a warped_cartesian style.") - if radius_norm == math.inf and fov_type == "wang": - raise ValueError("radius_norm=inf does not support fov_type='wang'.") - @configclass class FoveatedCameraCfg(CameraCfg): @@ -118,15 +105,20 @@ class FoveatedCameraCfg(CameraCfg): """Update the camera pose every frame. Newton and OVRTX require it: their pose update applies the gaze.""" def __post_init__(self): - # Resolves the default renderer and forwards deprecated renderer fields. super().__post_init__() - validate_radius_norm(self.radius_norm, self.foveated_style, self.fov_type) + # Reject incompatible geometry before the renderer creates the retina. + if self.radius_norm not in RADIUS_NORMS: + raise ValueError(f"radius_norm must be one of {RADIUS_NORMS}, got {self.radius_norm!r}.") + if self.radius_norm != 2.0 and self.foveated_style not in WARPED_CARTESIAN_STYLES: + raise ValueError("Non-default radius_norm requires a warped_cartesian style.") + if self.radius_norm == math.inf and self.fov_type == "wang": + raise ValueError("radius_norm=inf does not support fov_type='wang'.") if self.pool_mode not in POOL_MODES: raise ValueError( f"pool_mode must be one of {POOL_MODES}, got {self.pool_mode!r}; segmentation pools with pool_int_mode." ) - if self.pool_int_mode not in SEGMENTATION_POOL_MODES: + if self.pool_int_mode not in ("modal",): raise ValueError( - f"pool_int_mode must be one of {SEGMENTATION_POOL_MODES}, got {self.pool_int_mode!r}: segmentation" + f"pool_int_mode must be one of ('modal',), got {self.pool_int_mode!r}: segmentation" " pools by modal label, since other modes would mix labels into ones no object has." ) diff --git a/source/isaaclab_fovi/test/test_active_gaze.py b/source/isaaclab_fovi/test/test_active_gaze.py index 001403d620f1..3077bf89c68a 100644 --- a/source/isaaclab_fovi/test/test_active_gaze.py +++ b/source/isaaclab_fovi/test/test_active_gaze.py @@ -203,7 +203,13 @@ def test_teacher_gaze_fixates_the_target_through_a_rolled_mount(): def test_gaze_config_rejects_bounds_that_divide_by_zero_and_unknown_mounts(): GazeActionCfg(asset_name="camera").validate_config() GazeActionCfg(asset_name="camera", mount="tracked").validate_config() - for field, value in (("step_size", 0.0), ("step_size", float("nan")), ("gaze_limit", math.inf), ("mount", "head")): + for field, value in ( + ("step_size", 0.0), + ("step_size", float("nan")), + ("gaze_limit", math.inf), + ("gaze_limit", "1.0"), + ("mount", "head"), + ): cfg = GazeActionCfg(asset_name="camera") setattr(cfg, field, value) with pytest.raises(ValueError, match=field): From f8804bfa18f81ffe808a115d94e1cbb4059dd979 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 17:17:59 -0800 Subject: [PATCH 07/14] Inline physical camera calibration selection --- .../sensors/calibrated_geometry.py | 22 +-------------- .../isaaclab_fovi/sensors/foveated_camera.py | 9 +++++-- source/isaaclab_fovi/test/test_camera_cfg.py | 27 ++++++++++--------- source/isaaclab_fovi/test/test_pooling.py | 18 ++++++------- 4 files changed, 31 insertions(+), 45 deletions(-) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py index 395ce83ff92f..8dfa0d0ddc3b 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/calibrated_geometry.py @@ -8,16 +8,12 @@ from __future__ import annotations import math -from typing import TYPE_CHECKING import torch -from fovi.sensing.projection import CameraCalibration, CameraModel, angular_directions +from fovi.sensing.projection import CameraCalibration, angular_directions from isaaclab.sim import PinholeCameraCfg -if TYPE_CHECKING: - from .foveated_camera_cfg import FoveatedCameraCfg - IDEAL_IMAGE_WIDTH = 1024 """Pixel width [px] of the image assigned to a camera derived from ideal spawn optics. @@ -82,22 +78,6 @@ def camera_model_from_spawn(spawn: PinholeCameraCfg) -> CameraCalibration: ) -def resolve_camera_model(cfg: FoveatedCameraCfg) -> CameraModel: - """Return the physical camera the retina looks through. - - This is ``cfg.camera_model`` when set, otherwise the camera that ``cfg.spawn`` - creates (see :func:`camera_model_from_spawn`). - - Raises: - ValueError: Neither ``cfg.camera_model`` nor ``cfg.spawn`` describes the camera. - """ - if cfg.camera_model is not None: - return CameraModel(**cfg.camera_model) - if cfg.spawn is None: - raise ValueError("A foveated camera on an existing prim needs camera_model.") - return CameraModel(**camera_model_from_spawn(cfg.spawn)) - - def retinal_directions(cartesian: torch.Tensor, fov_deg: float, image_rotation_deg: float = 0.0) -> torch.Tensor: """Return OpenGL-frame angular rays, including the sensor mount roll.""" rays = angular_directions(cartesian, fov_deg) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py index 5f0524baec98..813560db7352 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py @@ -20,7 +20,7 @@ from isaaclab.utils.math import convert_camera_frame_orientation_convention, quat_error_magnitude from isaaclab.utils.warp import ProxyArray -from .calibrated_geometry import resolve_camera_model, retinal_directions +from .calibrated_geometry import camera_model_from_spawn, retinal_directions from .gaze_kernels import ( CameraParams, apply_gaze_indexed_kernel, @@ -283,7 +283,12 @@ def set_intrinsic_matrices(self, matrices, focal_length=None, env_ids=None): def _prepare_sampling(self) -> None: """Resolve physical calibration and retinal coordinates before the renderer sizes its buffers.""" - self._camera_model = resolve_camera_model(self.cfg) + calibration = self.cfg.camera_model + if calibration is None: + if self.cfg.spawn is None: + raise ValueError("A foveated camera on an existing prim needs camera_model.") + calibration = camera_model_from_spawn(self.cfg.spawn) + self._camera_model = CameraModel(**calibration) self._sampling_coords, self._sampling_coords_highres = build_retinal_coords(self.cfg, self._camera_model, "cpu") self._ray_coords = self._sampling_coords_highres or self._sampling_coords self._native_grid = self.cfg.foveated_style == GRID_STYLE diff --git a/source/isaaclab_fovi/test/test_camera_cfg.py b/source/isaaclab_fovi/test/test_camera_cfg.py index 7827c7bf68e8..16b4ea76297a 100644 --- a/source/isaaclab_fovi/test/test_camera_cfg.py +++ b/source/isaaclab_fovi/test/test_camera_cfg.py @@ -10,11 +10,13 @@ import subprocess import sys from dataclasses import dataclass +from types import SimpleNamespace import pytest import torch +from fovi.sensing.projection import CameraModel from isaaclab_fovi.sensors import FoveatedCamera, FoveatedCameraCfg -from isaaclab_fovi.sensors.calibrated_geometry import resolve_camera_model +from isaaclab_fovi.sensors.calibrated_geometry import camera_model_from_spawn from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera from isaaclab_newton.renderers import NewtonWarpRendererCfg @@ -56,14 +58,14 @@ def test_defaults_are_grid_sampling_at_the_human_cmf_estimate() -> None: def test_pinhole_spawn_describes_an_ideal_pinhole_across_its_short_side() -> None: spawn = PinholeCameraCfg() expected = math.degrees(2 * math.atan(spawn.horizontal_aperture / (2 * spawn.focal_length))) - camera = resolve_camera_model(make_cfg(spawn=spawn)) + camera = CameraModel(**camera_model_from_spawn(spawn)) assert camera.field_of_view("short") == pytest.approx(expected, rel=1e-6) assert camera.model == "pinhole" assert camera.distortion == () # Without a vertical aperture the image is square; with one, the retina spans the short (vertical) side. assert camera.image_size[0] == camera.image_size[1] spawn = PinholeCameraCfg(focal_length=10.0, horizontal_aperture=20.0, vertical_aperture=10.0) - camera = resolve_camera_model(make_cfg(spawn=spawn)) + camera = CameraModel(**camera_model_from_spawn(spawn)) assert camera.field_of_view("short") == pytest.approx(math.degrees(2 * math.atan(0.5)), rel=1e-6) @@ -71,7 +73,7 @@ def test_opencv_pinhole_spawn_gives_that_calibrated_camera() -> None: distortion = OpenCvPinholeDistortionCfg( fx=500.0, fy=510.0, cx=320.0, cy=240.0, image_size=(640, 480), k1=-0.1, k2=0.01, p1=0.001, k4=0.002 ) - camera = resolve_camera_model(make_cfg(spawn=PinholeCameraCfg(distortion=distortion))) + camera = CameraModel(**camera_model_from_spawn(PinholeCameraCfg(distortion=distortion))) assert camera.model == "pinhole" # Isaac Lab sizes are (width, height); fovi's are (height, width). assert camera.image_size == (480, 640) @@ -79,15 +81,14 @@ def test_opencv_pinhole_spawn_gives_that_calibrated_camera() -> None: assert camera.distortion == (-0.1, 0.01, 0.001, 0.0, 0.0, 0.002, 0.0, 0.0) distortion.apply_lens_distortion = False - assert resolve_camera_model(make_cfg(spawn=PinholeCameraCfg(distortion=distortion))).distortion == () + assert CameraModel(**camera_model_from_spawn(PinholeCameraCfg(distortion=distortion))).distortion == () def test_zero_coefficient_opencv_fisheye_is_an_ideal_equidistant_fisheye() -> None: # The image edge is 320 / 250 rad (73 deg) off axis, inside the default 180 deg lens. focal = 250.0 distortion = OpenCvFisheyeDistortionCfg(fx=focal, fy=focal, cx=319.5, cy=319.5, image_size=(640, 640)) - cfg = make_cfg(spawn=PinholeCameraCfg(distortion=distortion)) - camera = resolve_camera_model(cfg) + camera = CameraModel(**camera_model_from_spawn(PinholeCameraCfg(distortion=distortion))) assert camera.model == "fisheye" assert camera.distortion == () assert camera.max_angle_deg == pytest.approx(90.0) @@ -98,23 +99,23 @@ def test_zero_coefficient_opencv_fisheye_is_an_ideal_equidistant_fisheye() -> No def test_explicit_camera_model_wins_over_the_spawn() -> None: - cfg = make_cfg(spawn=PinholeCameraCfg(), camera_model=CAMERA_MODEL) - assert resolve_camera_model(cfg).intrinsics == CAMERA_MODEL["intrinsics"] - # A prim without spawn configuration needs a camera model. - assert resolve_camera_model(make_cfg(spawn=None, camera_model=CAMERA_MODEL)).image_size == (480, 640) + for spawn in (PinholeCameraCfg(), None): + camera = SimpleNamespace(cfg=make_cfg(spawn=spawn, camera_model=CAMERA_MODEL, foveated_res=8)) + FoveatedCamera._prepare_sampling(camera) + assert camera._camera_model == CameraModel(**CAMERA_MODEL) def test_cameras_fovi_cannot_model_are_rejected() -> None: thin_prism = OpenCvPinholeDistortionCfg(fx=1.0, fy=1.0, cx=1.0, cy=1.0, image_size=(4, 4), s1=0.1) for spawn, message in ( - (None, "camera_model"), + (None, "existing prim needs camera_model"), (CuboidCfg(size=(1.0, 1.0, 1.0)), "does not spawn a camera"), (FisheyeCameraCfg(), "OpenCvFisheyeDistortionCfg"), (PinholeCameraCfg(horizontal_aperture_offset=1.0), "Aperture offsets"), (PinholeCameraCfg(distortion=thin_prism), "Thin-prism"), ): with pytest.raises(ValueError, match=message): - resolve_camera_model(make_cfg(spawn=spawn)) + FoveatedCamera._prepare_sampling(SimpleNamespace(cfg=make_cfg(spawn=spawn))) def test_config_validates_pooling_and_shell_settings() -> None: diff --git a/source/isaaclab_fovi/test/test_pooling.py b/source/isaaclab_fovi/test/test_pooling.py index 8db3b69c12b4..f591dc130682 100644 --- a/source/isaaclab_fovi/test/test_pooling.py +++ b/source/isaaclab_fovi/test/test_pooling.py @@ -10,8 +10,8 @@ import pytest import torch +from fovi.sensing.projection import CameraModel from isaaclab_fovi.sensors import FoveatedCameraCfg, pooling -from isaaclab_fovi.sensors.calibrated_geometry import resolve_camera_model from isaaclab_fovi.sensors.pooling import ( build_pooler, build_retinal_coords, @@ -20,7 +20,6 @@ segmentation_neighbor_indices, ) -from isaaclab.sim import PinholeCameraCfg from isaaclab.test.utils import DeviceScope, test_devices pytestmark = pytest.mark.kitless @@ -28,16 +27,17 @@ DEVICE = next(iter(test_devices(DeviceScope.DEFAULT_CUDA)), "cpu") """The modal pooling runs the same tensor operations on every device; the default GPU is what simulations use.""" +CAMERA_MODEL = CameraModel("pinhole", (1024, 1024), (512.0, 512.0, 511.5, 511.5)) + def pooling_cfg(**overrides) -> FoveatedCameraCfg: """A pooled foveated camera configuration for the pooling helpers, with ``overrides`` applied. - A 90 degree pinhole window (focal length 1, aperture 2) with a CMF constant of a tenth of it, and a small isotropic - retina pooled from three visual-field neighbours. + A CMF constant of a tenth of the 90 degree pinhole window, and a small isotropic retina pooled from three + visual-field neighbours. """ values = dict( prim_path="/World/Camera", - spawn=PinholeCameraCfg(focal_length=1.0, horizontal_aperture=2.0), cmf_a_deg=9.0, foveated_res=8, foveated_style="isotropic", @@ -50,7 +50,7 @@ def pooling_cfg(**overrides) -> FoveatedCameraCfg: def test_camera_pools_its_buffers_by_its_config() -> None: cfg = pooling_cfg(pool_mode="max") - lowres, highres = build_retinal_coords(cfg, resolve_camera_model(cfg), "cpu") + lowres, highres = build_retinal_coords(cfg, CAMERA_MODEL, "cpu") # The photoreceptor grid shares the retina's geometry at a higher resolution, and the pooler takes the config. assert len(highres) > len(lowres) and highres.cmf_a == lowres.cmf_a and highres.fov == lowres.fov pooler, neighbors = build_pooler(cfg, lowres, highres, "cpu") @@ -63,7 +63,7 @@ def test_camera_pools_its_buffers_by_its_config() -> None: torch.testing.assert_close(actual, constants[:, None, None, :].expand(2, len(lowres), 1, 3)) # Without pooling there is no photoreceptor grid. cfg = pooling_cfg(pool_enabled=False) - _, highres = build_retinal_coords(cfg, resolve_camera_model(cfg), "cpu") + _, highres = build_retinal_coords(cfg, CAMERA_MODEL, "cpu") assert highres is None @@ -123,7 +123,7 @@ def reference_modal_pool(table: torch.Tensor, values: torch.Tensor) -> torch.Ten def test_modal_pooling_uses_the_poolers_neighbourhoods(monkeypatch, style: str, pool_k: int, sample_cortex) -> None: """Segmentation pools over the same neighbourhoods as the camera's other outputs: grid windows or KNN.""" cfg = pooling_cfg(foveated_style=style, pool_k=pool_k, pool_sample_cortex=sample_cortex, pool_mode="max") - lowres, highres = build_retinal_coords(cfg, resolve_camera_model(cfg), "cpu") + lowres, highres = build_retinal_coords(cfg, CAMERA_MODEL, "cpu") pooler, k = build_pooler(cfg, lowres, highres, "cpu") table = segmentation_neighbor_indices(pooler) assert table.shape == (k, len(lowres)) @@ -142,7 +142,7 @@ def test_modal_pooling_uses_the_poolers_neighbourhoods(monkeypatch, style: str, @pytest.mark.parametrize(("style", "pool_k", "mode"), [("warped_cartesian_as_grid", 9, "avg"), ("isotropic", 6, "max")]) def test_pooling_leaves_out_photoreceptors_the_camera_does_not_see(style: str, pool_k: int, mode: str) -> None: cfg = pooling_cfg(foveated_style=style, pool_mode=mode, pool_k=pool_k) - lowres, highres = build_retinal_coords(cfg, resolve_camera_model(cfg), DEVICE) + lowres, highres = build_retinal_coords(cfg, CAMERA_MODEL, DEVICE) pooler, _ = build_pooler(cfg, lowres, highres, DEVICE) # The camera's image edge cuts the retina at x = 0.3 in the first environment; the second sees everything. visible = torch.stack([highres.cartesian[:, 0] < 0.3, torch.ones(len(highres), dtype=torch.bool, device=DEVICE)]) From ff3a0f835ae6f52b31a0935bb115a0ae19a5bab9 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 17:24:01 -0800 Subject: [PATCH 08/14] Simplify foveated camera setup and output allocation --- .../isaaclab_fovi/sensors/foveated_camera.py | 16 +--- .../sensors/foveated_newton_camera.py | 69 ++++++---------- .../sensors/foveated_rtx_camera.py | 80 ++++++------------- .../isaaclab_fovi/sensors/native_grid.py | 22 ++--- source/isaaclab_fovi/test/test_camera_cfg.py | 6 +- source/isaaclab_fovi/test/test_native_grid.py | 7 +- 6 files changed, 67 insertions(+), 133 deletions(-) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py index 813560db7352..7210e452f669 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py @@ -97,14 +97,14 @@ def __new__(cls, cfg: FoveatedCameraCfg, *args, **kwargs): " 'ovrtx'." ) - def __init__(self, cfg: FoveatedCameraCfg): + def __init__(self, cfg: FoveatedCameraCfg, *, turns_pose_by_gaze: bool = False): """Create the camera. Raises: ValueError: A Newton or OVRTX camera without ``update_latest_camera_pose``, whose renderer would never see the gaze. """ - self._gaze_pose_reads_angles = self._pose_update_turns_gaze(cfg) + self._gaze_pose_reads_angles = turns_pose_by_gaze """Whether the camera turns its pose by the stored gaze in each pose update, rather than writing prim poses when the gaze is set; see :attr:`turns_pose_by_gaze`.""" if self._gaze_pose_reads_angles and not cfg.update_latest_camera_pose: @@ -260,7 +260,8 @@ def set_world_poses_from_view(self, eyes, targets, env_ids=None): before = self._mount_orientations(env_ids) super().set_world_poses_from_view(eyes, targets, env_ids) # Rows whose eye equals their target are skipped by the base method and keep their poses. - self._mount_written(self._env_indices(env_ids)[self._turned_by_view(eyes, targets)]) + turned = (self._as_device_tensor(eyes, 3) - self._as_device_tensor(targets, 3)).norm(dim=-1) > 0 + self._mount_written(self._env_indices(env_ids)[turned]) self._count_mount_turn(before, env_ids) def set_intrinsic_matrices(self, matrices, focal_length=None, env_ids=None): @@ -425,10 +426,6 @@ def _env_indices(self, env_ids) -> torch.Tensor: env_ids = wp.to_torch(env_ids) return torch.as_tensor(env_ids, device=self._device, dtype=torch.long).reshape(-1) - def _turned_by_view(self, eyes, targets) -> torch.Tensor: - """Which rows :meth:`set_world_poses_from_view` turns: the base method skips an eye equal to its target.""" - return (self._as_device_tensor(eyes, 3) - self._as_device_tensor(targets, 3)).norm(dim=-1) > 0 - def _visibility_buffers(self) -> dict: """The sensor mask's camera-owned buffers, allocated once: the rendered rays, an unturned rotation per camera, each sample's visibility and, for the updated rows, which samples to hide.""" @@ -581,8 +578,3 @@ def _set_published_shape(self, outputs: Mapping[str, torch.Tensor]) -> None: tensor = next(iter(outputs.values())).torch self._published_shape = (int(tensor.shape[1]), int(tensor.shape[2])) self._data.image_shape = self._published_shape - - @staticmethod - def _pose_update_turns_gaze(cfg: FoveatedCameraCfg) -> bool: - """Whether this implementation turns its rendered pose by the stored gaze in each pose update.""" - return False diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py index 55d64a3c68a7..a9dad0ea055e 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py @@ -19,7 +19,7 @@ from .foveated_camera import OPENGL_TO_ROS_AXES, FoveatedCamera from .native_grid import ( - allocate_grid_outputs, + allocate_outputs, copy_grid_outputs, copy_updated_rows, grid_output_shape, @@ -71,7 +71,7 @@ class FoveatedNewtonCamera(FoveatedCamera): def __init__(self, cfg: FoveatedCameraCfg): # The parent's initialisation updates poses before the rays exist. self._foveated_rays: wp.array | None = None - super().__init__(cfg) + super().__init__(cfg, turns_pose_by_gaze=True) def _initialize_impl(self): # The pooler's KNN tensors are plain attributes that nn.Module.to() does not move, so the coordinates start on @@ -124,11 +124,22 @@ def _initialize_impl(self): tensor = value.torch flat = tensor.view(tensor.shape[0], render_samples, 1, tensor.shape[-1]) self._flat_render_output[name] = ProxyArray(wp.from_torch(flat[:, : self._num_ray_samples])) - self._data.output.clear() - self._data.output.update(self._flat_render_output) - - self._allocate_pooled_buffers() - source = self._pooled_output if self._pooler is not None else self._flat_render_output + source = self._flat_render_output + if self._pooler is not None: + self._pooled_output = allocate_outputs(source, self._num_valid_samples, 1) + self._prepare_segmentation_pooling(source) + dtypes = {name: str(buf.dtype).removeprefix("torch.") for name, buf in source.items()} + logger.info( + "FoveatedNewtonCamera: %s pooling (mode=%s k=%s sample_cortex=%s N_hi=%d -> N_lo=%d) outputs=%s", + type(self._pooler).__name__, + self.cfg.pool_mode, + self._pool_k, + self.cfg.pool_sample_cortex, + self._num_ray_samples, + self._num_valid_samples, + dtypes, + ) + source = self._pooled_output self._sample_output = None if self._pooler is None and not self._native_grid: # Newton redraws every environment, so sample sets publish a copy that changes only on update. @@ -141,7 +152,7 @@ def _initialize_impl(self): self._sample_output["rgb"] = self._sample_output["rgba"][..., :3] source = self._sample_output if self._native_grid: - self._grid_output = allocate_grid_outputs(source, self._sampling_coords) + self._grid_output = allocate_outputs(source, *grid_output_shape(self._sampling_coords)) self._grid_indices = grid_sample_indices(self._sampling_coords) source = self._grid_output # The buffers the camera publishes: stable for the camera's lifetime and refilled each frame. @@ -165,36 +176,6 @@ def _validate_native_render_layout(self, tile_width: int, tile_height: int) -> N "these dimensions, or select a non-tiled Newton render_order." ) - def _allocate_pooled_buffers(self) -> None: - """Allocate pooled output tensors; the renderer keeps writing the high-resolution buffers.""" - if self._pooler is None: - return - self._highres_output: dict[str, ProxyArray] = dict(self._data.output) - self._pooled_output: dict[str, torch.Tensor] = {} - for name, tex in self._highres_output.items(): - if name == "rgb" and "rgba" in self._highres_output: - continue # an alias of rgba, below - tensor = tex.torch - B, _, _, C = tensor.shape - self._pooled_output[name] = torch.zeros( - (B, self._num_valid_samples, 1, C), dtype=tensor.dtype, device=tensor.device - ) - # The renderer publishes rgb as a view of rgba whenever either is requested; so does the pooled output. - if "rgb" in self._highres_output and "rgba" in self._pooled_output: - self._pooled_output["rgb"] = self._pooled_output["rgba"][..., :3] - self._prepare_segmentation_pooling(self._highres_output) - dtypes_summary = {n: str(t.dtype).removeprefix("torch.") for n, t in self._highres_output.items()} - logger.info( - "FoveatedNewtonCamera: %s pooling (mode=%s k=%s sample_cortex=%s N_hi=%d -> N_lo=%d) outputs=%s", - type(self._pooler).__name__, - self.cfg.pool_mode, - self._pool_k, - self.cfg.pool_sample_cortex, - self._num_ray_samples, - self._num_valid_samples, - dtypes_summary, - ) - def _update_poses( self, env_ids: Sequence[int] | wp.array | None = None, @@ -237,16 +218,12 @@ def _update_buffers_impl(self, env_mask: wp.array): continue # rgba alias copy_updated_rows(self._flat_render_output[name].torch, samples, env_mask) return - mask_grid_samples(self._highres_output, self._ray_coords) - self._apply_sensor_fov_mask(self._highres_output, env_mask) - for name, hi in self._highres_output.items(): - if name == "rgb" and "rgba" in self._highres_output: + mask_grid_samples(self._flat_render_output, self._ray_coords) + self._apply_sensor_fov_mask(self._flat_render_output, env_mask) + for name, hi in self._flat_render_output.items(): + if name == "rgb" and "rgba" in self._flat_render_output: continue # rgba alias # Pooling covers every environment; only the updated ones are published. copy_updated_rows(self._pool_output(name, hi.torch), self._pooled_output[name], env_mask) if self._native_grid: copy_grid_outputs(self._pooled_output, self._grid_output, self._grid_indices) - - @staticmethod - def _pose_update_turns_gaze(cfg: FoveatedCameraCfg) -> bool: - return True diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py index c3a6efc0dcc4..a34725d4ebc2 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py @@ -32,9 +32,10 @@ from .calibrated_geometry import compose_rotations, retinal_directions from .foveated_camera import FoveatedCamera from .native_grid import ( - allocate_grid_outputs, + allocate_outputs, copy_grid_outputs, copy_updated_rows, + grid_output_shape, grid_sample_indices, mask_grid_samples, proxy_outputs, @@ -82,7 +83,8 @@ def __init__(self, cfg: FoveatedCameraCfg): cfg = clone(cfg) self.cfg = cfg self._prepare_projection() - super().__init__(cfg) + # OVRTX uses the pose the camera hands it. Replicator reads the camera prims. + super().__init__(cfg, turns_pose_by_gaze=ovrtx) # The lens belongs to the camera prims from construction: OVRTX snapshots the stage when the renderer starts. for prim in sim_utils.find_matching_prims(self.cfg.prim_path, self.stage): # A locked camera may be treated as static, which skips the motion vectors that DLSS reprojection needs; @@ -179,7 +181,7 @@ def _prepare_projection(self) -> None: dir_tex, exit_tex = lens_lut.build_lut_textures( self._sample_uv, dirs, size, size, exit_size, exit_size, device="cpu" ) - self._texture_width = self._texture_height = size + self._texture_size = size # The camera owns its textures' directory, which is removed when the camera is released. self._lut_dir = tempfile.TemporaryDirectory(prefix="rtx_foveated_luts_") @@ -203,7 +205,6 @@ def _prepare_projection(self) -> None: self.cfg.height = self.cfg.width = size def _initialize_impl(self) -> None: - tw, th = self._texture_width, self._texture_height # OVRTX measures distance_to_camera from each camera's near-clipped ray origin, so it needs the near clips. self._offset_distance = ( self.cfg.renderer_cfg.renderer_type == "ovrtx" and "distance_to_camera" in self.cfg.data_types @@ -244,19 +245,33 @@ def _initialize_impl(self) -> None: if fused: count = self._num_ray_samples samples = {name: tex.reshape(tex.shape[0], count, tex.shape[-1]) for name, tex in textures.items()} - self._grid_output = allocate_grid_outputs(samples, self._sampling_coords) + self._grid_output = allocate_outputs(samples, *grid_output_shape(self._sampling_coords)) self._grid_indices = grid_sample_indices(self._sampling_coords) self._prepare_grid_publish(samples) published = self._grid_output else: if not self._native_grid: uv_gpu = self._sample_uv.to(self._device) - self._extract_px = (uv_gpu[:, 0] * tw).long().clamp(0, tw - 1) - self._extract_py = (uv_gpu[:, 1] * th).long().clamp(0, th - 1) - self._allocate_foveated_buffers() - published = self._pooled_output if self._pooled_output is not None else self._foveated_output + size = self._texture_size + self._extract_px = (uv_gpu[:, 0] * size).long().clamp(0, size - 1) + self._extract_py = (uv_gpu[:, 1] * size).long().clamp(0, size - 1) + self._foveated_output = allocate_outputs(textures, self._num_ray_samples, 1) + published = self._foveated_output + self._pooled_output = None + if self._pooler is not None: + published = self._pooled_output = allocate_outputs(published, self._num_valid_samples, 1) + self._prepare_segmentation_pooling(published) + logger.info( + "FoveatedRTXCamera: %s pooling (mode=%s k=%s sample_cortex=%s N_hi=%d -> N_lo=%d)", + type(self._pooler).__name__, + self.cfg.pool_mode, + self._pool_k, + self.cfg.pool_sample_cortex, + self._num_ray_samples, + self._num_valid_samples, + ) if self._native_grid: - self._grid_output = allocate_grid_outputs(published, self._sampling_coords) + self._grid_output = allocate_outputs(published, *grid_output_shape(self._sampling_coords)) self._grid_indices = grid_sample_indices(self._sampling_coords) published = self._grid_output # ``CameraData.output`` is read-only, so its backing field is replaced. @@ -272,45 +287,6 @@ def _near_clipping_distance(self, prim) -> float: clipping = UsdGeom.Camera(prim).GetClippingRangeAttr().Get() return float(clipping[0]) if clipping is not None else 0.0 - def _allocate_foveated_buffers(self): - """Allocate (B, N_hi, 1, C) and, when pooling, (B, N_lo, 1, C) buffers from the texture buffers' shapes.""" - has_rgba_alias = "rgba" in self._texture_output - self._foveated_output = {} - for name, buf in self._texture_output.items(): - if name == "rgb" and has_rgba_alias: - continue # an alias of rgba, below - # Texture buffers are ProxyArrays; their Torch view carries the dtype and device. - buf_t = buf.torch - self._foveated_output[name] = torch.zeros( - (self._view.count, self._num_ray_samples, 1, buf_t.shape[-1]), device=buf_t.device, dtype=buf_t.dtype - ) - # The renderer publishes rgb as a view of rgba whenever either is requested; so do the foveated outputs. - if "rgb" in self._texture_output and "rgba" in self._foveated_output: - self._foveated_output["rgb"] = self._foveated_output["rgba"][:, :, :, :3] - - if self._pooler is None: - self._pooled_output = None - return - self._pooled_output = {} - for name, buf in self._foveated_output.items(): - if name == "rgb" and has_rgba_alias: - continue - self._pooled_output[name] = torch.zeros( - (self._view.count, self._num_valid_samples, 1, buf.shape[-1]), device=self._device, dtype=buf.dtype - ) - if "rgb" in self._texture_output and "rgba" in self._pooled_output: - self._pooled_output["rgb"] = self._pooled_output["rgba"][:, :, :, :3] - self._prepare_segmentation_pooling(self._pooled_output) - logger.info( - "FoveatedRTXCamera: %s pooling (mode=%s k=%s sample_cortex=%s N_hi=%d -> N_lo=%d)", - type(self._pooler).__name__, - self.cfg.pool_mode, - self._pool_k, - self.cfg.pool_sample_cortex, - self._num_ray_samples, - self._num_valid_samples, - ) - def _mount_written(self, env_ids) -> None: """Save the moved prims' orientations as their bare mounts and write the gaze on top of them again.""" if self._gaze_pose_reads_angles: @@ -356,12 +332,6 @@ def _extract_foveated_samples(self, env_mask: wp.array): samples = samples + self._near_clip.to(samples.dtype) copy_updated_rows(samples, fov, env_mask) - @staticmethod - def _pose_update_turns_gaze(cfg: FoveatedCameraCfg) -> bool: - # OVRTX renders the poses the camera hands it, so its pose update turns the gaze. Replicator reads camera - # prims, so Isaac RTX writes the gaze into them instead. - return cfg.renderer_cfg.renderer_type == "ovrtx" - @staticmethod def _update_buffers_batch_impl(sensors: Sequence[FoveatedRTXCamera]) -> None: Camera._update_buffers_batch_impl(sensors) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py index 459bdb690094..a57952ed05cd 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/native_grid.py @@ -9,7 +9,6 @@ import math from collections.abc import Mapping -from typing import Protocol import torch import warp as wp @@ -23,7 +22,7 @@ GRID_STYLE = "warped_cartesian_as_grid" -def buffer_tensor(value: torch.Tensor | TorchBuffer) -> torch.Tensor: +def buffer_tensor(value: torch.Tensor | ProxyArray) -> torch.Tensor: """Get a renderer or public tensor without copying.""" return value if isinstance(value, torch.Tensor) else value.torch @@ -134,7 +133,7 @@ def grid_output_shape(coords: SamplingCoords) -> tuple[int, int]: return len(coords), 1 -def mask_grid_samples(outputs: Mapping[str, torch.Tensor | TorchBuffer], coords: SamplingCoords) -> None: +def mask_grid_samples(outputs: Mapping[str, torch.Tensor | ProxyArray], coords: SamplingCoords) -> None: """Zero samples outside the configured footprint before pooling or publication.""" if coords.style != GRID_STYLE: return @@ -146,16 +145,16 @@ def mask_grid_samples(outputs: Mapping[str, torch.Tensor | TorchBuffer], coords: tensor.masked_fill_(invalid, 0) -def allocate_grid_outputs( - outputs: Mapping[str, torch.Tensor | TorchBuffer], coords: SamplingCoords +def allocate_outputs( + outputs: Mapping[str, torch.Tensor | ProxyArray], height: int, width: int ) -> dict[str, torch.Tensor]: - """Allocate stable public BHWC buffers from flat renderer outputs.""" + """Allocate BHWC buffers with the source channels, dtype, device and RGB view of RGBA.""" result: dict[str, torch.Tensor] = {} for name, value in outputs.items(): if name == "rgb" and "rgba" in outputs: continue tensor = buffer_tensor(value) - result[name] = tensor.new_zeros((tensor.shape[0], coords.resolution, coords.resolution, tensor.shape[-1])) + result[name] = tensor.new_zeros((tensor.shape[0], height, width, tensor.shape[-1])) if "rgb" in outputs and "rgba" in result: result["rgb"] = result["rgba"][..., :3] return result @@ -167,7 +166,7 @@ def grid_sample_indices(coords: SamplingCoords) -> torch.Tensor: def copy_grid_outputs( - source: Mapping[str, torch.Tensor | TorchBuffer], + source: Mapping[str, torch.Tensor | ProxyArray], target: dict[str, torch.Tensor], indices: torch.Tensor, ) -> None: @@ -181,13 +180,6 @@ def copy_grid_outputs( torch.index_select(flat_source, 1, indices, out=flat_target) -class TorchBuffer(Protocol): - """Renderer buffer exposing a Torch view.""" - - @property - def torch(self) -> torch.Tensor: ... - - def _require_spherical(coords: SamplingCoords) -> None: if coords.field_geometry != "spherical": raise ValueError(f"Foveated cameras sample spherical coordinates, got {coords.field_geometry!r}.") diff --git a/source/isaaclab_fovi/test/test_camera_cfg.py b/source/isaaclab_fovi/test/test_camera_cfg.py index 16b4ea76297a..f930ca927522 100644 --- a/source/isaaclab_fovi/test/test_camera_cfg.py +++ b/source/isaaclab_fovi/test/test_camera_cfg.py @@ -20,6 +20,7 @@ from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera from isaaclab_fovi.sensors.foveated_rtx_camera import FoveatedRTXCamera from isaaclab_newton.renderers import NewtonWarpRendererCfg +from isaaclab_ov.renderers import OVRTXRendererCfg from isaaclab_physx.renderers import IsaacRtxRendererCfg import isaaclab.sim as sim_utils @@ -176,8 +177,9 @@ def test_cameras_that_turn_their_pose_by_the_gaze_need_per_frame_pose_updates(mo def cfg(renderer_cfg) -> FoveatedCameraCfg: return make_cfg(spawn=PinholeCameraCfg(), renderer_cfg=renderer_cfg, update_latest_camera_pose=False) - with pytest.raises(ValueError, match="update_latest_camera_pose=True"): - FoveatedCamera(cfg(NewtonWarpRendererCfg())) + for renderer in (NewtonWarpRendererCfg(), OVRTXRendererCfg()): + with pytest.raises(ValueError, match="update_latest_camera_pose=True"): + FoveatedCamera(cfg(renderer)) assert not FoveatedCamera(cfg(IsaacRtxRendererCfg())).turns_pose_by_gaze diff --git a/source/isaaclab_fovi/test/test_native_grid.py b/source/isaaclab_fovi/test/test_native_grid.py index fce1bef4556f..e7eb78e14950 100644 --- a/source/isaaclab_fovi/test/test_native_grid.py +++ b/source/isaaclab_fovi/test/test_native_grid.py @@ -13,9 +13,10 @@ from isaaclab_fovi.sensors.calibrated_geometry import retinal_directions from isaaclab_fovi.sensors.lens_lut import build_native_grid_textures from isaaclab_fovi.sensors.native_grid import ( - allocate_grid_outputs, + allocate_outputs, bounded_angular_radius, copy_grid_outputs, + grid_output_shape, grid_sample_indices, mask_grid_samples, native_grid_directions, @@ -155,7 +156,7 @@ def test_upright_grid_masks_and_channel_aliases() -> None: source = {"rgba": values.clone()} source["rgb"] = source["rgba"][..., :3] mask_grid_samples(source, coords) - target = allocate_grid_outputs(source, coords) + target = allocate_outputs(source, *grid_output_shape(coords)) copy_grid_outputs(source, target, grid_sample_indices(coords)) expected = coords.as_grid(source["rgba"][:, :, 0], sample_dim=1) torch.testing.assert_close(target["rgba"], expected) @@ -169,7 +170,7 @@ def test_upright_grid_masks_and_channel_aliases() -> None: def test_published_grid_copy_is_graph_capturable(device: str) -> None: coords = make_coords(16).to(device=device) source = {"value": torch.arange(3 * len(coords) * 4, device=device).to(torch.uint8).reshape(3, len(coords), 1, 4)} - target = allocate_grid_outputs(source, coords) + target = allocate_outputs(source, *grid_output_shape(coords)) indices = grid_sample_indices(coords) copy_grid_outputs(source, target, indices) torch.testing.assert_close(target["value"], coords.as_grid(source["value"][:, :, 0], sample_dim=1), atol=0, rtol=0) From 06c2c1ff315683d518c56ddd44d9cbbef30d5f93 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 17:24:01 -0800 Subject: [PATCH 09/14] Declare Cartpole active-gaze presets directly --- .../contrib/active_gaze/active_gaze_cfg.py | 37 ++------------- .../cartpole_camera_fovi_env_cfg.py | 46 ++++++++++++------- 2 files changed, 32 insertions(+), 51 deletions(-) diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py index 3544c85a35fb..a6d2bd828677 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py @@ -12,18 +12,16 @@ from isaaclab_fovi import mdp from isaaclab_fovi.sensors import FoveatedCameraCfg -from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg, SceneEntityCfg +from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg from isaaclab.sensors import CameraCfg from isaaclab.utils import configclass -from isaaclab_tasks.utils import PresetCfg, preset - def foveated_camera(camera: CameraCfg, foveated_res: int | None = None) -> FoveatedCameraCfg: """A foveated camera at the camera's mount, with its optics, data types and renderer. - The retina covers the camera's short side and is ``foveated_res`` samples across, by default the camera's width, - so the number of rendered rays stays close to the camera's pixels. Samples the camera does not see are zero. + The retina covers the camera's short side and is ``foveated_res`` samples across, by default the camera's width. + Samples outside the camera's field of view are zero. The foveated camera keeps its own image size and per-frame pose updates, which render each new gaze. """ # A copy, so the foveated camera shares no nested configuration (spawn, renderer, offset) with the preset's. @@ -34,35 +32,6 @@ def foveated_camera(camera: CameraCfg, foveated_res: int | None = None) -> Fovea return FoveatedCameraCfg(**values, foveated_res=resolution, mask_to_sensor_fov=True) -def foveated_presets(cameras: PresetCfg, foveated_res: int | None = None) -> PresetCfg: - """The foveated version of every camera preset, under the same names. Other sensors are left out. - - ``foveated_res`` applies to every preset; by default each keeps its camera's width. - """ - options = {} - for name in cameras.__dataclass_fields__: - camera = getattr(cameras, name) - if not name.startswith("_") and isinstance(camera, CameraCfg): - options[name] = foveated_camera(camera, foveated_res) - return preset(**options) - - -def select_presets(options: PresetCfg, names) -> PresetCfg: - """The options of a preset whose names are in ``names``, plus its default.""" - return preset( - **{name: getattr(options, name) for name in options.__dataclass_fields__ if name in {*names, "default"}} - ) - - -def oracle_observations( - target_cfg: SceneEntityCfg, offset: tuple[float, float, float] = (0.0, 0.0, 0.0) -) -> OracleObservationsCfg: - """The teacher's gaze labels toward a point fixed to an asset.""" - return OracleObservationsCfg( - labels=ObservationTermCfg(func=mdp.gaze_teacher_labels, params={"target_cfg": target_cfg, "offset": offset}) - ) - - @configclass class GazeObservationsCfg(ObservationGroupCfg): """The gaze, in field radii, and its velocity, in field radii per second.""" diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py index 75406bd76a00..9b6c50d73846 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py @@ -10,9 +10,11 @@ whose noise is fixed, and the teacher's gaze labels supervise them during training. """ +from dataclasses import MISSING + from isaaclab_fovi import mdp -from isaaclab.managers import ObservationGroupCfg, SceneEntityCfg +from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg, SceneEntityCfg from isaaclab.utils import configclass from isaaclab_tasks.core.cartpole.cartpole_common import CartpoleTiledCameraCfg @@ -22,9 +24,9 @@ image_observations_cfg, ) from isaaclab_tasks.core.cartpole.cartpole_manager_env_cfg import ActionsCfg as CartpoleActionsCfg -from isaaclab_tasks.utils import PresetCfg +from isaaclab_tasks.utils import PresetCfg, preset -from .active_gaze_cfg import GazeObservationsCfg, foveated_presets, oracle_observations, select_presets +from .active_gaze_cfg import GazeObservationsCfg, OracleObservationsCfg, foveated_camera POLE_TIP = (0.0, 0.0, 1.0) """The pole's tip in the pole's frame [m].""" @@ -32,24 +34,34 @@ RETINA_RES = 32 """Retina samples across; the stock camera is 96 pixels across.""" +_STOCK_CAMERAS = CartpoleTiledCameraCfg() -def observations(data_type: str) -> object: - """The stock camera observations of ``data_type``, the gaze, and the teacher's labels.""" - camera = image_observations_cfg(data_type) - - @configclass - class ObservationsCfg: - policy: ObservationGroupCfg = camera.policy - critic: ObservationGroupCfg = camera.critic - gaze: ObservationGroupCfg = GazeObservationsCfg() - oracle: ObservationGroupCfg = oracle_observations(SceneEntityCfg("robot", body_names="pole"), POLE_TIP) - return ObservationsCfg() +@configclass +class ObservationsCfg: + policy: ObservationGroupCfg = MISSING + critic: ObservationGroupCfg = MISSING + gaze: ObservationGroupCfg = GazeObservationsCfg() + oracle: ObservationGroupCfg = OracleObservationsCfg( + labels=ObservationTermCfg( + func=mdp.gaze_teacher_labels, + params={"target_cfg": SceneEntityCfg("robot", body_names="pole"), "offset": POLE_TIP}, + ) + ) + + +def _observations(data_type: str) -> ObservationsCfg: + camera = image_observations_cfg(data_type) + return ObservationsCfg(policy=camera.policy, critic=camera.critic) @configclass class SceneCfg(CartpoleCameraSceneCfg): - tiled_camera = select_presets(foveated_presets(CartpoleTiledCameraCfg(), RETINA_RES), ("rgb", "depth")) + tiled_camera = preset( + default=foveated_camera(_STOCK_CAMERAS.default, RETINA_RES), + depth=foveated_camera(_STOCK_CAMERAS.depth, RETINA_RES), + rgb=foveated_camera(_STOCK_CAMERAS.rgb, RETINA_RES), + ) @configclass @@ -67,6 +79,6 @@ class BaseCfg(CartpoleCameraEnvCfg.BaseCartpoleCameraEnvCfg): scene: SceneCfg = SceneCfg(num_envs=512, env_spacing=20.0) actions: ActionsCfg = ActionsCfg() - rgb = BaseCfg(observations=observations("rgb")) - depth = BaseCfg(observations=observations("depth")) + rgb = BaseCfg(observations=_observations("rgb")) + depth = BaseCfg(observations=_observations("depth")) default = rgb From 72d6dd8fd0a08393a3b664a4f072db2594d7cc65 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 17:30:46 -0800 Subject: [PATCH 10/14] Declare Cartpole camera and PPO configs at their use sites --- .../contrib/active_gaze/active_gaze_cfg.py | 21 ++--------- .../contrib/active_gaze/agents.py | 32 +++++++---------- .../cartpole_camera_fovi_env_cfg.py | 36 ++++++++++--------- 3 files changed, 35 insertions(+), 54 deletions(-) diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py index a6d2bd828677..2fbd3d34b9e2 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/active_gaze_cfg.py @@ -3,35 +3,18 @@ # # SPDX-License-Identifier: BSD-3-Clause -"""Building blocks of active-gaze camera tasks: a foveated version of a stock camera, and the gaze observations.""" +"""Observation groups for active-gaze camera tasks.""" from __future__ import annotations -from dataclasses import MISSING, fields +from dataclasses import MISSING from isaaclab_fovi import mdp -from isaaclab_fovi.sensors import FoveatedCameraCfg from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg -from isaaclab.sensors import CameraCfg from isaaclab.utils import configclass -def foveated_camera(camera: CameraCfg, foveated_res: int | None = None) -> FoveatedCameraCfg: - """A foveated camera at the camera's mount, with its optics, data types and renderer. - - The retina covers the camera's short side and is ``foveated_res`` samples across, by default the camera's width. - Samples outside the camera's field of view are zero. - The foveated camera keeps its own image size and per-frame pose updates, which render each new gaze. - """ - # A copy, so the foveated camera shares no nested configuration (spawn, renderer, offset) with the preset's. - camera = camera.copy() - own = {"class_type", "width", "height", "update_latest_camera_pose"} - values = {field.name: getattr(camera, field.name) for field in fields(CameraCfg) if field.name not in own} - resolution = camera.width if foveated_res is None else foveated_res - return FoveatedCameraCfg(**values, foveated_res=resolution, mask_to_sensor_fov=True) - - @configclass class GazeObservationsCfg(ObservationGroupCfg): """The gaze, in field radii, and its velocity, in field radii per second.""" diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py index 409c686b00e5..8e87239597b8 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/agents.py @@ -5,29 +5,15 @@ """RSL-RL agents of the active-gaze tasks: the stock PPO with gaze supervision and a fixed gaze noise.""" -from dataclasses import fields - -from isaaclab.utils import configclass, replace - -from isaaclab_rl.rsl_rl import RslRlMLPModelCfg, RslRlPpoAlgorithmCfg +from isaaclab.utils import configclass from isaaclab_tasks.core.cartpole.agents.rsl_rl_ppo_cfg import CartpoleCameraPPORunnerCfg from .gaze_distribution_cfg import GazeGaussianDistributionCfg from .gaze_supervised_ppo_cfg import GazeSupervisedPPOCfg - -def gaze_supervised(algorithm: RslRlPpoAlgorithmCfg, **kwargs) -> GazeSupervisedPPOCfg: - """The PPO settings of ``algorithm`` with gaze supervision by the teacher.""" - values = {field.name: getattr(algorithm, field.name) for field in fields(algorithm) if field.name != "class_name"} - return GazeSupervisedPPOCfg(**values, **kwargs) - - -def gaze_actor(actor: RslRlMLPModelCfg) -> RslRlMLPModelCfg: - """The stock actor with a fixed, small noise on its gaze actions, the last two.""" - stock = actor.distribution_cfg - head = GazeGaussianDistributionCfg(init_std=stock.init_std, std_type=stock.std_type, std_range=stock.std_range) - return replace(actor, distribution_cfg=head) +_STOCK_RUNNER = CartpoleCameraPPORunnerCfg() +_STOCK_DISTRIBUTION = _STOCK_RUNNER.actor.distribution_cfg @configclass @@ -36,5 +22,13 @@ class CartpoleCameraFoviPPORunnerCfg(CartpoleCameraPPORunnerCfg): experiment_name = "cartpole_camera_fovi" obs_groups = {"actor": ["policy", "gaze"], "critic": ["critic", "gaze"]} - actor = gaze_actor(CartpoleCameraPPORunnerCfg().actor) - algorithm = gaze_supervised(CartpoleCameraPPORunnerCfg().algorithm) + actor = _STOCK_RUNNER.actor.replace( + distribution_cfg=GazeGaussianDistributionCfg( + init_std=_STOCK_DISTRIBUTION.init_std, + std_type=_STOCK_DISTRIBUTION.std_type, + std_range=_STOCK_DISTRIBUTION.std_range, + ) + ) + algorithm = GazeSupervisedPPOCfg( + **{name: value for name, value in vars(_STOCK_RUNNER.algorithm).items() if name != "class_name"} + ) diff --git a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py index 9b6c50d73846..323686a067df 100644 --- a/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py +++ b/source/isaaclab_tasks/isaaclab_tasks/contrib/active_gaze/cartpole_camera_fovi_env_cfg.py @@ -10,9 +10,8 @@ whose noise is fixed, and the teacher's gaze labels supervise them during training. """ -from dataclasses import MISSING - from isaaclab_fovi import mdp +from isaaclab_fovi.sensors import FoveatedCameraCfg from isaaclab.managers import ObservationGroupCfg, ObservationTermCfg, SceneEntityCfg from isaaclab.utils import configclass @@ -26,7 +25,7 @@ from isaaclab_tasks.core.cartpole.cartpole_manager_env_cfg import ActionsCfg as CartpoleActionsCfg from isaaclab_tasks.utils import PresetCfg, preset -from .active_gaze_cfg import GazeObservationsCfg, OracleObservationsCfg, foveated_camera +from .active_gaze_cfg import GazeObservationsCfg, OracleObservationsCfg POLE_TIP = (0.0, 0.0, 1.0) """The pole's tip in the pole's frame [m].""" @@ -34,13 +33,23 @@ RETINA_RES = 32 """Retina samples across; the stock camera is 96 pixels across.""" -_STOCK_CAMERAS = CartpoleTiledCameraCfg() +_STOCK_CAMERA = CartpoleTiledCameraCfg().rgb +_RGB_OBSERVATIONS = image_observations_cfg("rgb") +_RGB_CAMERA = FoveatedCameraCfg( + prim_path=_STOCK_CAMERA.prim_path, + offset=_STOCK_CAMERA.offset, + spawn=_STOCK_CAMERA.spawn, + renderer_cfg=_STOCK_CAMERA.renderer_cfg, + data_types=["rgb"], + foveated_res=RETINA_RES, + mask_to_sensor_fov=True, +) @configclass class ObservationsCfg: - policy: ObservationGroupCfg = MISSING - critic: ObservationGroupCfg = MISSING + policy: ObservationGroupCfg = _RGB_OBSERVATIONS.policy + critic: ObservationGroupCfg = _RGB_OBSERVATIONS.critic gaze: ObservationGroupCfg = GazeObservationsCfg() oracle: ObservationGroupCfg = OracleObservationsCfg( labels=ObservationTermCfg( @@ -50,17 +59,12 @@ class ObservationsCfg: ) -def _observations(data_type: str) -> ObservationsCfg: - camera = image_observations_cfg(data_type) - return ObservationsCfg(policy=camera.policy, critic=camera.critic) - - @configclass class SceneCfg(CartpoleCameraSceneCfg): tiled_camera = preset( - default=foveated_camera(_STOCK_CAMERAS.default, RETINA_RES), - depth=foveated_camera(_STOCK_CAMERAS.depth, RETINA_RES), - rgb=foveated_camera(_STOCK_CAMERAS.rgb, RETINA_RES), + default=_RGB_CAMERA, + depth=_RGB_CAMERA.replace(data_types=["depth"]), + rgb=_RGB_CAMERA, ) @@ -79,6 +83,6 @@ class BaseCfg(CartpoleCameraEnvCfg.BaseCartpoleCameraEnvCfg): scene: SceneCfg = SceneCfg(num_envs=512, env_spacing=20.0) actions: ActionsCfg = ActionsCfg() - rgb = BaseCfg(observations=_observations("rgb")) - depth = BaseCfg(observations=_observations("depth")) + rgb = BaseCfg(observations=ObservationsCfg()) + depth = BaseCfg(observations=ObservationsCfg(policy=image_observations_cfg("depth").policy)) default = rgb From 6797571366caf4ed5dde81db6095db58fd8c0299 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 17:30:46 -0800 Subject: [PATCH 11/14] Inline gaze setup and document direct camera construction --- .../concepts/sensors/foveated_camera.rst | 19 +++++++- .../isaaclab_fovi/isaaclab_fovi/mdp/gaze.py | 45 ++++++------------- .../sensors/foveated_camera_cfg.py | 4 +- source/isaaclab_fovi/test/test_active_gaze.py | 3 +- 4 files changed, 34 insertions(+), 37 deletions(-) diff --git a/docs/source/concepts/sensors/foveated_camera.rst b/docs/source/concepts/sensors/foveated_camera.rst index 7752371ba4cd..5412744f0968 100644 --- a/docs/source/concepts/sensors/foveated_camera.rst +++ b/docs/source/concepts/sensors/foveated_camera.rst @@ -45,8 +45,22 @@ Run the demo with the ``fovi`` extra. uv run --extra fovi isaaclab demo foveated-camera -Add :class:`~sensors.FoveatedCameraCfg` to a scene like any other camera. Newton Warp and OptiX render the -retinal rays directly. Isaac RTX and OVRTX use lens lookup textures. +Declare a :class:`~sensors.FoveatedCameraCfg` directly on the scene. For example, a 32 × 32 RGB retina and a +pooled variant can share the same camera setup. + +.. code-block:: python + + from isaaclab.sim import PinholeCameraCfg + from isaaclab_fovi.sensors import FoveatedCameraCfg + + camera = FoveatedCameraCfg( + prim_path="{ENV_REGEX_NS}/Camera", + spawn=PinholeCameraCfg(), + foveated_res=32, + ) + pooled_camera = camera.replace(pool_enabled=True) + +Newton Warp and OptiX render the retinal rays directly. Isaac RTX and OVRTX use lens lookup textures. The retinal field of view defaults to the angle across the short side of the physical image. The camera uses ideal pinhole optics or supported OpenCV distortion from ``spawn``. Supply @@ -64,6 +78,7 @@ Pooling Enable :attr:`~sensors.FoveatedCameraCfg.pool_enabled` to render a denser set of rays and pool their values into the published retina. Grid styles pool windows, while sample sets pool nearest neighbours. +The neighbour metric applies to nearest-neighbour pooling, and Gaussian sigma applies to Gaussian pooling. The sensor mask excludes rays outside the physical image from the reduction. Segmentation selects the modal label in its original dtype. diff --git a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py index c51f08edfbdb..4e20f919030f 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py +++ b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py @@ -121,11 +121,6 @@ def teacher_labels_kernel( log[1] = valid[0] / wp.float32(count) -def teacher_block_dim(device: torch.device | str) -> int: - """Threads of the one block that runs :func:`teacher_labels_kernel`; Warp runs CPU blocks as one thread.""" - return 1024 if torch.device(device).type == "cuda" else 1 - - @wp.kernel(enable_backward=False) def gaze_reset_kernel( ids: wp.array(dtype=wp.int32), @@ -330,8 +325,13 @@ def reset(self, env_ids=None): self._reset_ids.torch[:count] = torch.as_tensor(env_ids, device=self.device) random_start = self.cfg.random_reset if random_start: - gaze = _random_gaze(count, self.cfg.gaze_limit, self.device) - visible = self.visible(_angles_to_direction(gaze * self.field_radius_deg)) + # A square root gives uniform area density in the gaze disc. + radius = self.cfg.gaze_limit * torch.rand(count, device=self.device).sqrt() + angle = 2 * math.pi * torch.rand(count, device=self.device) + gaze = torch.stack((radius * angle.sin(), radius * angle.cos()), dim=-1) + tilt, pan = (gaze * self.field_radius_deg).deg2rad().unbind(-1) + direction = torch.stack((-tilt.cos() * pan.sin(), -tilt.sin(), tilt.cos() * pan.cos()), -1) + visible = self.visible(direction) self._reset_start.torch[:count] = torch.where(visible[:, None], gaze, 0.0) angles = self.camera.gaze_angles launch = self._reset_launches.get((indexed, random_start)) @@ -422,7 +422,8 @@ def __call__( # The launch is recorded once and recorded again only when one of its arrays or the point changes. sources = (self._targets, self._orientations, camera_positions, mounts, self._offset[1]) if self._launch is None or any(a is not b for a, b in zip(self._launch[0], sources)): - block = teacher_block_dim(env.device) + # Warp runs CPU blocks as one thread. + block = 1024 if torch.device(env.device).type == "cuda" else 1 launch = record_launch( teacher_labels_kernel, (1, block), @@ -445,27 +446,9 @@ def __call__( ) self._launch = (sources, launch) self._launch[1].launch(warp_stream(env.device)) - _log_teacher(env, self._log.torch) + # Each step's log must survive the next write to this buffer. + error, fraction = self._log.torch.clone() + log = env.extras.setdefault("log", {}) + log["Gaze/target_error_deg"] = error + log["Gaze/valid_target_fraction"] = fraction return self._labels.torch - - -def _log_teacher(env: ManagerBasedEnv, values: torch.Tensor) -> None: - """Log the mean gaze error to valid targets and the fraction of valid targets.""" - # Loggers keep each step's entries, so they get a copy rather than the buffer the next step overwrites. - error, fraction = values.clone() - log = env.extras.setdefault("log", {}) - log["Gaze/target_error_deg"] = error - log["Gaze/valid_target_fraction"] = fraction - - -def _angles_to_direction(angles_deg: torch.Tensor) -> torch.Tensor: - """Camera-frame unit directions of gaze angles [deg], shape (..., 2) to (..., 3).""" - tilt, pan = angles_deg.deg2rad().unbind(-1) - return torch.stack((-tilt.cos() * pan.sin(), -tilt.sin(), tilt.cos() * pan.cos()), -1) - - -def _random_gaze(count: int, limit: float, device: torch.device | str | None = None) -> torch.Tensor: - """Gazes drawn uniformly over the disc of radius ``limit``, shape (count, 2).""" - radius = limit * torch.rand(count, device=device).sqrt() - angle = 2 * math.pi * torch.rand(count, device=device) - return torch.stack((radius * angle.sin(), radius * angle.cos()), dim=-1) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py index 9f1db703ac50..6da911221e3c 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera_cfg.py @@ -96,8 +96,8 @@ class FoveatedCameraCfg(CameraCfg): exit_texture_size: int | None = None """Side of the RTX inverse lens texture; None uses ``max(128, 4 * grid side)``.""" - # The camera sets height and width on its own copy of the configuration, from the retina's samples, before the - # parent allocates buffers. The defaults only satisfy CameraCfg's required fields. + # Render dimensions come from the retinal samples. On Newton, these initial dimensions also determine the + # aspect ratio used to infer an unspecified vertical aperture when spawning the camera. width: int = 1 height: int = 1 diff --git a/source/isaaclab_fovi/test/test_active_gaze.py b/source/isaaclab_fovi/test/test_active_gaze.py index 3077bf89c68a..ca62f14fb7eb 100644 --- a/source/isaaclab_fovi/test/test_active_gaze.py +++ b/source/isaaclab_fovi/test/test_active_gaze.py @@ -17,7 +17,6 @@ gaze_reset_kernel, gaze_state, gaze_step_kernel, - teacher_block_dim, teacher_labels_kernel, ) from isaaclab_fovi.mdp.gaze_cfg import GazeActionCfg @@ -132,7 +131,7 @@ def teachable(direction: torch.Tensor) -> torch.Tensor: labels = torch.empty(count, 3, device=device) log = torch.full((2,), float("nan"), device=device) - block = teacher_block_dim(device) + block = 1024 if torch.device(device).type == "cuda" else 1 with torch_stream(device): wp.launch( teacher_labels_kernel, From 455590c9bc001955b8184685ae45964a8fb7b3b5 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 17:36:39 -0800 Subject: [PATCH 12/14] Keep Newton render buffers separate from public camera data --- .../isaaclab_fovi/sensors/foveated_camera.py | 6 +-- .../sensors/foveated_newton_camera.py | 43 ++++--------------- .../sensors/foveated_rtx_camera.py | 21 ++++----- .../isaaclab_fovi/test/test_newton_buffers.py | 27 ++++++------ source/isaaclab_fovi/test/test_rtx_camera.py | 1 - 5 files changed, 34 insertions(+), 64 deletions(-) diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py index 7210e452f669..afb5459230ba 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_camera.py @@ -479,9 +479,9 @@ def _apply_sensor_fov_mask(self, outputs: Mapping[str, torch.Tensor], env_mask: def _prepare_segmentation_pooling(self, names) -> None: """Take the modal-label neighbourhoods of pooled segmentation outputs among ``names`` from the main pooler.""" - self._segmentation_neighbors = None - if self._pooler is not None and any(is_segmentation_output(name) for name in names): - self._segmentation_neighbors = segmentation_neighbor_indices(self._pooler) + self._segmentation_neighbors = ( + segmentation_neighbor_indices(self._pooler) if any(is_segmentation_output(name) for name in names) else None + ) def _pool_output(self, name: str, samples: torch.Tensor) -> torch.Tensor: """Pool one output's high-resolution samples (B, N_hi, 1, C) to the retina's (B, N_lo, 1, C), in its dtype. diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py index a9dad0ea055e..c8af488d78b0 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_newton_camera.py @@ -8,13 +8,11 @@ from __future__ import annotations import logging -from collections.abc import Sequence from typing import TYPE_CHECKING import torch import warp as wp -from isaaclab.sensors.camera.camera import Camera from isaaclab.utils.warp import ProxyArray from .foveated_camera import OPENGL_TO_ROS_AXES, FoveatedCamera @@ -69,8 +67,6 @@ class FoveatedNewtonCamera(FoveatedCamera): cfg: FoveatedCameraCfg def __init__(self, cfg: FoveatedCameraCfg): - # The parent's initialisation updates poses before the rays exist. - self._foveated_rays: wp.array | None = None super().__init__(cfg, turns_pose_by_gaze=True) def _initialize_impl(self): @@ -107,17 +103,18 @@ def _initialize_impl(self): super()._initialize_impl() self._initialize_sampling() - self._pooler, self._pool_k = build_pooler( + self._pooler, pool_k = build_pooler( self.cfg, self._sampling_coords, self._sampling_coords_highres, device=str(self._device) ) # The gaze geometry's rendered rays, in canonical sample order and rolled by image_rotation_deg, back in the # OpenGL frame Newton traces. - self._ray_directions = self._gaze_rays * self._gaze_rays.new_tensor(OPENGL_TO_ROS_AXES) - self._foveated_rays = explicit_rays(self._ray_directions, self.cfg.height, self.cfg.width) + ray_directions = self._gaze_rays * self._gaze_rays.new_tensor(OPENGL_TO_ROS_AXES) + self._render_data.camera_rays = explicit_rays(ray_directions, self.cfg.height, self.cfg.width) render_samples = self.cfg.height * self.cfg.width # Renderer buffers remain whole tiles; zero-copy canonical views hide # trailing padding and preserve every output's dtype and sample order. + # Keep the backing buffers alive for the renderer's non-owning views. self._render_output = dict(self._data.output) self._flat_render_output = {} for name, value in self._render_output.items(): @@ -133,7 +130,7 @@ def _initialize_impl(self): "FoveatedNewtonCamera: %s pooling (mode=%s k=%s sample_cortex=%s N_hi=%d -> N_lo=%d) outputs=%s", type(self._pooler).__name__, self.cfg.pool_mode, - self._pool_k, + pool_k, self.cfg.pool_sample_cortex, self._num_ray_samples, self._num_valid_samples, @@ -156,15 +153,13 @@ def _initialize_impl(self): self._grid_indices = grid_sample_indices(self._sampling_coords) source = self._grid_output # The buffers the camera publishes: stable for the camera's lifetime and refilled each frame. - self._public_output = proxy_outputs(source) self._data.output.clear() - self._data.output.update(self._public_output) - self._set_published_shape(self._public_output) + self._data.output.update(proxy_outputs(source)) + self._set_published_shape(self._data.output) if self._native_grid and self._pooler is None: self._prepare_grid_publish( {name: value.torch.squeeze(2) for name, value in self._flat_render_output.items()} ) - self._render_data.camera_rays = self._foveated_rays def _validate_native_render_layout(self, tile_width: int, tile_height: int) -> None: """Reject a native grid that Newton's tiles cannot cover, before the parent allocates render buffers.""" @@ -176,22 +171,6 @@ def _validate_native_render_layout(self, tile_width: int, tile_height: int) -> N "these dimensions, or select a non-tiled Newton render_order." ) - def _update_poses( - self, - env_ids: Sequence[int] | wp.array | None = None, - env_mask: wp.array | None = None, - frame_op: int = 0, - ) -> None: - """Read base poses, turn them by the gaze, update the renderer once, and inject the foveated rays. - - The scene pose is read even without a gaze: the camera may inherit - motion from a parent body. - """ - # The base update turns the poses by the gaze in _update_camera_state, then hands them to the renderer. - Camera._update_poses(self, env_ids, env_mask=env_mask, frame_op=frame_op) - if self._foveated_rays is not None: - self._render_data.camera_rays = self._foveated_rays - def _update_buffers_impl(self, env_mask: wp.array): """Render, then mask and publish the updated environments, pooling high-resolution samples if enabled. @@ -199,13 +178,7 @@ def _update_buffers_impl(self, env_mask: wp.array): its visibility record and the published buffers, which the camera owns, change only for the updated environments. """ - self._data.output.clear() - self._data.output.update(self._render_output) - try: - super()._update_buffers_impl(env_mask) - finally: - self._data.output.clear() - self._data.output.update(self._public_output) + super()._update_buffers_impl(env_mask) if not self._env_mask_has_any(env_mask): return if self._pooler is None: diff --git a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py index a34725d4ebc2..3b58a42c0acf 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py +++ b/source/isaaclab_fovi/isaaclab_fovi/sensors/foveated_rtx_camera.py @@ -206,11 +206,8 @@ def _prepare_projection(self) -> None: def _initialize_impl(self) -> None: # OVRTX measures distance_to_camera from each camera's near-clipped ray origin, so it needs the near clips. - self._offset_distance = ( - self.cfg.renderer_cfg.renderer_type == "ovrtx" and "distance_to_camera" in self.cfg.data_types - ) near_clips = None - if self._offset_distance: + if self.cfg.renderer_cfg.renderer_type == "ovrtx" and "distance_to_camera" in self.cfg.data_types: prims = sim_utils.find_matching_prims(self.cfg.prim_path, self.stage) near_clips = [self._near_clipping_distance(prim) for prim in prims] @@ -230,9 +227,10 @@ def _initialize_impl(self) -> None: logger.warning("Could not enable Kit extension '%s'; the lens lookup may not render.", ext_name) self._initialize_sampling() - _, local_orientation = self._view.get_local_poses() - self._base_local_orientation = matrix_from_quat(local_orientation.torch).clone() - self._pooler, self._pool_k = build_pooler( + if not self._gaze_pose_reads_angles: + _, local_orientation = self._view.get_local_poses() + self._base_local_orientation = matrix_from_quat(local_orientation.torch).clone() + self._pooler, pool_k = build_pooler( self.cfg, self._sampling_coords, self._sampling_coords_highres, device=str(self._device) ) @@ -241,7 +239,7 @@ def _initialize_impl(self) -> None: textures = {name: tex.torch for name, tex in self._texture_output.items()} # A native grid texture already holds the samples in order, so one kernel per output masks it and lays it # out. OVRTX's camera distance needs its near-plane offset first, and keeps the step-by-step path. - fused = self._native_grid and self._pooler is None and not self._offset_distance + fused = self._native_grid and self._pooler is None and self._near_clip is None if fused: count = self._num_ray_samples samples = {name: tex.reshape(tex.shape[0], count, tex.shape[-1]) for name, tex in textures.items()} @@ -265,7 +263,7 @@ def _initialize_impl(self) -> None: "FoveatedRTXCamera: %s pooling (mode=%s k=%s sample_cortex=%s N_hi=%d -> N_lo=%d)", type(self._pooler).__name__, self.cfg.pool_mode, - self._pool_k, + pool_k, self.cfg.pool_sample_cortex, self._num_ray_samples, self._num_valid_samples, @@ -317,17 +315,16 @@ def _update_buffers_impl(self, env_mask: wp.array): def _extract_foveated_samples(self, env_mask: wp.array): """Extract the updated environments' per-sample values from the rendered 2D textures into the (B, N, 1, C) buffers; the other environments keep their last samples.""" - for name in self._texture_output: + for name, tex in self._texture_output.items(): if name == "rgb" and "rgba" in self._texture_output: continue # rgba alias - tex = self._texture_output[name] # (B, th, tw, C) fov = self._foveated_output[name] # (B, N, 1, C) tensor = tex.torch if self._native_grid: samples = tensor.reshape_as(fov) else: samples = tensor[:, self._extract_py, self._extract_px, :].unsqueeze(2) - if self._offset_distance and name == "distance_to_camera": + if name == "distance_to_camera" and self._near_clip is not None: # OVRTX measures the distance from the near-clipped ray origin. samples = samples + self._near_clip.to(samples.dtype) copy_updated_rows(samples, fov, env_mask) diff --git a/source/isaaclab_fovi/test/test_newton_buffers.py b/source/isaaclab_fovi/test/test_newton_buffers.py index ec3aa5f7bc5a..0ff11895c685 100644 --- a/source/isaaclab_fovi/test/test_newton_buffers.py +++ b/source/isaaclab_fovi/test/test_newton_buffers.py @@ -18,6 +18,7 @@ from isaaclab_fovi.sensors.foveated_newton_camera import FoveatedNewtonCamera, explicit_rays from isaaclab_fovi.sensors.native_grid import native_grid_directions +from isaaclab.sensors.camera.camera import Camera from isaaclab.utils.warp import ProxyArray pytestmark = pytest.mark.kitless @@ -64,12 +65,12 @@ def initialize_renderer(camera): camera.renderer_rgba = rgba def render(camera, env_mask): - assert camera._data.output["rgba"].torch.shape == camera.renderer_rgba.shape + assert camera._data.output["rgba"] is public_rgba values = torch.arange(camera.renderer_rgba.numel()).reshape(camera.renderer_rgba.shape) + camera.frame_offset camera.renderer_rgba.copy_(values.to(torch.uint8)) - monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) - monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) + monkeypatch.setattr(Camera, "_initialize_impl", initialize_renderer) + monkeypatch.setattr(Camera, "_update_buffers_impl", render) camera = new_camera() camera.cfg = SimpleNamespace( camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), @@ -86,7 +87,7 @@ def render(camera, env_mask): ) camera._initialize_impl() - rays = wp.to_torch(camera._foveated_rays) + rays = wp.to_torch(camera._render_data.camera_rays) assert rays.shape == (ray_coords.resolution, ray_coords.resolution, 1, 2, 3) expected_rays = native_grid_directions(ray_coords, image_rotation_deg=0).float() torch.testing.assert_close(rays.reshape(-1, 2, 3)[:, 1], expected_rays) @@ -129,8 +130,8 @@ def initialize_renderer(camera): def render(camera, env_mask): camera.renderer_depth.fill_(camera.frame_value) - monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) - monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) + monkeypatch.setattr(Camera, "_initialize_impl", initialize_renderer) + monkeypatch.setattr(Camera, "_update_buffers_impl", render) camera = new_camera() camera.cfg = SimpleNamespace( camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), @@ -166,8 +167,8 @@ def initialize_renderer(camera): camera._data = SimpleNamespace(output={"distance_to_camera": ProxyArray(wp.from_torch(camera.renderer_depth))}) camera._render_data = SimpleNamespace(camera_rays=None) - monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) - monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", lambda camera, env_mask: None) + monkeypatch.setattr(Camera, "_initialize_impl", initialize_renderer) + monkeypatch.setattr(Camera, "_update_buffers_impl", lambda camera, env_mask: None) camera = new_camera() camera.cfg = SimpleNamespace( camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), @@ -231,8 +232,8 @@ def initialize_renderer(camera): def render(camera, env_mask): camera.renderer_labels.copy_(labels.to(torch.int32).reshape(camera.renderer_labels.shape)) - monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) - monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) + monkeypatch.setattr(Camera, "_initialize_impl", initialize_renderer) + monkeypatch.setattr(Camera, "_update_buffers_impl", render) camera = new_camera() camera.cfg = SimpleNamespace( camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), @@ -312,8 +313,8 @@ def initialize_renderer(camera): def render(camera, env_mask): camera.renderer_rgba.copy_(torch.tensor([10, 20, 30, 255], dtype=torch.uint8)) - monkeypatch.setattr(newton_camera.Camera, "_initialize_impl", initialize_renderer) - monkeypatch.setattr(newton_camera.Camera, "_update_buffers_impl", render) + monkeypatch.setattr(Camera, "_initialize_impl", initialize_renderer) + monkeypatch.setattr(Camera, "_update_buffers_impl", render) camera = new_camera() camera.cfg = SimpleNamespace( camera_model=asdict(CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5))), @@ -347,7 +348,7 @@ def test_runtime_intrinsics_leave_the_retinas_rays_alone(monkeypatch) -> None: def replace_rays(*args, **kwargs): raise AssertionError("the stock setter replaces the renderer's rays") - monkeypatch.setattr(newton_camera.Camera, "set_intrinsic_matrices", replace_rays) + monkeypatch.setattr(Camera, "set_intrinsic_matrices", replace_rays) camera = new_camera() with pytest.warns(UserWarning, match="leaves a foveated camera as configured") as caught: camera.set_intrinsic_matrices(torch.eye(3).repeat(2, 1, 1)) diff --git a/source/isaaclab_fovi/test/test_rtx_camera.py b/source/isaaclab_fovi/test/test_rtx_camera.py index adb3258ea669..53f574400ea8 100644 --- a/source/isaaclab_fovi/test/test_rtx_camera.py +++ b/source/isaaclab_fovi/test/test_rtx_camera.py @@ -60,7 +60,6 @@ def test_partial_capture_extracts_only_the_updated_environments(native_grid) -> camera = SimpleNamespace( cfg=SimpleNamespace(renderer_cfg=SimpleNamespace(renderer_type="ovrtx")), # An OVRTX camera with distance_to_camera output adds each camera's near clip. - _offset_distance=True, _native_grid=native_grid, _near_clip=torch.tensor([0.25, 0.5, 0.75]).view(-1, 1, 1, 1), # The renderer-bound texture buffers are ProxyArrays, as the parent camera allocates them. From b6119bd5db4f0f43d97af6b3e795b868cfb49d78 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 17:50:58 -0800 Subject: [PATCH 13/14] Use packed poses and labels in the gaze teacher --- .../isaaclab_fovi/isaaclab_fovi/mdp/gaze.py | 46 ++++++---------- source/isaaclab_fovi/test/test_active_gaze.py | 55 +++++++++++-------- 2 files changed, 50 insertions(+), 51 deletions(-) diff --git a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py index 4e20f919030f..2be93d7f00b3 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py +++ b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py @@ -78,8 +78,7 @@ def teach( @wp.kernel(enable_backward=False) def teacher_labels_kernel( - targets: wp.array(dtype=wp.vec3f), - orientations: wp.array(dtype=wp.quatf), + target_poses: wp.array(dtype=wp.transformf), offset: wp.vec3f, positions: wp.array(dtype=wp.vec3f), mounts: wp.array(dtype=wp.quatf), @@ -89,7 +88,7 @@ def teacher_labels_kernel( step_size: wp.float32, gaze_limit: wp.float32, camera: CameraParams, - labels: wp.array2d(dtype=wp.float32), + labels: wp.array(dtype=wp.vec3f), log: wp.array(dtype=wp.float32), ): """Labels (action x, action y, valid) toward the point ``offset`` fixed to each target's frame; and the mean gaze @@ -99,17 +98,15 @@ def teacher_labels_kernel( One block labels every environment and reduces the logs itself, so the launch needs no zeroed accumulators. """ _block, lane = wp.tid() - count = targets.shape[0] + count = target_poses.shape[0] error_sum = wp.float32(0.0) valid_count = wp.float32(0.0) i = lane while i < count: - point = targets[i] + wp.quat_rotate(orientations[i], offset) + point = wp.transform_point(target_poses[i], offset) gaze = angles_deg[i] / field_radius_deg result = teach(point, positions[i], mounts[i], gaze, frame, field_radius_deg, step_size, gaze_limit, camera) - labels[i, 0] = result[0] - labels[i, 1] = result[1] - labels[i, 2] = result[2] + labels[i] = wp.vec3f(result[0], result[1], result[2]) if result[2] > 0.5: error_sum += result[3] valid_count += 1.0 @@ -384,12 +381,12 @@ class gaze_teacher_labels(ManagerTermBase): def __init__(self, cfg: ObservationTermCfg, env: ManagerBasedEnv): super().__init__(cfg, env) self._gaze: GazeAction = env.action_manager.get_term(cfg.params.get("action_name", "gaze")) - self._labels = ProxyArray(wp.zeros((env.num_envs, 3), dtype=wp.float32, device=env.device)) + self._labels = ProxyArray(wp.zeros(env.num_envs, dtype=wp.vec3f, device=env.device)) self._log = ProxyArray(wp.zeros(2, dtype=wp.float32, device=env.device)) """Mean gaze error to valid targets [deg] and the fraction of valid targets.""" self._offset: tuple[tuple[float, ...], wp.vec3f] | None = None - self._sources = None - self._targets = self._orientations = None + self._target_key: tuple[int, int | None] | None = None + self._target_poses: wp.array | None = None self._launch: tuple[tuple, wp.Launch] | None = None def __call__( @@ -400,27 +397,21 @@ def __call__( action_name: str = "gaze", ) -> torch.Tensor: data = env.scene[target_cfg.name].data - # Reading the properties refreshes the asset's pose buffers; their Warp views are wrapped once. - if target_cfg.body_names is None: - positions, orientations = data.root_pos_w, data.root_quat_w - else: - positions, orientations = data.body_pos_w, data.body_quat_w - if self._sources != (id(positions), id(orientations)): - self._sources = (id(positions), id(orientations)) - if target_cfg.body_names is None: - self._targets, self._orientations = positions.warp, orientations.warp - else: - body = target_cfg.body_ids[0] - self._targets = wp.from_torch(positions.torch[:, body], dtype=wp.vec3f) - self._orientations = wp.from_torch(orientations.torch[:, body], dtype=wp.quatf) + # Reading the property refreshes the producer's poses. Keep the selected Warp view until its binding changes. + body_id = None if target_cfg.body_names is None else int(target_cfg.body_ids[0]) + poses = data.root_pose_w.warp if body_id is None else data.body_pose_w.warp + target_key = (id(poses), body_id) + if self._target_key != target_key: + self._target_poses = poses if body_id is None else poses[:, body_id] + self._target_key = target_key point = tuple(float(value) for value in offset) if self._offset is None or self._offset[0] != point: self._offset = (point, wp.vec3f(*point)) gaze = self._gaze mounts = gaze.teacher_mounts() camera_positions = gaze.camera.data.pos_w.warp - # The launch is recorded once and recorded again only when one of its arrays or the point changes. - sources = (self._targets, self._orientations, camera_positions, mounts, self._offset[1]) + # Rebind the launch when the target pose view, camera pose buffers or offset changes. + sources = (self._target_poses, camera_positions, mounts, self._offset[1]) if self._launch is None or any(a is not b for a, b in zip(self._launch[0], sources)): # Warp runs CPU blocks as one thread. block = 1024 if torch.device(env.device).type == "cuda" else 1 @@ -428,8 +419,7 @@ def __call__( teacher_labels_kernel, (1, block), [ - self._targets, - self._orientations, + self._target_poses, self._offset[1], camera_positions, mounts, diff --git a/source/isaaclab_fovi/test/test_active_gaze.py b/source/isaaclab_fovi/test/test_active_gaze.py index ca62f14fb7eb..204c1b40deb5 100644 --- a/source/isaaclab_fovi/test/test_active_gaze.py +++ b/source/isaaclab_fovi/test/test_active_gaze.py @@ -17,11 +17,13 @@ gaze_reset_kernel, gaze_state, gaze_step_kernel, + gaze_teacher_labels, teacher_labels_kernel, ) from isaaclab_fovi.mdp.gaze_cfg import GazeActionCfg from isaaclab_fovi.sensors.gaze_kernels import camera_params, torch_stream +from isaaclab.managers import ObservationTermCfg, SceneEntityCfg from isaaclab.test.utils import DeviceScope, test_devices from isaaclab.utils.math import quat_apply, quat_apply_inverse from isaaclab.utils.warp import ProxyArray @@ -131,14 +133,16 @@ def teachable(direction: torch.Tensor) -> torch.Tensor: labels = torch.empty(count, 3, device=device) log = torch.full((2,), float("nan"), device=device) + poses = torch.empty(count, 2, 7, device=device) + poses[:, 1] = torch.cat((targets, orientations), dim=-1).to(device) + target_poses = wp.from_torch(poses, dtype=wp.transformf)[:, 1] block = 1024 if torch.device(device).type == "cuda" else 1 with torch_stream(device): wp.launch( teacher_labels_kernel, dim=(1, block), inputs=[ - wp.from_torch(targets.to(device), dtype=wp.vec3f), - wp.from_torch(orientations.to(device), dtype=wp.quatf), + target_poses, wp.vec3f(*offset.tolist()), wp.from_torch(positions.to(device), dtype=wp.vec3f), wp.from_torch(mount.to(device), dtype=wp.quatf), @@ -149,7 +153,7 @@ def teachable(direction: torch.Tensor) -> torch.Tensor: limit, camera_params(camera), ], - outputs=[wp.from_torch(labels), wp.from_torch(log)], + outputs=[wp.from_torch(labels, dtype=wp.vec3f), wp.from_torch(log)], block_dim=block, ) labels, log = labels.cpu(), log.cpu() @@ -170,33 +174,38 @@ def test_teacher_gaze_fixates_the_target_through_a_rolled_mount(): direction = torch.nn.functional.normalize(torch.tensor([[0.25, -0.15, 1.0], [-0.3, 0.2, 1.0]]), dim=-1) count = len(direction) identity = torch.tensor([[0.0, 0.0, 0.0, 1.0]]).repeat(count, 1) - labels, log = torch.empty(count, 3), torch.empty(2) with torch_stream("cpu"): - wp.launch( - teacher_labels_kernel, - dim=(1, 1), - inputs=[ - wp.from_torch(direction, dtype=wp.vec3f), - wp.from_torch(identity, dtype=wp.quatf), - wp.vec3f(0.0, 0.0, 0.0), - wp.zeros(count, dtype=wp.vec3f), - wp.from_torch(identity, dtype=wp.quatf), - wp.zeros(count, dtype=wp.vec2f), - wp.mat33f(*frame.flatten().tolist()), - field_radius, - step, - 1.0, - camera_params(camera), - ], - outputs=[wp.from_torch(labels), wp.from_torch(log)], - block_dim=1, + root_pose = ProxyArray(wp.from_torch(torch.cat((direction, identity), dim=-1), dtype=wp.transformf)) + mount = ProxyArray(wp.from_torch(identity, dtype=wp.quatf)) + sensor = SimpleNamespace( + data=SimpleNamespace(pos_w=ProxyArray(wp.zeros(count, dtype=wp.vec3f))), + gaze_angles=ProxyArray(wp.zeros(count, dtype=wp.vec2f)), + image_frame=wp.mat33f(*frame.flatten().tolist()), + projection_params=camera_params(camera), ) + gaze_term = SimpleNamespace( + camera=sensor, + teacher_mounts=lambda: mount, + field_radius_deg=field_radius, + cfg=GazeActionCfg(asset_name="camera", step_size=step), + ) + env = SimpleNamespace( + device="cpu", + num_envs=count, + scene={"target": SimpleNamespace(data=SimpleNamespace(root_pose_w=root_pose))}, + action_manager=SimpleNamespace(get_term=lambda name: gaze_term), + extras={}, + ) + teacher = gaze_teacher_labels(ObservationTermCfg(func=gaze_teacher_labels), env) + labels = teacher(env, SceneEntityCfg("target")) assert (labels[:, 2] == 1).all() gaze = labels[:, :2] * step fixation = angles_to_direction(gaze * field_radius) @ frame.T torch.testing.assert_close(fixation, direction, atol=1e-5, rtol=0) # The error is the gaze's angle from the target before the step: the gaze starts on the optical axis. - torch.testing.assert_close(log[0], direction[:, 2].acos().rad2deg().mean(), atol=1e-3, rtol=0) + log = env.extras["log"] + torch.testing.assert_close(log["Gaze/target_error_deg"], direction[:, 2].acos().rad2deg().mean(), atol=1e-3, rtol=0) + assert float(log["Gaze/valid_target_fraction"]) == 1.0 def test_gaze_config_rejects_bounds_that_divide_by_zero_and_unknown_mounts(): From 075795a85f3e4d64c0af7ce4028068757be2cad7 Mon Sep 17 00:00:00 2001 From: Octi Zhang Date: Thu, 19 Nov 2026 17:59:30 -0800 Subject: [PATCH 14/14] Consolidate teacher bindings and coverage --- .../isaaclab_fovi/isaaclab_fovi/mdp/gaze.py | 23 ++-- source/isaaclab_fovi/test/test_active_gaze.py | 111 ++++++------------ 2 files changed, 42 insertions(+), 92 deletions(-) diff --git a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py index 2be93d7f00b3..862897ab93ca 100644 --- a/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py +++ b/source/isaaclab_fovi/isaaclab_fovi/mdp/gaze.py @@ -384,9 +384,6 @@ def __init__(self, cfg: ObservationTermCfg, env: ManagerBasedEnv): self._labels = ProxyArray(wp.zeros(env.num_envs, dtype=wp.vec3f, device=env.device)) self._log = ProxyArray(wp.zeros(2, dtype=wp.float32, device=env.device)) """Mean gaze error to valid targets [deg] and the fraction of valid targets.""" - self._offset: tuple[tuple[float, ...], wp.vec3f] | None = None - self._target_key: tuple[int, int | None] | None = None - self._target_poses: wp.array | None = None self._launch: tuple[tuple, wp.Launch] | None = None def __call__( @@ -397,30 +394,24 @@ def __call__( action_name: str = "gaze", ) -> torch.Tensor: data = env.scene[target_cfg.name].data - # Reading the property refreshes the producer's poses. Keep the selected Warp view until its binding changes. + # Reading the property refreshes the producer's poses. body_id = None if target_cfg.body_names is None else int(target_cfg.body_ids[0]) poses = data.root_pose_w.warp if body_id is None else data.body_pose_w.warp - target_key = (id(poses), body_id) - if self._target_key != target_key: - self._target_poses = poses if body_id is None else poses[:, body_id] - self._target_key = target_key point = tuple(float(value) for value in offset) - if self._offset is None or self._offset[0] != point: - self._offset = (point, wp.vec3f(*point)) gaze = self._gaze mounts = gaze.teacher_mounts() camera_positions = gaze.camera.data.pos_w.warp - # Rebind the launch when the target pose view, camera pose buffers or offset changes. - sources = (self._target_poses, camera_positions, mounts, self._offset[1]) - if self._launch is None or any(a is not b for a, b in zip(self._launch[0], sources)): + # Warp retains the selected view and its backing array in the recorded launch. + key = (id(poses), body_id, id(camera_positions), id(mounts), point) + if self._launch is None or self._launch[0] != key: # Warp runs CPU blocks as one thread. block = 1024 if torch.device(env.device).type == "cuda" else 1 launch = record_launch( teacher_labels_kernel, (1, block), [ - self._target_poses, - self._offset[1], + poses if body_id is None else poses[:, body_id], + wp.vec3f(*point), camera_positions, mounts, gaze.camera.gaze_angles, @@ -434,7 +425,7 @@ def __call__( env.device, block_dim=block, ) - self._launch = (sources, launch) + self._launch = (key, launch) self._launch[1].launch(warp_stream(env.device)) # Each step's log must survive the next write to this buffer. error, fraction = self._log.torch.clone() diff --git a/source/isaaclab_fovi/test/test_active_gaze.py b/source/isaaclab_fovi/test/test_active_gaze.py index 204c1b40deb5..668036d41bd6 100644 --- a/source/isaaclab_fovi/test/test_active_gaze.py +++ b/source/isaaclab_fovi/test/test_active_gaze.py @@ -18,7 +18,6 @@ gaze_state, gaze_step_kernel, gaze_teacher_labels, - teacher_labels_kernel, ) from isaaclab_fovi.mdp.gaze_cfg import GazeActionCfg from isaaclab_fovi.sensors.gaze_kernels import camera_params, torch_stream @@ -80,22 +79,15 @@ def test_gaze_step_kernel_matches_the_torch_update(): torch.testing.assert_close(angles, expected * radius, atol=1e-5, rtol=1e-6) -def mount_frame(rotation_deg: float) -> torch.Tensor: - """The camera's ``_mask_frame`` for an image rolled by ``rotation_deg``: upright gaze frame to physical frame.""" - angle = torch.tensor(rotation_deg).deg2rad() - c, s = float(angle.cos()), float(angle.sin()) - return torch.tensor([[c, s, 0.0], [-s, c, 0.0], [0.0, 0.0, 1.0]]) - - -# The kernel's block size depends on the device; the image roll is rotated across the two. -TEACHER_CASES = [("cpu", 0.0)] + [(device, 35.0) for device in DEVICES if device != "cpu"] - - -@pytest.mark.parametrize(("device", "rotation_deg"), TEACHER_CASES) -def test_teacher_labels_kernel_matches_the_torch_labels(device, rotation_deg): +@pytest.mark.parametrize(("device", "body_id"), [("cpu", None), (DEVICES[-1] if DEVICES else "cpu", 1)]) +def test_teacher_labels_and_diagnostics_match_the_torch_reference(device, body_id): + # The root case checks fixation from rest through a roll over 90 degrees. The body case exercises clamping + # and a strided pose view, including the CUDA block reduction when a GPU is available. camera = CameraModel("pinhole", (480, 640), (400.0, 400.0, 319.5, 239.5), distortion=(-0.1, 0.02, 0.0, 0.0)) - field_radius, step, limit = 30.0, 0.1, 1.0 - frame = mount_frame(rotation_deg) + field_radius, step, limit = 30.0, (2.0 if body_id is None else 0.1), 1.0 + roll = math.radians(120.0 if body_id is None else 35.0) + c, s = math.cos(roll), math.sin(roll) + frame = torch.tensor([[c, s, 0.0], [-s, c, 0.0], [0.0, 0.0, 1.0]]) generator = torch.Generator().manual_seed(5) count = 4099 # Each camera has its own mount, as on a moving head. @@ -106,7 +98,7 @@ def test_teacher_labels_kernel_matches_the_torch_labels(device, rotation_deg): targets = positions + quat_apply(mount, local) orientations = torch.nn.functional.normalize(torch.randn(count, 4, generator=generator), dim=-1) offset = torch.tensor([0.0, 0.0, 0.3]) - gaze = (torch.rand(count, 2, generator=generator) * 2 - 1) * 0.7 + gaze = torch.zeros(count, 2) if body_id is None else (torch.rand(count, 2, generator=generator) * 2 - 1) * 0.7 # The torch path the kernel replaces: the point fixed to each target, the teacher, then the labels and logs. points = targets + quat_apply(orientations, offset.expand(count, -1)) @@ -126,86 +118,53 @@ def teachable(direction: torch.Tensor) -> torch.Tensor: decisive = torch.stack( [teachable(torch.nn.functional.normalize(direction + nudge, dim=-1)) == valid for nudge in nudges] ).all(0) - action = torch.where(valid[:, None], ((desired - gaze) / step).clamp(-1, 1), 0.0) + delta = (desired - gaze) / step + action = torch.where(valid[:, None], delta.clamp(-1, 1), 0.0) looking = angles_to_direction(gaze * field_radius) error = torch.atan2(torch.cross(looking, upright, dim=-1).norm(dim=-1), (looking * upright).sum(-1)).rad2deg() expected = torch.cat((action, valid[:, None].float()), dim=-1) - labels = torch.empty(count, 3, device=device) - log = torch.full((2,), float("nan"), device=device) - poses = torch.empty(count, 2, 7, device=device) - poses[:, 1] = torch.cat((targets, orientations), dim=-1).to(device) - target_poses = wp.from_torch(poses, dtype=wp.transformf)[:, 1] - block = 1024 if torch.device(device).type == "cuda" else 1 + poses = torch.cat((targets, orientations), dim=-1).to(device) + target = SceneEntityCfg("target") with torch_stream(device): - wp.launch( - teacher_labels_kernel, - dim=(1, block), - inputs=[ - target_poses, - wp.vec3f(*offset.tolist()), - wp.from_torch(positions.to(device), dtype=wp.vec3f), - wp.from_torch(mount.to(device), dtype=wp.quatf), - wp.from_torch((gaze * field_radius).to(device), dtype=wp.vec2f), - wp.mat33f(*frame.flatten().tolist()), - field_radius, - step, - limit, - camera_params(camera), - ], - outputs=[wp.from_torch(labels, dtype=wp.vec3f), wp.from_torch(log)], - block_dim=block, - ) - labels, log = labels.cpu(), log.cpu() - assert valid[decisive].any() and (~valid[decisive]).any() and decisive.float().mean() > 0.99 - torch.testing.assert_close(labels[decisive], expected[decisive], atol=1e-4, rtol=0) - labelled = labels[:, 2] > 0.5 - assert float(log[1]) == pytest.approx(float(labelled.float().mean())) - assert float(log[0]) == pytest.approx(float(error[labelled].mean()), rel=1e-4) - - -def test_teacher_gaze_fixates_the_target_through_a_rolled_mount(): - """Following a teacher label puts the fixation, which reaches the physical camera at frame * gaze * z, on the - target.""" - rotation_deg = 120.0 - camera = CameraModel("pinhole", (480, 640), (300.0, 300.0, 319.5, 239.5)) - field_radius, step = 40.0, 10.0 - frame = mount_frame(rotation_deg) - direction = torch.nn.functional.normalize(torch.tensor([[0.25, -0.15, 1.0], [-0.3, 0.2, 1.0]]), dim=-1) - count = len(direction) - identity = torch.tensor([[0.0, 0.0, 0.0, 1.0]]).repeat(count, 1) - with torch_stream("cpu"): - root_pose = ProxyArray(wp.from_torch(torch.cat((direction, identity), dim=-1), dtype=wp.transformf)) - mount = ProxyArray(wp.from_torch(identity, dtype=wp.quatf)) + if body_id is None: + asset_data = SimpleNamespace(root_pose_w=ProxyArray(wp.from_torch(poses, dtype=wp.transformf))) + else: + target.body_names, target.body_ids = ["pole"], [body_id] + bodies = torch.stack((torch.zeros_like(poses), poses), dim=1) + asset_data = SimpleNamespace(body_pose_w=ProxyArray(wp.from_torch(bodies, dtype=wp.transformf))) + mounts = ProxyArray(wp.from_torch(mount.to(device), dtype=wp.quatf)) sensor = SimpleNamespace( - data=SimpleNamespace(pos_w=ProxyArray(wp.zeros(count, dtype=wp.vec3f))), - gaze_angles=ProxyArray(wp.zeros(count, dtype=wp.vec2f)), + data=SimpleNamespace(pos_w=ProxyArray(wp.from_torch(positions.to(device), dtype=wp.vec3f))), + gaze_angles=ProxyArray(wp.from_torch((gaze * field_radius).to(device), dtype=wp.vec2f)), image_frame=wp.mat33f(*frame.flatten().tolist()), projection_params=camera_params(camera), ) gaze_term = SimpleNamespace( camera=sensor, - teacher_mounts=lambda: mount, + teacher_mounts=lambda: mounts, field_radius_deg=field_radius, cfg=GazeActionCfg(asset_name="camera", step_size=step), ) env = SimpleNamespace( - device="cpu", + device=device, num_envs=count, - scene={"target": SimpleNamespace(data=SimpleNamespace(root_pose_w=root_pose))}, + scene={"target": SimpleNamespace(data=asset_data)}, action_manager=SimpleNamespace(get_term=lambda name: gaze_term), extras={}, ) teacher = gaze_teacher_labels(ObservationTermCfg(func=gaze_teacher_labels), env) - labels = teacher(env, SceneEntityCfg("target")) - assert (labels[:, 2] == 1).all() - gaze = labels[:, :2] * step - fixation = angles_to_direction(gaze * field_radius) @ frame.T - torch.testing.assert_close(fixation, direction, atol=1e-5, rtol=0) - # The error is the gaze's angle from the target before the step: the gaze starts on the optical axis. + labels = teacher(env, target, offset=tuple(offset.tolist())).cpu() + assert valid[decisive].any() and (~valid[decisive]).any() and decisive.float().mean() > 0.99 + torch.testing.assert_close(labels[decisive], expected[decisive], atol=1e-4, rtol=0) + labelled = labels[:, 2] > 0.5 + reachable = labelled & decisive & (delta.abs().amax(dim=-1) < 1.0) + assert reachable.any() + fixation = angles_to_direction((gaze + labels[:, :2] * step) * field_radius) @ frame.T + torch.testing.assert_close(fixation[reachable], direction[reachable], atol=1e-5, rtol=0) log = env.extras["log"] - torch.testing.assert_close(log["Gaze/target_error_deg"], direction[:, 2].acos().rad2deg().mean(), atol=1e-3, rtol=0) - assert float(log["Gaze/valid_target_fraction"]) == 1.0 + assert float(log["Gaze/valid_target_fraction"]) == pytest.approx(float(labelled.float().mean())) + assert float(log["Gaze/target_error_deg"]) == pytest.approx(float(error[labelled].mean()), rel=1e-4) def test_gaze_config_rejects_bounds_that_divide_by_zero_and_unknown_mounts():