Skip to content
Snippets Groups Projects
emrsp_rm_v006.tf 150 KiB
Newer Older
Marc Costa's avatar
Marc Costa committed
KPL/FK

ExoMarsRSP Rosalind Franklin Rover Module (RM) Frames Kernel
===============================================================================

   This frame kernel contains a complete set of frame definitions for the
   ExoMars RSP Rosalind Franklin Rover Module (RM) including definitions for
   the RM structures and RM science instrument frames. This kernel also
   contains NAIF ID/name mapping for the RM instruments.


Version and Date
------------------------------------------------------------------------

   Version 0.0.6 -- June 3, 2020 -- Marc Costa Sitja, ESAC/ESA

      Added Rover locomotion and solar arrays frames and IDs.
      Corrected FRAME_RM_MAST_ZERO frame definition.
      Updated the the RM_ROVER_DRILL_TIP_MOV defintion to a type 3 frame.
      Corrected RM_CLUPI_BRACKET and LOCCAM frame definitions.
      Updated reference frame centers to their ephemeris objects.

   Version 0.0.5 -- December 20, 2019 -- Marc Costa Sitja, ESAC/ESA

      Corrected FRAME_RM_MAST_ZERO frame definition

   Version 0.0.4 -- December 20, 2019 -- Marc Costa Sitja, ESAC/ESA

      Added reference frames, references, diagrams and IDs for Solar
      Arrays. Corrected Sites definitions. Defined frames for cruise
      phase. Corrected PTR frames. Corrected ADRON frames. This should
      be considered a work in progress version.

   Version 0.0.3 -- February 28, 2019 -- Marc Costa Sitja, ESAC/ESA

      Added reference frames, references, diagrams and IDs for ALD
      components, updated diagrams and done some minor edits.

   Version 0.0.2 -- February 14, 2019 -- Marc Costa Sitja, ESAC/ESA

      Added reference frames, references, diagrams and IDs for the drill,
      MaMiss, WISDOM and CLUPI.

   Version 0.0.1 -- February 8, 2019 -- Marc Costa Sitja, ESAC/ESA

      Updated ID from -999 to -174 and done several edits including
      updated updated diagrams and frame trees.

      Added reference frames and IDs for LOCCAM, ISEM and ADRON.

   Version 0.0.0 -- June 8, 2018 -- Marc Costa Sitja, ESAC/ESA

      Preliminary version.


References
------------------------------------------------------------------------

    1. ``Frames Required Reading'', NAIF

    2. ``Kernel Pool Required Reading'', NAIF

    3. ``C-Kernel Required Reading'', NAIF

    4. ``ExoMars Rover and Surface Platform Mission Implementation Plan'',
       EXM-G2-PLN-ESC-00004, ExoMars Ground Segment Team, Issue 1, Revision 2,
       ESOC, August 8, 2017

    5. ``EXOMARS 2018 ROVER MODULE Coordinate Systems & Conventions for RM
       control'', EXM-RM-TNO-AI-0448, A. Merlo, Thales Alenia Space,
       Issue 1, November 2015

    6. ExoMars RSP Mars Local Geodetic Frames (emrsp_mlg_vVVV.tf),
       latest version

    7. ``ExoMars Rover Vehicle Coordinate Systems and Conventions
       Specifications'', EXM-RM-SYS-ASU-00101, Airbus Defense and Space,
       Issue 2, April 2016

    8. ``Description of Frames and Conventions Related to Localisation
       Camera Data Sets'', EXM-RM-TNO-AS U-00209, K. MacManamon,
       Airbus Defense and Space,  Issue 2, Revision 0, July 2014

    9. ``ExoMars/CLUPI Science Requirements Specification Document'',
       EXM.CL.RSD.SPX.1501, Space Exploration Institute,
       Issue 1, Rev. 0, July 2015

    10. ``Water Ice and Subsurface Deposit Observations on Mars WISDOM
        instrument'', MICD, EXM-WI-DRW-LAT-0152, Issue 02, Rev. 01,
        A. Galic, March 2018

    11. ``ExoMars ICD ALD Structure - ALD Structure Interface Control
        Document'', EXM-RM-ICD-KT-0002, Q. Muhlbauer, OHB System AG,
        Issue 4, May 2016

    12. ``Rover Module Outline Drawing'', EXM-D2-ICD-AI-0078,
        Thales Alenia Space, Revision A, 4th September 2017


Contact Information
------------------------------------------------------------------------

   If you have any questions regarding this file contact the
   ESA SPICE Service at ESAC:

           Marc Costa Sitja
           (+34) 91-8131-457
           marc.costa@esa.int, esa_spice@sciops.esa.int

   or ROCC at Altec Space:

           Federico Salvioli
           (+39) 011-7430-097
           federico.salvioli@altecspace.it


Implementation Notes
------------------------------------------------------------------------

  This file is used by the SPICE system as follows: programs that make use
  of this frame kernel must "load" the kernel normally during program
  initialization. Loading the kernel associates the data items with
  their names in a data structure called the "kernel pool".  The SPICELIB
  routine FURNSH loads a kernel into the pool as shown below:

    FORTRAN: (SPICELIB)

      CALL FURNSH ( frame_kernel_name )

    C: (CSPICE)

      furnsh_c ( frame_kernel_name );

    IDL: (ICY)

      cspice_furnsh, frame_kernel_name

    MATLAB: (MICE)

         cspice_furnsh ( 'frame_kernel_name' )

    PYTHON: (SPICEYPY)*

         furnsh( frame_kernel_name )

  In order for a program or routine to extract data from the pool, the
  SPICELIB routines GDPOOL, GIPOOL, and GCPOOL are used.  See [2] for
  more details.

  This file was created and may be updated with a text editor or word
  processor.

  * SPICEPY is a non-official, community developed Python wrapper for the
    NAIF SPICE toolkit. Its development is managed on Github.
    It is available at: https://github.com/AndrewAnnex/SpiceyPy


RM NAIF ID Codes -- Summary Section
------------------------------------------------------------------------

   The following names and NAIF ID codes are assigned to the ExoMars RSP
   rover, its structures and science instruments (the keywords implementing
   these definitions are located in the section "RM NAIF ID Codes --
   Definition Section" at the end of this file):

   RM and RM Structures names/IDs:

            RM                       -174   (synonyms: EXOMARS RSP RM,
                                                       EXOMARS RSP ROVER,
                                                       EXOMARS RSP ROVER MODULE
                                                  and  EXOMARS ROVER)

            RM_ROVER                 -174000
            RM_MAST                  -174010
            RM_PTR                   -174012
            RM_PB                    -174013

            RM_NAVCAM                -174020
            RM_NAVCAM_L              -174021
            RM_NAVCAM_R              -174022
            RM_LOCCAM                -174030
            RM_LOCCAM_L              -174031
            RM_LOCCAM_R              -174031

            RM_DRILL_POS_FIX         -174040
            RM_DRILL_POS_MOV         -174041
            RM_DRILL_TIP_FIX         -174042
            RM_DRILL_TIP_MOV         -174043

            RM_ALD                   -174050
            RM_ALD_CSTM              -174051
            RM_ALD_PSDDS             -174053
            RM_ALD_PSHS              -174055

            RM_SAF1_PRI              -174062
            RM_SAF1_SEC              -174063
            RM_SAF2_PRI              -174065
            RM_SAF2_SEC              -174066

            RM_BOGIE_LF              -174071
Marc Costa's avatar
Marc Costa committed
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200
            RM_BOGIE_LR              -174074
            RM_BOGIE_RR              -174076

            RM_WHEEL_LF              -174081
            RM_WHEEL_LM              -174082
            RM_WHEEL_RF              -174083
            RM_WHEEL_RM              -174084
            RM_WHEEL_LR              -174085
            RM_WHEEL_RR              -174086

            RM_CALTAR_FIDM1
            RM_CALTAR_FIDM2
            RM_CALTAR_FIDM3
            RM_CALTAR_PCT
            RM_CALTAR_PCT_SHPOST_1
            RM_CALTAR_PCT_SHPOST_2
            RM_CALTAR_PCT_YELLOW
            RM_CALTAR_PCT_RED
            RM_INSPECTION_MIRROR
            ( ... )

   PanCam names/IDs:

            RM_PANCAM                -174100
            RM_PANCAM_WAC_L          -174110
            RM_PANCAM_WAC_R          -174120
            RM_PANCAM_HRC            -174130

   ISEM names/IDs:

            RM_ISEM                  -174200

   ADRON-RM name/IDs:

            RM_ADRON-RM              -174300

   WISDOM name/IDs:

            RM_WISDOM                -174400
            RM_WISDOM_ANT1           -174410
            RM_WISDOM_ANT2           -174420

   MaMiss name/IDs:

            RM_MAMISS                -174500

   CLUPI name/IDs:

            RM_CLUPI                 -174600
            RM_CLUPI_FOV1            -174601
            RM_CLUPI_FOV2            -174602
            RM_CLUPI_FOV3            -174603
            RM_CLUPI_DRILL_TIP       -174620
            RM_CLUPI_BRACKET         -174630

   Sites name/IDs:

            RM_SITE_000              -174700 (synonym: RM_LANDING_SITE)
            RM_SITE_NNN*             -174XXX**

      (*) NNN corresponds to the travel sequence number and it has a range
          from 000 (refers to the position of the Rover at landing site)
          to 299.

      (**) XXX ranges from 701 up to 899.


RM Frames
------------------------------------------------------------------------

   The following RM frames are defined in this kernel file:

           Name                    Relative to           Type        NAIF ID
      ======================    ===================  ============    =======

   RM Rover and Rover Structures frames:
   ------------------------------------------------
      RM_ROVER                    RM_MLG,                CK          -174000
                                  RM_ROVER_CRUISE
      RM_ROVER_CRUISE             CM_SPACECRAFT          FIXED       -174001
      RM_MAST_ZERO                RM_ROVER               FIXED       -174010
      RM_MAST                     RM_MAST_ZERO           CK          -174011
      RM_PTR_ZERO                 RM_MAST                FIXED       -174012
      RM_PTR                      RM_PTR_ZERO            CK          -174013
      RM_PB                       RM_PTR                 FIXED       -174014
      RM_NAVCAM_BASE              RM_PB                  FIXED       -174020
      RM_NAVCAM_L                 RM_NAVCAM_BASE         FIXED       -174021
      RM_NAVCAM_R                 RM_NAVCAM_BASE         FIXED       -174022
      RM_LOCCAM_BASE              RM_PB                  FIXED       -174030
      RM_LOCCAM_L                 RM_LOCCAM_BASE         FIXED       -174031
      RM_LOCCAM_R                 RM_LOCCAM_BASE         FIXED       -174032
      RM_DRILL_POS_FIX            RM_ROVER               FIXED       -174040
      RM_DRILL_POS_MOV            RM_DRILL_POS_FIX       CK          -174041
      RM_DRILL_TIP_FIX            RM_DRILL_POS_MOV       FIXED       -174042
      RM_DRILL_TIP_MOV            RM_DRILL_TIP_FIX       CK(*)       -174043
      RM_ALD_CSTM_FIX             RM_ROVER               FIXED       -174052
      RM_ALD_CSTM_MOV             RM_ALD_CSTM_FIX        FIXED(*)    -174053
      RM_ALD_PSDDS_FIX            RM_ROVER               FIXED       -174052
      RM_ALD_PSDDS_MOV            RM_ALD_PSDDS_FIX       FIXED       -174053
      RM_ALD_PSHS_FIX             RM_ROVER               FIXED       -174054
      RM_ALD_PSHS_MOV             RM_ALD_PSHS_FIX        CK          -174055
      RM_SA1_ZERO                 RM_ROVER               FIXED       -174061
      RM_SA1_PRI                  RM_SA1_ZERO            CK          -174062
      RM_SA1_SEC                  RM_SA1_PRI             CK          -174063
      RM_SA2_ZERO                 RM_ROVER               FIXED       -174064
      RM_SA2_PRI                  RM_SA2_ZERO            CK          -174065
      RM_SA2_SEC                  RM_SA2_PRI             CK          -174066
      RM_BOGIE_LF_FIX             RM_ROVER               FIXED       -174071
      RM_BOGIE_LF_MOV             RM_BOGIE_LF_FIX       CK           -174072
      RM_BOGIE_RF_FIX             RM_ROVER               FIXED       -174073
      RM_BOGIE_RF_MOV             RM_BOGIE_LF_FIX       CK           -174074
      RM_BOGIE_MR_FIX             RM_ROVER               FIXED       -174075
      RM_BOGIE_MR_MOV             RM_BOGIE_MR_FIX       CK           -174076
      RM_WHEEL_LF_FIX             RM_BOGIE_LF_MOV        FIXED       -1740810
      RM_WHEEL_LF_STR             RM_WHEEL_LF_FIX        CK          -1740811
      RM_WHEEL_LF_MOV             RM_WHEEL_LF_STR        CK          -1740812
      RM_WHEEL_LM_FIX             RM_BOGIE_LF_MOV        FIXED       -1740820
      RM_WHEEL_LM_STR             RM_WHEEL_LM_FIX        CK          -1740821
      RM_WHEEL_LM_MOV             RM_WHEEL_LM_STR        CK          -1740822
      RM_WHEEL_RF_FIX             RM_BOGIE_RF_MOV        FIXED       -1740830
      RM_WHEEL_RF_STR             RM_WHEEL_RF_FIX        CK          -1740831
      RM_WHEEL_RF_MOV             RM_WHEEL_RF_STR        CK          -1740832
      RM_WHEEL_RM_FIX             RM_BOGIE_RF_MOV        FIXED       -1740840
      RM_WHEEL_RM_STR             RM_WHEEL_RM_FIX        CK          -1740841
      RM_WHEEL_RM_MOV             RM_WHEEL_RM_STR        CK          -1740842
      RM_WHEEL_LR_FIX             RM_BOGIE_MR_MOV        FIXED       -1740850
      RM_WHEEL_LR_STR             RM_WHEEL_LR_FIX        CK          -1740851
      RM_WHEEL_LR_MOV             RM_WHEEL_LR_STR        CK          -1740852
      RM_WHEEL_RR_FIX             RM_BOGIE_MR_MOV        FIXED       -1740860
      RM_WHEEL_RR_STR             RM_WHEEL_RR_FIX        CK          -1740861
      RM_WHEEL_RR_MOV             RM_WHEEL_RR_STR        CK          -1740862

      RM_CALIBR_TARGET            RM_ROVER               FIXED
      RM_MIRROR_                  RM_ROVER               FIXED

   PanCam frames:
   ------------------------------------------------
      RM_PANCAM_BASE              RM_PB                  FIXED       -174100
      RM_PANCAM_WAC_L             RM_PANCAM_BASE         FIXED       -174110
      RM_PANCAM_WAC_R             RM_PANCAM_BASE         FIXED       -174120
      RM_PANCAM_HRC               RM_PANCAM_BASE         FIXED       -174130

   ISEM frames:
   ------------------------------------------------
      RM_ISEM                     RM_PB                  FIXED       -174200

   ADRON-RM frames:
   ------------------------------------------------
      RM_ADRON-RM                 RM_ROVER               FIXED       -174300

   WISDOM frames:
   ------------------------------------------------
      RM_WISDOM_BASE              RM_ROVER               FIXED       -174400
      RM_WISDOM_ANT1              RM_WISDOM_BASE         FIXED       -174410
      RM_WISDOM_ANT2              RM_WISDOM_BASE         FIXED       -174420

   MaMiss frames:
   ------------------------------------------------
      RM_MAMISS                   RM_DRILL_TIP_MOV       FIXED       -174500

   CLUPI frames:
   ------------------------------------------------
      RM_CLUPI_BASE               RM_DRILL_POS_MOV       FIXED       -174500
      RM_CLUPI_OPT_AXIS           RM_CLUPI_BASE          FIXED       -174510
      RM_CLUPI_DRILL_TIP          RM_CLUPI_OPT_AXIS      FIXED       -174520
      RM_CLUPI_BRACKET            RM_DRILL_POS_FIX       FIXED       -174530


   In addition, the following frames, in use by the ExoMars RSP mission, are
   defined in another kernel:

           Name                    Relative to           Type        NAIF ID
      ======================    ===================  ============    =======

   ExoMars RSP Local Geodetic Frames (1):
   ---------------------------------------------------
       RM_LANDING_SITE              IAU_MARS            FIXED        -174900
       RM_MLG*                      IAU_MARS            FIXED        -174700

       (*) The frame is implemented with an SPK to account for the
           translation of its origin to the different RM_SITE_NNN objects.


ExoMars RSP Mission Description
--------------------------------------------------------------------------

   The mission can be broadly described as follows: launch the ExoMarsRSP
   Spacecraft and fly it to Mars; land on Mars, deliver the Rover to the
   surface and perform the nominal exploration mission on the surface.
   The launch configuration is the Spacecraft Composite (SCC), which is
   composed of the Carrier Module (CM) and the Descent Module (DM). The CM
   is jettisoned upon arrival at Mars, and the DM will enter the Mars
   atmosphere and land, carrying the ``Kazachok'' Surface Platform (SP) and
   the ``Rosalind Franklin'' Rover (RM). The CM and the RM are developed by
   ESA. The DM and SP are developed by Roscosmos with ESA contributions.
   The elements of the spacecraft composite are shown below.

     CM          DM            SP                  RM

     |           .'.                           =
     |--.      .'   |               |          |
   )-|  |     |     |     -------------       |-----------                 RM
     |--'      '.   |       '-------'          /\____\|
     |           '.'         /     \          0  0    0

     |           |              |                |
     |           |              |                |
     |           |              |                |
     |           |              |                V           _=_______
     |           |              |                           |0  0    0\
     |           |              '-------------> (+) ---->  -------------   LPC
     |           |                                           '-------'
     |           |                               |            /     \
     |           |                               |
     |           |                               |
     |           |                               V               .'.
     |           |                                             .' -o|
     |           '----------------------------> (+) ---->     |  | ||      DM
     |                                                         '.._o|
     |                                           |               '.'
     |                                           |
     |                                           |
     |                                           V            |      .'.
     |                                                        |--. .' -o|
     '----------------------------------------> (+) ---->   )-|  ||  | ||  SCC
                                                              |--' '.._o|
                                                              |      '.'

   Please note that this Frames Kernel file solely implements the Frames for
   the ExoMars RSP Lander Component (RM).


RM Frames Hierarchy
--------------------------------------------------------------------------

   The diagram below shows the ExoMars RM frames hierarchy (except
   for science operations frames):


                                   "J2000" INERTIAL
                  +--------------------------------------------+
                  |                      |                     |
                  |<-ck                  |<-pck                |<-pck
                  |                      |                     |
                  |                      v                     v
                  v                 "IAU_EARTH"            "IAU_MARS"
           "CM_SPACECRAFT"       EARTH BODY-FIXED     MARS BODY-FIXED (MCMF)
           ---------------       ----------------     ----------------------
                 |                                              |
                 |<-fixed                                       |<-fixed
                 |                                              |
                 |                                              |
                 |                                              v
                 v                                         "RM_MLG" (**)
           RM_ROVER_CRUISE                               MARS TOPOGRAPHIC
           ---------------                              -----------------
                 |                                              |
                 |<-ck(*)                                       |< -ck
                 |                                              |
                 | RM_WHEEL_L{F,M,R}_MOV  RM_WHEEL_R{F,M,R}_MOV |
                 | ---------------------  --------------------- |
                 |          |                    |              |
                 |          |<-ck                |<-ck          |
                 |          |                    |              |
                 |          v                    v              |
                 | RM_WHEEL_L{F,M,R}_STR  RM_WHEEL_R{F,M,R}_STR |
                 | ---------------------  --------------------- |
                 |          |                    |              |
                 |          |<-ck                |<-ck          |
                 |          |                    |              |
                 |          v                    v              |
  "RM_SA1_SEC"   | RM_WHEEL_L{F,M,R}_FIX  RM_WHEEL_R{F,M,R}_FIX |  "RM_SA2_SEC"
  -------------  | ---------------------  --------------------- |  ------------
        ^        |          |                    |              |       ^
        |        |          |<-fixed             |<-fixed       |       |
        |<-ck    |          |                    |              |       |<-ck
        |        |          v                    v              |       |
  "RM_SA1Y_PRI"  |         "RM_BOGIE_{LF,RF,MR}_MOV"            |  "RM_SA2_PRI"
  -------------  |         +----------------------+             |  ------------
        ^        |                  |                           |       ^
        |        |                  |<-ck                       |       |
        |<-ck    |                  |                           |       |<-ck
        |        |                  v                           |       |
  "RM_SA1_ZERO"  |      "RM_BOGIE_{LF,RF,MR}_FIX"               | "RM_SA2_ZERO"
  -------------  |      -------------------------               | -------------
        |        |           |                                  |      |
        |<-fixed |           |<-fixed                           |      |<-fixed
        |        |           |                                  |      |
        v        v           v         "RM_ROVER"               v      v
   +-------------------------------------------------------------------+
   |   |          |          |             |          .                |
   |   |<-fixed   |<-fixed   |<-fixed      |<-fixed   .                |<-fixed
   |   |          |          |             |          .                |
   |   |          |          v             |          .                |
   |   |          |    "RM_MAST_ZERO"      |          .                |
   |   |          |    --------------      |          .                |
   |   |          |          |             |          .                |
   |   |          |          |<-ck         |          .                |
   |   |          |          |             |          .                |
   |   |          |          v             v          .                v
   |   |          |      "RM_MAST"  "RM_LOCCCAM_BASE" . "RM_DRILL_POS_FIX"
   |   |          |      ---------  ----------------- . +----------------+
   |   |          v          |                        . .                |
   |   | "RM_ALD_CSTM_FIX"   |<-fixed                 . .                |<-ck
   |   | -----------------   |                        . .                |
   |   |          |          v                        . .                v
   |   |   fixed->|      "RM_PTR_ZERO"                . . "RM_DRILL_POS_MOV"
   |   |          |      -------------                . . +----------------+
   |   |          v          |                        . . .                |
   |   | "RM_ALD_CSTM_MOV"   |<-ck                    . . .         fixed->|
   |   | -----------------   |                        . . .                |
   |   |                     v                        . . .                v
   |   |                  "RM_PTR"                    . . .  "RM_DRILL_TIP_FIX"
   |   V                  --------                    . . .  ------------------
   |  "RM_ALD_PSHS_FIX"      |                        . . .         |
   |  -----------------      |<-fixed                 . . .         |<-ck
   |           |             |                        . . .         |
   |       ck->|             v                        . . .         v
   |           |          "RM_PB"                     . . .  "RM_DRILL_TIP_MOV"
   |           v        +--------------+              . . .  ------------------
   |  "RM_ALD_PSHS_MOV" .              |              . . .         .
   |  ----------------- .              |<-fixed       . . .         .
   |                    .              |              . . .         .
   |<-fixed             .              V              . . .         .
   |                    .      "RM_NAVCAM_BASE"       . . .         .
   v                    .     +----------------+      . . .         .
  "RM_ALD_PSDDS_FIX"    .     |                |      . . .         .
  ------------------    .     |<-fixed  fixed->|      . . .         .
           |            .     |                |      . . .         .
       ck->|            .     v                v      . . .         .
           |            . "RM_NAVCAM_L" "RM_NAVCAM_R" . . .         .
           v            . ------------- ------------- . . .         .
  "RM_ALD_PSDDS_MOV"    .                             . . .         .
  ------------------    .                             . . .         .
                        .                             . . .         .
                        V                             V V V         V
                  Individual instrument frame trees are provided in the other
                                    sections of this file


   Please refer to the PanCam, NavCam sections for the frame
   hierarchy of each payload; and to the RM science operations frame
   definitions kernel for further details on these frame definitions.

   (*)      In these cases transformation is fixed but it has to be
            stored in a CK to make SPICE "traverse" appropriate frame
            tree branch based on the time of interest and/or loaded
            kernels.

   (**)     This frame is equivalent to the SP_TOPO frame defined in the
            ExoMarsRSP Surface Platform Frames Kernel (emrsp_sp_vNNN.tf)


RM Mars Local Geodetic Frames
-------------------------------------------------

   The Rover Module Mars Local Geodetic frame (Topocentric) -- RM_MLG -- is
   defined as follows:

      - +Z axis is in the direction of the vertical (i.e. approximately the
        negative gravity vector; "Zenith", assuming that the small local
        variation can be ignored),

      - +X axis is tangential to the local geodetic horizontal in an eastern
        direction (i.e. parallel to lines of latitude; "East"),

      - +Y axis completes the right hand frame ("North");

      - the origin of the frame is initially defined to be coincident with
        the origin of the Rover Body frame, RM_ROVER, prior to the start of
        travel. During a travel sequence, this frame remains fixed with Mars,
        but becomes reset at the start of a new travel sequence. The rationale
        for this is that a travel sequence requires a stationary reference
        frame in which to measure position and coordinate navigation maps.
        The start of travel when the frame is reset may be at the start of
        each sol, or when new targets are generated.

   If we assume that the total traverse distance during the mission will be
   relatively short (hundreds of meters, not kilometers) and, therefore, the
   local north and nadir directions, defining surface frame orientations, will
   be approximately the same at any point along the traverse path. This
   assumption allows defining a single surface frame as a fixed offset frame
   to Mars body-fixed frame, IAU_MARS. With this assumption we will always
   use the Mars Local Geodetic Landing Site frame that is defined hereafter.
   RM surface fixed frame -- RM_MLG -- is nominally co-aligned in orientation
   with the RM_LANDING_SITE and its origin changes throughout the mission.
   Therefore, this frame is defined as a zero-offset, fixed frame with respect
   to the RM_LANDING_SITE frame.

   \begindata

      FRAME_RM_MLG                        =  -174700
      FRAME_-174700_NAME                  =  'RM_MLG'
      FRAME_-174700_CLASS                 =  4
      FRAME_-174700_CLASS_ID              =  -174700
      FRAME_-174700_CENTER                =  -174700

      OBJECT_-174700_FRAME                =  'RM_MLG'

      TKFRAME_-174700_RELATIVE            =  'IAU_MARS'
      TKFRAME_-174700_SPEC                =  'ANGLES'
      TKFRAME_-174700_UNITS               =  'DEGREES'
      TKFRAME_-174700_AXES                =  ( 3, 2, 3 )
      TKFRAME_-174700_ANGLES              =  ( -335.4500000000000,
                                                -71.8000000000000,
                                                270.0000000000000 )

   \begintext


RM Lander and Lander Structures Frames
------------------------------------------------------------------------

   This section of the file contains the definitions of the rover
   and rover structures frames.

   DISCLAIMER: The origin of the frames specified in the following
   definitions are not implemented. The ``true'' origin of all frames
   is in the center of the RM_ROVER frame, the center of which
   is defined by the position given by the SPK (ephemeris) kernel in
   use.


RM Rover Frames
--------------------------------------

   According to [4] the RM rover reference frame -- RM_ROVER -- is
   defined as follows:

      -  +Z axis, lies vertically upwards, antiparallel to the gravity vector
         when the rover is on flat, horizontal terrain;

      -  +X axis lies towards the front of the Rover in the nominal direction
         of travel;

      -  +Y axis completes the right-handed frame;

      -  the origin of this frame at the intersection of the following planes:

            - A plane 252.5 mm aft (i.e. negative offset in +X axis) and
              parallel to Plane 1 (the plane formed by the nominal bolt axes
              of the front body HDRMs);

            - Plane 2, the plane of symmetry between the front body HDRM
              nominal bolt axes - equivalent to the rover body mid-plane;

            - A plane 30 mm below and parallel to Plane 3 (the plane of the
              rover body base).


   These diagrams illustrate the RM_ROVER frame:

   -Y Rover side view:
   -------------------

                .-.
                | |
                | |
                |_|
                |_|
                 |
                 |
                 |
                 |
                 |
                 |
                 |
                 |
                 |        +Zrm
                _|_         ^
               |   |        |
         -------------------|-------------------------------------
               ,------------|------------.
               |            |             |
            ___|            |             |
           /   | +Xrm       |             |
           \___|__<---------o ____________.         +Yrm is out the page
                | |        +Yrm          | |
        __------/ \-----__               / \.__
       |  |-----\_/----|  |              \__.  |
      .|  |.          .|  |.               .|  |.
     / |__| \        / |__| \             / |__| \
     \      /        \      /             \      /
      `-..-'          `-..-'               `-..-'


   +Z Rover side view:
   -------------------

          .-------------------------..-------------------------.
    .-----|                         ||                         |
    | .--.|                         ||                         |
    | |  ||                         ||                         |
    `-|  |'-------------------------''-------------------------'
     .------------------.
     |                  '----------.
     '----.                         |
       |  |                         |
       |  |    .-.                 .'
       |  |    | +Xrm      +Zrm    |
       |  |    | |<---------o      |
       |  |    | |          |      |
       |  |    '-'          |       '.
       '--|                 |        |            +Zrm is out of the page
          '-----.         .-|--------'
                '---------' v
          .--------------- +Yrm ----..-------------------------.
          |                         ||                         |
          |                         ||                         |
          |                         ||                         |
          '-------------------------''-------------------------'

   +X Rover side view (drill in stowed position):
   ----------------------------------------------


                    o-o-=O===O--o
                       |o|___|
                          _\/
                         |_|_
                           |_|
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                           _|_ +Zrm
                          |   | ^
      --------------------------|-------------------------
             |   |          |   |  |   |      |  |
             '---|          |   |  | 0 |   .--'--'
                 '--.-----------|----------|
                 .--|           |          |---.
            .-.  |============= o--------> ====|  .-.
           |___|=|            +Xrm |   |+Yrm   |=|___|
           |.-.                                   .-.|
           || |                                   | ||    +Xrm is out of the
           `| |                                   | |'    page
            '_'                                   '_'
          ~~~~~~~~                             ~~~~~~~~


   Since the RM bus attitude with respect to an inertial frame is provided
   by a C-kernel (see [3] for more information), this frame is defined as
   a CK-based frame.

   These sets of keywords define the RM_ROVER frame:

   \begindata

      FRAME_RM_ROVER                   = -174000
      FRAME_-174000_NAME               = 'RM_ROVER'
      FRAME_-174000_CLASS              =  3
      FRAME_-174000_CLASS_ID           = -174000
      FRAME_-174000_CENTER             = -174000
      CK_-174000_SCLK                  = -174
      CK_-174000_SPK                   = -174
      OBJECT_-174_FRAME                = 'RM_ROVER'

   \begintext


RM Rover Cruise Frame
----------------------------------------------------------------------------

    The RM Rover Cruise frame -- RM_LANDER_CRUISE -- is a special
    frame used in cruise in order to "attach" the RM rover to CM
    during the cruise phase, it is defined as follows (from [4]):

      - +Z axis is parallel to CM's +Z axis;

      - +X axis is parallel to CM's +X axis;

      - +Y axis completes the right-handed frame;

      - the origin of this frame is the RM/SP interface
        point on the separation plane.


    This frame is defined a fixed-offset frame.

    Since the SPICE frames subsystem calls for specifying the reverse
    transformation--going from the instrument or structure frame to the
    base frame--as compared to the description given above, the order of
    rotations assigned to the TKFRAME_*_AXES keyword is also reversed
    compared to the above text, and the signs associated with the
    rotation angles assigned to the TKFRAME_*_ANGLES keyword are the
    opposite from what is written in the above text.

    \begindata

       FRAME_RM_ROVER_CRUISE            = -174001
       FRAME_-174001_NAME               = 'RM_ROVER_CRUISE'
       FRAME_-174001_CLASS              =  4
       FRAME_-174001_CLASS_ID           = -174001
       FRAME_-174001_CENTER             = -174000
       TKFRAME_-174001_RELATIVE         = 'CM_SPACECRAFT'
       TKFRAME_-174001_SPEC             = 'ANGLES'
       TKFRAME_-174001_UNITS            = 'DEGREES'
       TKFRAME_-174001_AXES             = (    1,     3,       1  )
       TKFRAME_-174001_ANGLES           = (  0.0,   0.0,     0.0  )

    \begintext


RM Deployable Mast, Pan & Tilt Mechanism and Payload Bracket Frames
----------------------------------------------------------------------------

   The RM Deployable Mast Assembly (RM_MAST) accommodates the Pan & Tilt
   Mechanism and the PanCam, NavCam and ISEM instruments, The DMA frame is
   positioned at the base of the mast. The frame RM_MAST_ZERO has its origin at
   the base of the mast and its axes are nominally co-aligned to the RM_ROVER
   frame axes (within knowledge alignment errors), since the mast needs to be
   deployed and can be rotated, this rotation is incorporated by the
   RM_MAST frame [12]. When the mast is folded it is 'resting' on the
   rover body.

   The Mast Pan & Tilt Rotation Mechanism (PTR) is the structure on top of the
   Rover Module mast that accommodates the Stereo Bench where PanCam and the
   NAVCAMs re placed. A series of reference frames are defined in order to
   capture the Pan and Tilt rotations of the structure.

   The Pan & Tilt Zero Rotation frame -- RM_PTR_ZERO -- has the origin at the
   top of the mast, just below the actual pan & tilt mechanism. The axes are
   nominally aligned to the RM_LANDER frame with null pan & tilt; however the
   RM_PTR_ZERO frame can take into account possible deformations of the mast
   and knowledge alignment errors. The frame is defined as follows:

      -  +Y axis is parallel to tilt axis of rotation, and nominally lies
         horizontally sideways

      -  +Z axis, is parallel to the pan axis of rotation, and nominally
         lies vertically upwards;

      -  +X axis completes the right-handed frame;

      -  the origin of this frame is defined as the intersection of the tilt
         axis of rotation and a line intersecting the axis which lies normal
         to both the tilt axis and pan axis. This intersection is assumed
         fixed with respect to the top of the mast. and allows for the
         eventually of the tilt axis and pan axis not intersecting.


   In order to incorporate the pan & tilt rotations, the Pan & Tilt Rotating
   frame is defined -- RM_PTR -- , it is identical to the RM_PTR_ZERO frame
   (i.e. a fixed translation in the Rover Body frame), but rotating with the
   direction of the Pan & Tilt. Pan and Tilt are then defined by the 3-2-1
   Euler rotation, where pan is the first rotation (about the +Z axis), tilt is
   the second rotation (about the +Y axis), and there is no possibility of
   rotation about the +X axis.

   The Payload Bracket frame -- RM_PB -- is fixed relative to the payload
   bracket (which itself is fixed to the tilt actuator rotor). The orientation
   of this frame is not fixed with respect to the RM_LANDER frame, but it
   changes, e.g. when the Deployable Mast Assembly is deployed or when, while
   in deployed configuration, the mast bends or either the pan and tilt angles
   are modified. The frame is defined as follows:

      -  +X axis is perpendicular to the +Y axis and is parallel to the
         interface plane between the payload bracket and the PanCam;

      -  +Y axis is co-aligned with the tilt axis;

      -  +Z axis completes the right-handed frame;

      -  the origin of this frame is the intersection of the pan and tilt axes,
         therefore it is located within the tilt actuator, along the axis of
         the tilt actuator shaft where this intersects with the pan axis.


   This diagram illustrates the RM_MAST_ZERO, RM_MAST, RM_PTR_ZERO, RM_PTR and
   RM_PB frames:

   +X Rover side view (with fully deployed mast):
   ----------------------------------------------

                        +Zptr0
                           ^
                           |
                    o-o-=O=|=O--o
                       |o|_|_|
                          _|/
                         |_|_
                           o------------> +Yptr0
                        +Xptr0
                            |
                            |
                          +Zmast,+Xmast0
                            ^
                            |
                            |
                            |
                            |
                           _|_ +Zrm
                          | o----------> +Ymast,+Ymast0
      ------------------ +Xmast ---------------------------
             |   |          |   ^ +Zrm |      |  |
             '---|          |   |  | 0 |   .--'--'
                 '--.-----------|----------|
                 .--|           |          |---.
            .-.  |============= o--------> ====|  .-.
           |___|=|            +Xrm |   | +Yrm   |=|___|
           |.-.                                   .-.|
           || |                                   | ||    +Xrm, +Xmast and
           `| |                                   | |'    +Zptr0 are out of
            '_'                                   '_'     the page. +Zmast0 is
          ~~~~~~~~                             ~~~~~~~~   into the page.


   -Y Rover side view:
   -------------------

                .-.
                | |
                | |
                |_|
                |_|
                 |
                 |
                 |
                 |
                 |
                 |
                 |
                 |
                 |        +Zrm
                _|_         ^
               |   |        |
         -------------------|-------------------------------------
               ,------------|------------.
               |            |             |
            ___|            |             |
           /   | +Xrm       |             |
           \___|__<---------o ____________.         +Yrm is out of the page
                | |        +Yrm          | |
        __------/ \-----__               / \.__
       |  |-----\_/----|  |              \__.  |
      .|  |.          .|  |.               .|  |.
     / |__| \        / |__| \             / |__| \
     \      /        \      /             \      /
      `-..-'          `-..-'               `-..-'



   These sets of keywords define the Pan & Tilt Mechanism and Rotation and
   Payload Bracket frames:

   \begindata

      FRAME_RM_MAST_ZERO              = -174010
      FRAME_-174010_NAME              = 'RM_MAST_ZERO'
      FRAME_-174010_CLASS             =  4
      FRAME_-174010_CLASS_ID          = -174010
      FRAME_-174010_CENTER            = -174010
      TKFRAME_-174010_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174010_SPEC            = 'ANGLES'
      TKFRAME_-174010_UNITS           = 'DEGREES'
      TKFRAME_-174010_AXES            = (     3,      1,     2 )
      TKFRAME_-174010_ANGLES          = (   0.0,   90.0,   0.0 )

      FRAME_RM_MAST                   = -174011
      FRAME_-174011_NAME              = 'RM_MAST'
      FRAME_-174011_CLASS             =  3
      FRAME_-174011_CLASS_ID          = -174011
      FRAME_-174011_CENTER            = -174010
      CK_-174011_SCLK                 = -174
      CK_-174011_SPK                  = -174

      FRAME_RM_PTR_ZERO               = -174012
      FRAME_-174012_NAME              = 'RM_PTR_ZERO'
      FRAME_-174012_CLASS             =  4
      FRAME_-174012_CLASS_ID          = -174012
      FRAME_-174012_CENTER            = -174012
      TKFRAME_-174012_RELATIVE        = 'RM_MAST'
      TKFRAME_-174012_SPEC            = 'ANGLES'
      TKFRAME_-174012_UNITS           = 'DEGREES'
      TKFRAME_-174012_AXES            = (     3,      1,     2 )
      TKFRAME_-174012_ANGLES          = (   0.0,    0.0,   0.0 )


      FRAME_RM_PTR                    = -174013
      FRAME_-174013_NAME              = 'RM_PTR'
      FRAME_-174013_CLASS             =  3
      FRAME_-174013_CLASS_ID          = -174013
      FRAME_-174013_CENTER            = -174012
      CK_-174013_SCLK                 = -174
      CK_-174013_SPK                  = -174

      FRAME_RM_PB                     = -174014
      FRAME_-174014_NAME              = 'RM_PB'
      FRAME_-174014_CLASS             =  4
      FRAME_-174014_CLASS_ID          = -174014
      FRAME_-174014_CENTER            = -174012
      TKFRAME_-174014_RELATIVE        = 'RM_PTR'
      TKFRAME_-174014_SPEC            = 'ANGLES'
      TKFRAME_-174014_UNITS           = 'DEGREES'
      TKFRAME_-174014_AXES            = (      1,      2,     3 )
      TKFRAME_-174014_ANGLES          = (    0.0,    0.0,   0.0 )

   \begintext


RM NavCam Frames
----------------------------------------------------------------------------

   The Navigation Cameras reference frame -- RM_NAVCAM_BASE --, where the
   terrain stereo reconstruction (for Navigation) occurs, is attached to the
   cameras stereo bench, the axes are aligned to the PTR frame (moving
   according to pan & tilt mechanisms rotations) and is defined as follows:

      -  +X axis is defined as the projection of the cameras optical axis on
         the plane perpendicular to the +Y axis;

      -  +Y axis is in the direction from the right camera optical centre to
         the left camera optical centre;

      -  +Z axis completes the right-handed frame;

      -  The origin is a fixed translation from the PTR frame.


   These sets of keywords define the NavCam frames:

   \begindata

      FRAME_RM_NAVCAM_BASE            = -174020
      FRAME_-174020_NAME              = 'RM_NAVCAM_BASE'
      FRAME_-174020_CLASS             =  4
      FRAME_-174020_CLASS_ID          = -174020
      FRAME_-174020_CENTER            = -174020
      TKFRAME_-174020_RELATIVE        = 'RM_PB'
      TKFRAME_-174020_SPEC            = 'ANGLES'
      TKFRAME_-174020_UNITS           = 'DEGREES'
      TKFRAME_-174020_AXES            = (      1,      2,     3 )
      TKFRAME_-174020_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_NAVCAM_L               = -174021
      FRAME_-174021_NAME              = 'RM_NAVCAM_L'
      FRAME_-174021_CLASS             =  4
      FRAME_-174021_CLASS_ID          = -174021
      FRAME_-174021_CENTER            = -174021
      TKFRAME_-174021_RELATIVE        = 'RM_NAVCAM_BASE'
      TKFRAME_-174021_SPEC            = 'ANGLES'
      TKFRAME_-174021_UNITS           = 'DEGREES'
      TKFRAME_-174021_AXES            = (      1,      2,     3 )
      TKFRAME_-174021_ANGLES          = (    0.0,  -90.0,   0.0 )

      FRAME_RM_NAVCAM_R               = -174022
      FRAME_-174022_NAME              = 'RM_NAVCAM_R'
      FRAME_-174022_CLASS             =  4
      FRAME_-174022_CLASS_ID          = -174022
      FRAME_-174022_CENTER            = -174022
      TKFRAME_-174022_RELATIVE        = 'RM_NAVCAM_BASE'
      TKFRAME_-174022_SPEC            = 'ANGLES'
      TKFRAME_-174022_UNITS           = 'DEGREES'
      TKFRAME_-174022_AXES            = (      1,      2,     3 )
      TKFRAME_-174022_ANGLES          = (    0.0,  -90.0,   0.0 )

   \begintext


LocCam Frames
------------------------------------------------------------------------

   This section of the file contains the definitions of the Localisation
   Cameras (LocCam) instrument frames.

   The Localisation Cameras reference frame -- RM_LOCCAM_BASE --, where the
   terrain stereo reconstruction (for Localisation) occurs, is attached to
   the cameras stereo bench and is defined as follows:

      - +X axis is the the projection of the cameras optical axis on the plane
        perpendicular to the +Y axis;

      - +Y axis is in the direction from the right camera optical centre to the
        left camera optical centre;

      - +Z axis completes the right-handed frame;

      - the origin, is located at the middle of the segment linking the optical
      centres of the left and right localisation cameras.


   The following diagram describes the LocCam frames:

   -Y Rover side view:
   -------------------

                          .-.
                          | |
                          | |
                          |_|
                          |_|
                           |
                           |
                           |
                           |
                +Zloc      |
                   ^       |
                    .      |
                     .     |
                      .    |        +Zrm
                       .  _|_         ^
                        .|   |        |
                   ---- .o +Yloc --------|-------------------------------------
                      .' ,------------|------------.
                    .'   |            |             |
                  .'  ___|            |             |
                <'   /   | +Xrm       |             |
             +Xloc   \___|__<---------o ____________.         +Yrm and +Yloc
                          | |        +Yrm          | |         are out of the
                  __------/ \-----__               / \.__      page.
                 |  |-----\_/----|  |              \__.  |
                .|  |.          .|  |.               .|  |.
               / |__| \        / |__| \             / |__| \
               \      /        \      /             \      /
                `-..-'          `-..-'               `-..-'


   The origin is nominally a fixed translation from the Rover Module frame
   -- RM_ROVER --, and the axes are rotated 18 degrees around the +Y axis of
   the RM_ROVER frame [8]. These sets of keywords define the LocCam frames:


   \begindata

      FRAME_RM_LOCCAM_BASE            = -174030
      FRAME_-174030_NAME              = 'RM_LOCCAM_BASE'
      FRAME_-174030_CLASS             =  4
      FRAME_-174030_CLASS_ID          = -174030
      FRAME_-174030_CENTER            = -174030
      TKFRAME_-174030_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174030_SPEC            = 'ANGLES'
      TKFRAME_-174030_UNITS           = 'DEGREES'
      TKFRAME_-174030_AXES            = (     3,      1,     2 )
      TKFRAME_-174030_ANGLES          = (   0.0,    0.0, -18.0 )

      FRAME_RM_LOCCAM_L               = -174031
      FRAME_-174031_NAME              = 'RM_LOCCAM_L'
      FRAME_-174031_CLASS             =  4
      FRAME_-174031_CLASS_ID          = -174031
      FRAME_-174031_CENTER            = -174031
      TKFRAME_-174031_RELATIVE        = 'RM_LOCCAM_BASE'
      TKFRAME_-174031_SPEC            = 'ANGLES'
      TKFRAME_-174031_UNITS           = 'DEGREES'
      TKFRAME_-174031_AXES            = (      1,      2,     3 )
      TKFRAME_-174031_ANGLES          = (    0.0,  -90.0,   0.0 )

      FRAME_RM_LOCCAM_R               = -174032
      FRAME_-174032_NAME              = 'RM_LOCCAM_R'
      FRAME_-174032_CLASS             =  4
      FRAME_-174032_CLASS_ID          = -174032
      FRAME_-174032_CENTER            = -174032
      TKFRAME_-174032_RELATIVE        = 'RM_LOCCAM_BASE'
      TKFRAME_-174032_SPEC            = 'ANGLES'
      TKFRAME_-174032_UNITS           = 'DEGREES'
      TKFRAME_-174032_AXES            = (      1,      2,     3 )
      TKFRAME_-174032_ANGLES          = (    0.0,  -90.0,   0.0 )

   \begintext


RM Drill Frames
----------------------------------------------------------------------------

   The Drill is in charge of extracting the samples from the Mars subsurface
   and delivering them to the Core Sample Transport Mechanism (CSTM), such
   that they are transported inside the Analytical Laboratory Drawer (ALD),
   where they are processed and analysed by the scientific instruments.
   The drill implements a multi-rod concept to allow drilling and sample
   collection down to 2 meter depth.

   The drill string is composed, at its maximum length, of a drill tool
   (with sample collection capability) and three extension rods. Three
   ``main'' active joints are needed to accomplish the Drill operations:

       - Positioner Translation Joint, which allows all the translational
         movements of the Drill box.

       - Positioner Rotational Joint, which allows all the rotational
         movements of the Drill box.

       - Drilling Joint, which groups several mechanisms devoted to the drill
         rod insertion in the terrain (drilling/coring).


RM Drill Positioner frames:
~~~~~~~~~~~~~~~~~~~~~~~~~~~

   The Drill Positioner Fixed frame  -- RM_DRILL_POS_FIX -- is placed on the
   Rover to Drill Positioner interface and is invariant to the Drill
   Positioner Translational and Rotational mechanisms position. It is
   defined as follows:

      - +X axis is nominally co-aligned with the RM_ROVER +X axis frame;

      - +Y axis is nominally co-aligned with the RM_ROVER +Y axis frame;

      - +Z axis completes the right-handed frame;

      - the origin is defined as the intersection of the Drill Positioner
        Rotational Joint axis and the Drill Translational Joint axis,
        assuming the Drill Positioner in stowed configuration, this is
        incorporated by the RM_DRILL_POS_FIX body.


   The Drill Postioner Moving frame -- RM_DRILL_POS_MOV -- is placed on the
   Rover to Drill Positioner interface and moves according to the Drill
   Positioner Translational (TRA) and Rotational (ROT) mechanisms position.
   This frame is coincident with RM_DRILL_POS_FIX frame when the Drill is in
   stowed configuration (TRA=0 mm; ROT=0 deg), and follows the Drill Positioner
   Joints motion rototranslating according to Drill Positioner Translational
   (TRA) and Rotational (ROT) mechanisms positions. The frame can be defined
   as follows:

      - +Y axis is co-aligned with the longitudinal direction of the drill
        and points towards the apperture of the drill;

      - +Z axis is rotated a positive rotational (ROT) angle from the +Z axis
        of the RM_DRILL_POS_FIX frame around the +X axis of the
        RM_DRILL_POS_FIX frame;

      - +X axis completes the right-handed frame;

      - the origin is defined as the intersection of the Drill Positioner
        Rotational Joint axis and the Drill Translational Joint axis,
        with a longitudinal offset w.r.t. the origin of RM_DRILL_POS frame
        along the +Y axis defined by the Transitional position (TRA).


   +X Rover side view (drill in stowed position):
   ----------------------------------------------


                    o-o-=O===O--o
                       |o|___|
                          _\/
                         |_|_
                           |_|
                            |
                            |
                            |
                            |
                            |
                            |
                            |      +Zpdf
                            |        ^
                            |        |
                           _|_ +Zrm  |
                          |   | ^    |
      --------------------------|----|---------------------
             |   |          |   |  | | |        |  |
             '---|          |   |  | o-----------> +Ydpf
                 '--.-----------|----------|
                 .--|#DRILL#BOX#|##########|---.
            .-.  |============= o--------> ====|  .-.
           |___|=|            +Xrm |   |+Yrm   |=|___|
           |.-.                                   .-.|
           || |                                   | ||    +Xrm is out of the
           `| |                                   | |'    page
            '_'                                   '_'
          ~~~~~~~~                             ~~~~~~~~


   The following diagrams describe the different operational positions of the
   drill positioner frames for different Translational (TRA) and Rotational
   (ROT) mechanisms positions (Units in mm and degrees):

      1. STOWED POSITION                2. LIFTING PHASE
         [TRA=0, ROT=0]                    [TRA=130, ROT=0]

                                                       ^ +Zdpm
                   +Zdpf, +Zdpm                        |
                  | ^ |                              | | |
                  | | |                          +Zdpf ^ |     Ydpm
                  | | |                  .-------------o------->
                  | | |  +Ydpf,+Ydpm     |_____________|_____| +Ydpf
      .-------------o------->                        | o------->
      |___________________|                          |   |
                  |   |                              |   |


      3. VERTICAL ALIGNMENT             4. LOWERING PHASE (drilling position)
         [TRA=130, ROT=90]                 [TRA=-240, ROT=90]
               __
              |  |
              |  |
              |  |
              |  |
              |  | +Zdpf   +Zdpm                 __
              |  || o------->                   |  ||  +Zdpf
              |  || ^ |                         |  || ^ |
              |__|| | |                         |  || | |
                  | | | +Ydpf                   |  || | | +Ydpf
                  | o------->                   |  || o------->
                  | | |                         |  ||   |
                  | v |                         |  ||   |
                   +Ydpm                        |  |  o-------> +Zdpm
                                                |__|  |
                                                      |
                                                      v +Ydpm


      3. LIFTING PHASE (after sample)    4. HORIZONTAL ALIGNMENT (before sample
         collection) [TRA=130, ROT=90]      discharge) [TRA=130, ROT=180]
               __
              |  |
              |  |
              |  |
              |  |
              |  | +Zdpf   +Zdpm           .--------------------->
              |  || o------->              |_____________^_____|
              |  || ^ |                          <-------o +Zdpf
              |__|| | |                       +Ydpm    | | |
                  | | | +Ydpf                          | | | +Ydpf
                  | o------->                          | o------->
                  | | |                                | | |
                  | v |                                | v |
                   +Ydpm                              +Zpm


      5. SAMPLE DISCHARGE PHASE (from drill tip to CSTM container)
         [TRA=130, ROT=150]

                       .'\
                     .'  .'
                   .'  .'
                 .'  .'
               .'  .'
             .'  .'o +Zdpf
              \.'.'|\|
               .'| | \ +Ydpf
             .'  | o--\---->
           <'    |   | v
         +Ypdm   |   | +Zpdm


   +X Rover side view (drill in discharge phase):
   ----------------------------------------------


                    o-o-=O===O--o
                       |o|___|
                          _\/
                         |_|_
                           |_|
                            |
                            |
                            |
                            |
                            |
                            |                 .
                            |             . '  \
                            |         . '       \
                           _|_    . ' ^+dZpf. '
                          |   . '     | . '
      --------------------. '       . | |-------------------
             |   |    . '       . ' | | |     |  |
             '---|    \     . ' ^   | o------> +Ydpf
                 '--.  \. '     |+Zrm   | |
                 .--'           |   |   | ''---.
            .-.  |============= o-----> =======|  .-.
           |___|=|            +Xrm  |  +Yrm    |=|___|
           |.-.                                   .-.|
           || |                                   | ||    +Yrm and +Ydpf is
           `| |                                   | |'    out of the page
            '_'                                   '_'
          ~~~~~~~~                             ~~~~~~~~


   These sets of keywords define the Drill Positioner frames:

   \begindata

      FRAME_RM_DRILL_POS_FIX          = -174040
      FRAME_-174040_NAME              = 'RM_DRILL_POS_FIX'
      FRAME_-174040_CLASS             =  4
      FRAME_-174040_CLASS_ID          = -174040
      FRAME_-174040_CENTER            = -174040
      TKFRAME_-174040_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174040_SPEC            = 'ANGLES'
      TKFRAME_-174040_UNITS           = 'DEGREES'
      TKFRAME_-174040_AXES            = (      1,      2,     3 )
      TKFRAME_-174040_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_DRILL_POS_MOV          = -174041
      FRAME_-174041_NAME              = 'RM_DRILL_POS_MOV'
      FRAME_-174041_CLASS             =  3
      FRAME_-174041_CLASS_ID          = -174041
      FRAME_-174041_CENTER            = -174041
      CK_-174041_SCLK                 = -174
      CK_-174041_SPK                  = -174041

   \begintext


Drill Tip frames:
~~~~~~~~~~~~~~~~~

   The Drill Tip Fixed frame -- RM_ROVER_DRILL_TIP_FIX -- is placed on the
   Rover Drill Tip (when fully retracted) and is invariant to the Drill Rod
   position. It is defined as follows:

      - +X axis is nominally parallel to the +X axis of the
        RM_DRILL_POS_FIX frame;

      - +Y axis, is nominally parallel to the +Y axis of the
        RM_DRILL_POS_MOV frame;

      - +Z axis completes the right-handed frame;

      - the origin is defined as the tip of the Drill Rod assuming that the
        Drill Rod is fully retracted.


   The following diagrams show the RM_ROVER_DRILL_TIP_FIX in some of the drill
   positions:


           SAMPLE DISCHARGE PHASE              LOWERING PHASE
            [TRA=130, ROT=150]               [TRA=-240, ROT=90]
                                                   __
                               .'\                |  ||  +Zdpf
                             .'  .'               |  || ^ |
                           .'  .'                 |  || | |
                         .'  .'                   |  || | | +Ydpf
                       .'  .'                     |  || o------->
                     .'  .'o +Zdpf                |  ||   |
                      o.'.'|\|                    |  ||   |
                    .' .'. | \ +Ydpf              |  |  o-------> +Zdpm
            +Ydtf <' .'   'o--\---->              |o---------> +Zdtf
                   <'    | '.| v +Zpdm             |    |
                 +Ypdm   |   '> +Zdtf              |    v +Ydpm
                                                   |
                                                   v +Ydtf


   The Drill Tip Moving frame -- RM_ROVER_DRILL_TIP_MOV -- is attached to the
   Rover Drill Tip and moves according to the Drill Translational Joint
   (DRILL). Its orientation is defined by the rotation of the drill tip around
   the +Y axis of the RM_ROVER_DRILL_TIP_FIX frame. The origin is coincident
   with the RM_ROVER_DRILL_TIP_FIX frame when the Drill Rod is fully retracted
   (DRILL = 0mm). When the Drill Translational Joint mechanism moves, the
   RM_ROVER_DRILL_TIP_MOV frame rigidly translates with respect to the +X axis
   of the RM_ROVER_DRILL_TIP_FIX frame a DRILL distance in mm. Note that the
   Drill Translational Joint is composed by a group several mechanisms devoted
   to the drill rod insertion in the terrain (drilling/coring). It is defined
   as follows:

      - +Y axis, is nominally parallel to the +Y axis of the
        RM_ROVER_DRILL_TIP_FIX;

      - +Z axis, is rotated the drill tip rotation with respect to the
        +Z axis of the RM_ROVER_DRILL_TIP_FIX frame;

      - +X axis completes the right-handed frame;

      - the origin is defined as the tip of the Drill Rod.


   The following diagram describes the Drill tip frames:


   +X Rover side view (drilling position):
   ---------------------------------------

                                     [TRA=-240, ROT=90, DRILL=150]
                    o-o-=O===O--o
                       |o|___|
                          _\/
                         |_|_
                           |_|
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                           _|_        ^+dZpf
                          |   |       |
      -------------------------.----.-|----------------------
             |   |             |    | | |     |  |
             '---|             |^   | o------> +Ydpf
                 '--.          ||+Zrm   | |
                 .--'          ||   |   | ''---.
            .-.  |============= o-----> =======|  .-.
           |___|=|             |    |  +Yrm    |=|___|
           |.-.                |    |              .-.|
           || |                |    |             | ||    +Yrm, +Ydpf +Ydtm
           `| |                |    |             | |'    are out of the page
            '_'                |    |             '_'
        ~~~~~~~~~~~~~~~~~~~~~~~'----'~~~~~~~~~~~~~~~~~~~~   __
                                 ||                         ^
                                 ||                         |
                                 ..                         | DRILL
                                 ..                         | ~1.5m
                                                            |
                                 ..                         |
                                 ..                         |
                                 ||                         v
                                 \/  Dril                   --
                                  o-------> +Zdtm
                                  |
                                  |. drill tip rotation
                                 <-'
                                  |
                                  v +Ydtm


   These sets of keywords define the Drill tip frames:

   \begindata

      FRAME_RM_DRILL_TIP_FIX          = -174042
      FRAME_-174042_NAME              = 'RM_DRILL_TIP_FIX'
      FRAME_-174042_CLASS             =  4
      FRAME_-174042_CLASS_ID          = -174042
      FRAME_-174042_CENTER            = -174042
      TKFRAME_-174042_RELATIVE        = 'RM_DRILL_POS_MOV'
      TKFRAME_-174042_SPEC            = 'ANGLES'
      TKFRAME_-174042_UNITS           = 'DEGREES'
      TKFRAME_-174042_AXES            = (      1,      2,     3 )
      TKFRAME_-174042_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_DRILL_TIP_MOV          = -174043
      FRAME_-174043_NAME              = 'RM_DRILL_TIP_MOV'
      FRAME_-174043_CLASS             =  3
      FRAME_-174043_CLASS_ID          = -174043
      FRAME_-174043_CENTER            = -174043
      CK_-174043_SCLK                 = -174
      CK_-174043_SPK                  = -174043

   \begintext


ALD Frames
------------------------------------------------------------------------

   The Rover will collect samples with the drill and deliver them to the
   Analytical Laboratory Drawer (ALD) in the body of the rover, via the
   sample delivery window. Within the ALD the samples will be analysed
   with an infrared spectrometer (MicrOmega), a raman spectrometer (RLS),
   and the Mars organics molecule analyser (MOMA) instrument.

   The samples will be collected by a drill and delivered to the Core Sample
   Handling System (CSHS) component of the SPDS, which is made up of the Core
   Sample Transportation Mechanism (CSTM) and the Blank Sample Dispenser (BSD).
   The CSTM will carry the samples into the ALD, where they will be released
   through a trapdoor into the Crushing Station (CS) and be reduced to powder.
   The BSD will deliver 'blank' samples brought from Earth for verification
   purposes. The powdered samples then pass from the CS to

   The Powder Sample Dosing and Distribution System (PSDDS) delivers a measured
   quantity of powder into the Refillable Container (RC) that is mounted on the
   Powdered Sample Handling System (PSHS). The PSHS is a carousel that moves
   the samples to various stations for processing and analysis. One station is
   equipped with a fixed 'scraper', the Powder Sample Flattening Mechanism
   (PSFM), which levels the surface of the powdered sample in the RC. Another
   station houses the Refillable Container Cleaning Mechanism (RCCM), while
   further stations will have instruments to examine the surface of the samples
   and pyrolysis ovens to feed the MOMA GC-MS.


ALD CSTM Frames
~~~~~~~~~~~~~~~

   The CSTM is placed diagonally on top of the upper ALD plate to reach the
   sample handover point of the drill by opening the ALD door. It then retracts
   after having received the sample from the drill in its sample container.

   The ALD Core Sample Transportation Mechanism (CSTM) Fixed frame
   -- RM_ALD_CSTM_FIX -- is attached to the CSTM and invariant to the CSTM
   mechanism position. It is defined as follows:

      - +Z axis is nominally parallel to the +Z axis of the RM_ROVER frame;

      - +X axis is the motion direction of the CSTM mechanism
        (from close to open);

      - +Y axis completes the right-handed frame;

      - the origin is located in the geometrical centre of the CSTM sample
        receptacle, assuming the CSTM mechanism fully retracted. It is a
        fixed translation from the RM_ROVER.

   The ALD CSTM Fixed frame axes are rotated around the +Z axis of the
   ROVER_RM frame a nominal angle of -26.5 degrees [10].

   The ALD CTSM Moving frame -- RM_ALD_CSTM_MOV -- is is attached to the Core
   Sample Transport Mechanism and moves according to CSTM mechanism position.
   Its orientation is the same as ACF frame and its origin is coincident with
   ACF frame when the CSTM mechanism is fully retracted (0mm). When the CSTM
   mechanisms moves (up to 300mm), the ACM frame rigidly translates with
   respect to the RM_ALD_CSTM_FIX frame along the +X axis RM_ALD_CSTM_FIX.

   This diagram illustrate the RM_ALD_CSTM_FIX frame:

   +Z Rover side view:
   -------------------

                       .-------------------------..-------------------------.
                 .-----|                         ||                         |
                 | .--.|                         ||                         |
                 | |  ||                         ||                         |
                 `-|  |'-------------------------''-------------------------'
                  .------------------.
         +Xcstm   |                  '----------.
              <.  '----.                         |
                 ' .|  |+Zcstm                   |
                     ' o    .-.                 .'
                    | .|    | +Xrm      +Zrm    |
                     ' |    | |<---------o      |
                    '  |    | |          |      |
          +Ycstm  <'|  |    '-'          |       '.
                    '--|                 |        |   +Zrm and +Zcstm are
                       '-----.         .-|--------'    out of the page.
                             '---------' v
                       .--------------- +Yrm ----..-------------------------.
                       |                         ||                         |
                       |                         ||                         |
                       |                         ||                         |
                       '-------------------------''-------------------------'


   These sets of keywords define the ALD CSTM frames:

   \begindata

      FRAME_RM_ALD_CSTM_FIX           = -174052
      FRAME_-174052_NAME              = 'RM_ALD_CSTM_FIX'
      FRAME_-174052_CLASS             =  4
      FRAME_-174052_CLASS_ID          = -174052
      FRAME_-174052_CENTER            = -174052
      TKFRAME_-174052_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174052_SPEC            = 'ANGLES'
      TKFRAME_-174052_UNITS           = 'DEGREES'
      TKFRAME_-174052_AXES            = (      1,      2,     3 )
      TKFRAME_-174052_ANGLES          = (    0.0,    0.0,  26.5 )

      FRAME_RM_ALD_CSTM_MOV           = -174053
      FRAME_-174053_NAME              = 'RM_ALD_CSTM_MOV'
      FRAME_-174053_CLASS             =  4
      FRAME_-174053_CLASS_ID          = -174053
      FRAME_-174053_CENTER            = -174053
      TKFRAME_-174053_RELATIVE        = 'RM_ALD_CSTM_FIX'
      TKFRAME_-174053_SPEC            = 'ANGLES'
      TKFRAME_-174053_UNITS           = 'DEGREES'
      TKFRAME_-174053_AXES            = (      1,      2,     3 )
      TKFRAME_-174053_ANGLES          = (    0.0,    0.0,   0.0 )

   \begintext


ALD PSDDS and PSHS Frames
~~~~~~~~~~~~~~~~~~~~~~~~~

   The PSDDS collects the crushed samples in its sample containers and
   distributes the sample powder to the receptacles placed on the PSHS.

   The PSHS with its carousel transports the powdered sample received by the
   PSDDS by rotation to the ports of the optical instruments of the ALD namely
   MicrOmega, RLS and MOMA LD-MS.

   The Powder Sample Dosing and Distribution System (PSDDS) and the Powdered
   Sample Handling System (PSHS, the carousel) frames are defined solely to
   provide the rotation angle of their mechanisms. For PSDDS the angle ranges
   from 0 to 340.06 degrees and provides the position of the POSITIONER whereas
   for PSHS the angles ranges from 0 to 345 degrees and provides the position
   of the CAROUSEL. For both zero position is equivalent to 0 degrees.
   Because of this for both structures a FIXED and a MOVING frame are defined;
   the MOVING frame incorporates the rotation being defined as a CK-based
   frame.

   The ALD PSDDS Fixed frame -- RM_ALD_PSDDS_FIX -- is attached to the Powder
   Sample Dosing and Distribution System, is invariant to the PSDDS
   mechanism position and is parallel to the RM_ROVER frame.
   It is defined as follows:

      - +X axis is nominally co-aligned with the RM_ROVER +X axis frame;

      - +Y axis is nominally co-aligned with the RM_ROVER +Y axis frame;

      - +Z axis completes the right-handed frame;

      - The origin is located in the geometrical centre of the PSDDS,
        defined as the intersection of the PSDDS mechanism rotation axis and
        the PSDDS upper panel (perpendicular to the RM_ROVER +Z axis).


   The ALD PSDDS Moving frame -- RM_ALD_PSDDS_MOV -- is attached to the
   Powder Sample Dosing and Distribution System and moves according to the
   PSDDS mechanism rotation. Its origin is coincident with the
   RM_ALD_PSDDS_FIX frame, and its orientation is the same when the
   PSDDS mechanism is in zero position (PSDDS = 0deg). When the PSDDS
   mechanisms moves, the frame rotates around the +Z axis of the
   RM_ALD_PSDDS_MOV fame.

   The ALD PSHS Fixed frame -- RM_ALD_PSHS_FIX -- is attached to the Powder
   Sample Handiling System and is invariant to the PSHS mechanism position.
   It is defined as follows:

      - +X axis is nominally co-aligned with the RM_ROVER +X axis frame;

      - +Y axis is nominally co-aligned with the RM_ROVER +Y axis frame;

      - +Z axis completes the right-handed frame;

      - The origin is located in the geometrical centre of the PSHS, defined
        as the intersection of the PSHS mechanism rotation axis and the PSHS
        upper panel (perpendicular to the RM_ROVER +Z axis).


   The ALD PSHS Moving frame -- RM_ALD_PSHS_MOV -- is attached to the Powder
   Sample Dosing and Distribution System and moves according to the PSHS
   mechanism rotation. Its origin is coincident with the RM_ALD_PSHS_FIX frame,
   and its orientation is the same when the PSDDS mechanism is in zero position
   (PSHS = 0deg). When the PSHS mechanisms moves, the frame rotates around the
   +Z axis of the RM_ALD_PSHS_MOV fame.

   These sets of keywords define the ALD PSDDS and PSHS frames:

   \begindata

      FRAME_RM_ALD_PSDDS_FIX          = -174055
      FRAME_-174055_NAME              = 'RM_ALD_PSDDS_FIX'
      FRAME_-174055_CLASS             =  4
      FRAME_-174055_CLASS_ID          = -174055
      FRAME_-174055_CENTER            = -174055
      TKFRAME_-174055_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174055_SPEC            = 'ANGLES'
      TKFRAME_-174055_UNITS           = 'DEGREES'
      TKFRAME_-174055_AXES            = (      1,      2,     3 )
      TKFRAME_-174055_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_ALD_PSDDS_MOV          = -174056
      FRAME_-174056_NAME              = 'RM_ALD_PSDDS_MOV'
      FRAME_-174056_CLASS             =  3
      FRAME_-174056_CLASS_ID          = -174056
      FRAME_-174056_CENTER            = -174055
      CK_-174056_SCLK                 = -174
      CK_-174056_SPK                  = -174

      FRAME_RM_ALD_PSHS_FIX           = -174058
      FRAME_-174058_NAME              = 'RM_ALD_PSHS_FIX'
      FRAME_-174058_CLASS             =  4
      FRAME_-174058_CLASS_ID          = -174058
      FRAME_-174058_CENTER            = -174058
      TKFRAME_-174058_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174058_SPEC            = 'ANGLES'
      TKFRAME_-174058_UNITS           = 'DEGREES'
      TKFRAME_-174058_AXES            = (      1,      2,     3 )
      TKFRAME_-174058_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_ALD_PSHS_MOV           = -174059
      FRAME_-174059_NAME              = 'RM_ALD_PSHS_MOV'
      FRAME_-174059_CLASS             =  3
      FRAME_-174059_CLASS_ID          = -174059
      FRAME_-174059_CENTER            = -174058
      CK_-174059_SCLK                 = -174
      CK_-174059_SPK                  = -174

   \begintext


Solar Arrays Frames
----------------------------------------------------------------------------

   This section contains the definitions of the Solar Arrays (SA) frames
   as specified in [7].

   The RM has two groups of SA panels, the Right SA and the Left SA. Each
   group consists of two panels (in addition to the panels present on top
   of the RM body): the primary and the secondary panel -- RM_SA1_PRI,
   RM_SA1_SEC and RM_SA2_PRI, RM_SA2_SEC --, these two panels are
   connected by hinges that allow them rotate (and thus be deployed).
   For each panel, the conventions for the hinge deployment axis are the
   following:

      The Primary Hinge deployment axis rotation convention is:

         - Zero angle when the primary panels are in the nominal fully
           deployed position with normal to the Photovoltaic assembly (PVA)
           face parallel to the +Z axis of the RM_ROVER.

         - Positive rotations deploy the primary panels from their stowed
           positions: right side hinges rotate clockwise about +X axis of
           the RM_ROVER frame and left side hinges rotate anticlockwise about
           +X axis of the RM_ROVER using right-hand grip rule.

      The Secondary Hinge deployment axis rotation convention is:

         - Zero angle when the secondary panels are in the nominal
           fully-deployed position with normal to the PVA face parallel
           to the +Z axis of the RM_ROVER.

         - Positive rotations deploy the secondary panels from their stowed
           positions below the primary panels: when the primary panels are
           deployed to -90 degrees the right side secondary hinges rotate
           anticlockwise about +Z axis of the RM_ROVER and left side secondary
           hinges rotate clockwise about +Z axis of the RM_ROVER using
           right-hand grip rule.

   Please note that all the rotations range from -180 to 0 degrees (stowed
   to fully deployed).

   For each group three reference frames are defined, a zero one that is
   parallel to the Rover Body frame, a primary for the pimary array of the
   group and a secondary for the secondary array of each group the frames
   are defined hereafter.

   The Solar Array 1 and 2 zero frames -- RM_SA1_ZERO, RM_SA2_ZERO -- are
   defined as follows:

      - +X axis is nominally co-aligned with the RM_ROVER +X axis frame;

      - +Y axis is nominally co-aligned with the RM_ROVER +Y axis frame;

      - +Z axis completes the right-handed frame;

      - The origin is located in the geometrical centre of the first hinge
        of the Solar Array (the one closer to the front of the RM).


   The Primary Solar Array 1 frame - RM_SA1_PRI -- frame is defined as
   follows:

      - +Z axis is normal to the PVA face;

      - +X axis is anti-parallel to the +X axis of the RM_ROVER frame and
        is the rotation axis of the primary solar array (Left Primary
        Deployment angle LPD);

      - +Y axis completes the right-handed frame;

      - The origin is located in the geometrical centre of the first hinge
        of the Primary Solar Array (the one closer to the front of the RM).


   The Secondary Solar Array 1 frame - RM_SA1_PRI -- frame is defined as
   follows:

      - +Z axis is normal to the PVA face;

      - +X axis is parallel to the +Y axis of the RM_ROVER frame when
        the primary array is fully deployed and is the rotation axis of the
        secondary solar array (Left Secondary Deployment angle LSD);

      - +Y axis completes the right-handed frame;

      - The origin is located in the geometrical centre of the first hinge
        of the Secondary Solar Array (the one closer to the RM body).


   The Primary Solar Array 2 frame - RM_SA2_PRI -- frame is defined as
   follows:

      - +Z axis is normal to the PVA face;

      - +X axis is parallel to the +X axis of the RM_ROVER frame and
        is the rotation axis of the primary solar array (Right Primary
        Deployment angle RPD);

      - +Y axis completes the right-handed frame;

      - The origin is located in the geometrical centre of the first hinge
        of the Primary Solar Array (the one closer to the front of the RM).


   The Secondary Solar Array 2 frame - RM_SA2_SEC -- frame is defined as
   follows:

      - +Z axis is normal to the PVA face;

      - +X axis is anti-parallel to the +Y axis of the RM_ROVER frame when
        the primary array is fully deployed and is the rotation axis of the
        secondary solar array (Right Secondary Deployment angle RSD);

      - +Y axis completes the right-handed frame;

      - The origin is located in the geometrical centre of the first hinge
        of the Secondary Solar Array (the one closer to the RM body).


   This diagram illustrate solar arrays frames:

   +Z Rover side view:
   -------------------

                                      Right secondary hinge
                                                 '
                                    +Xsa2-sec   ^'
                                                |'
                      .-------------------------|.-------------------------.
                .-----|            +Ysa2-sec    ||                         |
    Right primary .--.|    +Zsa2-zero   <-------o|                         |
      hinge     | |  ||       +Zsa2-pri         |+Zsa2-sec                 |
            - - - - - |' <---------o -----------''-------------------------'
               +Xsa2-pri  ---------|.            '
               +Xsa2-zero          |'----------. '    +Zrm, +Zsa1-zero,
                 '----.            |            |     +Zsa1-pri, +Zsa1-sec,
                   |  |            v  +Ysa2-zero      +Zsa2-zero, +Zsa1-pri
                   |  |    .-.   +Ysa2-pri     .'      and +Zsa1-sec are out
                   |  |    | +Xrm      +Zrm    |       of the page.
                   |  |    | |<---------o      |
                   |  |    |+Ysa2-pri   |      |
                   |  +Ysa2-zero   ^    |       '.
                   '--|            |    |        |   +Zrm and
                      '-----.      |  .-|--------'    out of the page.
            - - - - -       '------|--' v +Yrm
   Left primary       . +Zsa1-pri  o--------> --..-------------------------.
     hinge            | +Zsa1-zero   +Xsa1-pr   |+Zsa1-sec                 |
                      |              +Xsa1-zero o--------> +Ysa1-sec       |
                      |                         ||                         |
                      '-------------------------|'-------------------------'
                                                |'
                                     +Xsa2-sec  v'
                                                 '
                                        Left secondary hinge


   The following frames implement the definitions provided below:

   \begindata

      FRAME_RM_SA1_ZERO               = -174061
      FRAME_-174061_NAME              = 'RM_SA1_ZERO'
      FRAME_-174061_CLASS             =  4
      FRAME_-174061_CLASS_ID          = -174061
      FRAME_-174061_CENTER            = -174062
      TKFRAME_-174061_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174061_SPEC            = 'ANGLES'
      TKFRAME_-174061_UNITS           = 'DEGREES'
      TKFRAME_-174061_AXES            = (      1,      2,     3 )
      TKFRAME_-174061_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_SA1_PRI                = -174062
      FRAME_-174062_NAME              = 'RM_SA1_PRI'
      FRAME_-174062_CLASS             =  3
      FRAME_-174062_CLASS_ID          = -174062
      FRAME_-174062_CENTER            = -174062
      CK_-174062_SCLK                 = -174
      CK_-174062_SPK                  = -174

      FRAME_RM_SA1_SEC                = -174063
      FRAME_-174063_NAME              = 'RM_SA1_SEC'
      FRAME_-174063_CLASS             =  3
      FRAME_-174063_CLASS_ID          = -174063
      FRAME_-174063_CENTER            = -174063
      CK_-174063_SCLK                 = -174
      CK_-174063_SPK                  = -174

      FRAME_RM_SA2_ZERO               = -174064
      FRAME_-174064_NAME              = 'RM_SA2_ZERO'
      FRAME_-174064_CLASS             =  4
      FRAME_-174064_CLASS_ID          = -174064
      FRAME_-174064_CENTER            = -174065
      TKFRAME_-174064_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174064_SPEC            = 'ANGLES'
      TKFRAME_-174064_UNITS           = 'DEGREES'
      TKFRAME_-174064_AXES            = (      1,      2,     3 )
      TKFRAME_-174064_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_SA2_PRI                = -174065
      FRAME_-174065_NAME              = 'RM_SA2_PRI'
      FRAME_-174065_CLASS             =  3
      FRAME_-174065_CLASS_ID          = -174065
      FRAME_-174065_CENTER            = -174065
      CK_-174065_SCLK                 = -174
      CK_-174065_SPK                  = -174

      FRAME_RM_SA2_SEC                = -174066
      FRAME_-174066_NAME              = 'RM_SA2_SEC'
      FRAME_-174066_CLASS             =  3
      FRAME_-174066_CLASS_ID          = -174066
      FRAME_-174066_CENTER            = -174066
      CK_-174066_SCLK                 = -174
      CK_-174066_SPK                  = -174

   \begintext


Locomotion Frames
----------------------------------------------------------------------------

   This section contains the definitions of Rover Locomotion system frames
   as specified in [7].

   It should be noted that the frames described within this section have been
   defined so that when the rover is fully deployed, is in flat terrain and all
   steering angles are zero, these frames are intended as being aligned with
   the Rover Body frame.


Bogie Frame definitions
~~~~~~~~~~~~~~~~~~~~~~~

   There are three bogie fixed frames, that correspond to the three bogie
   bodies: the Left Front Boogie fixed frame -- RM_BOGIE_LF_FIX --, the
   Right Front Bogie fixed frame -- RM_BOGIE_RF_FIX -- and the Middle Rear
   Bogie fixed frame -- RM_BOGIE_MR_FIX --. These frames have a fixed
   transformation with respect to the Rover Body frame. The bogie frames are
   defined as follows:

      - +Z axis points vertically upwards, anti-parallel to the gravity vector.
        It is parallel to +Z axis of the RM_ROVER (within knowledge alignment
        errors) and invariant to pivot angle;

      - +X axis points towards the front of the Rover in the nominal direction
        of travel. It is parallel to +X axis of the RM_ROVER frame (within
        knowledge alignment errors) and is invariant to pivot angle;

      - +Z axis completes the right-handed frame;

      - The origin lies on the rotational axis of the bogie in the
        plane of symmetry.

   There are three bogie moving frames that define a pure rotation with respect
   to RM_BOGIE_LF_FIX, RM_BOGIE_RF_FIX and RM_BOGIE_MR_FIX according to the
   pivot angles LFB, RFB and MRB, the rotations are defined as follows:

   Left Front Bogie Moving -- RM_BOGIE_LF_MOV -- with origin coincident with
   RM_BOGIE_LF_FIX and rotating LFB around its +Y axis. This frame has the same
   orientation as the FIX frame when the rover is on flat, horizontal terrain.

   Right Front Bogie Moving --  RM_BOGIE_RF_MOV -- with origin coincident with
   RM_BOGIE_RF_FIX and rotating RFB around its +Y axis. This frame has the same
   orientation as the FIX frame when the rover is on flat, horizontal terrain.

   Middle Rear Bogie Moving --  RM_BOGIE_MR_MOV -- with origin coincident with
   RM_BOGIE_MR_FIX and rotating MRB around its +X axis. This frame has the same
   orientation as the FIX frame when the rover is on flat, horizontal terrain.

   These diagrams illustrate the Bogie frames:

   +Y Rover side view (only bogies and wheels):
   --------------------------------------------

                               +Zrm                +Yrm, +Ybmr and +Yblf
                                 ^                  are out of the page.
                                 |
              +Zblf  ^           |     +Zbmr  ^
                     | +Xrm      |            |
                     |_<---------o ___________|.
        +Xblf       |||        +Yrm          |||
           <---------o +Yblf _      <---------o +Ybmr
           |  |-----\_/----|  |    +Xbmr     \__.  |
          .|  |.          .|  |.               .|  |.
         / |__| \        / |__| \             / |__| \
         \      /        \      /             \      /
          `-..-'          `-..-'               `-..-'
             Left Front Bogie            Middle Rear Bogie


   +X Rover side view (only bogies and wheels):
   --------------------------------------------

           +Zbrf              +Zbmr              +Zblf
             ^                  ^                  ^
             |                  |                  |
             |                  |                  |
             | .----------------|---------------.  | +Xblf
       +Xbrf o--------> ------- o--------> ----. |.o--------> +Yblf
           |___|=|  +Ybrf     +Xbmr    +Ybmr   |=|___|
           |.-.                                   .-.|      +Xbmr, +Xblf and
           || |                                   | ||      +Xbrf are out of
           `| |                                   | |'       the page.
            '_'                                   '_'
          ~~~~~~~~                             ~~~~~~~~


   +X Rover side view (drill in stowed position):
   ----------------------------------------------

                           o-o-=O===O--o
                              |o|___|
                                 _\/
                                |_|_
                                  |_|
                                   |
                                   |                +Xrm and +Xbrf are
                                   |                 out of the page.
                                   |
                                   |
                                   |
                                   |
                                   |
                                   |
                                  _|_ +Zrm
                                 |   | ^
             ------ +Zbrf   +Zbrm ------|-------------------------
                    | ^ |    ^     |   |   |   |      |  |
                    '-|-|  .       |   |   | 0 |   .--'--'
                     .|  .-------------|----------|
                    / |'      |        |          |---.
                  / \ o --------> ---- o--------> ====|  .-.
                 /.''.  '.   +Ybrm    +Xrm |   |+Yrm  |=|___|
                 /  /     '.                             .-.|
                /  /        v                            | ||
                './         +Ybrm                        | |'
             .---.                                       '_'
         ~~~'     '~~~~                                ~~~~~~~~


   These sets of keywords define the Bugie fixed and moving frames:

   \begindata

      FRAME_RM_BOGIE_LF_FIX           = -174071
      FRAME_-174071_NAME              = 'RM_BOGIE_LF_FIX'
      FRAME_-174071_CLASS             =  4
      FRAME_-174071_CLASS_ID          = -174071
      FRAME_-174071_CENTER            = -174071
      TKFRAME_-174071_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174071_SPEC            = 'ANGLES'
      TKFRAME_-174071_UNITS           = 'DEGREES'
      TKFRAME_-174071_AXES            = (      1,      2,     3 )
      TKFRAME_-174071_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_BOGIE_LF_MOV           = -174072
      FRAME_-174072_NAME              = 'RM_BOGIE_LF_MOV'
      FRAME_-174072_CLASS             =  3
      FRAME_-174072_CLASS_ID          = -174072
      FRAME_-174072_CENTER            = -174071
      CK_-174072_SCLK                 = -174
      CK_-174072_SPK                  = -174

      FRAME_RM_BOGIE_RF_FIX           = -174073
      FRAME_-174073_NAME              = 'RM_BOGIE_RF_FIX'
      FRAME_-174073_CLASS             =  4
      FRAME_-174073_CLASS_ID          = -174073
      FRAME_-174073_CENTER            = -174073
      TKFRAME_-174073_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174073_SPEC            = 'ANGLES'
      TKFRAME_-174073_UNITS           = 'DEGREES'
      TKFRAME_-174073_AXES            = (      1,      2,     3 )
      TKFRAME_-174073_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_BOGIE_RF_MOV           = -174074
      FRAME_-174074_NAME              = 'RM_BOGIE_RF_MOV'
      FRAME_-174074_CLASS             =  3
      FRAME_-174074_CLASS_ID          = -174074
      FRAME_-174074_CENTER            = -174073
      CK_-174074_SCLK                 = -174
      CK_-174074_SPK                  = -174

      FRAME_RM_BOGIE_MR_FIX           = -174075
      FRAME_-174075_NAME              = 'RM_BOGIE_MR_FIX'
      FRAME_-174075_CLASS             =  4
      FRAME_-174075_CLASS_ID          = -174075
      FRAME_-174075_CENTER            = -174075
      TKFRAME_-174075_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174075_SPEC            = 'ANGLES'
      TKFRAME_-174075_UNITS           = 'DEGREES'
      TKFRAME_-174075_AXES            = (      1,      2,     3 )
      TKFRAME_-174075_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_BOGIE_MR_MOV           = -174076
      FRAME_-174076_NAME              = 'RM_BOGIE_MR_MOV'
      FRAME_-174076_CLASS             =  3
      FRAME_-174076_CLASS_ID          = -174076
      FRAME_-174076_CENTER            = -174075
      CK_-174076_SCLK                 = -174
      CK_-174076_SPK                  = -174

   \begintext


Wheel Frame definitions
~~~~~~~~~~~~~~~~~~~~~~~

   There are six wheels fixed frames: RM_WHEEL_LF_FIX, RM_WHEEL_LM_FIX,
   RM_WHEEL_RF_FIX, RM_WHEEL_RM_FIX, RM_WHEEL_LR_FIX and RM_WHEEL_RR_FIX which
   correspond to the fix frame associated with every wheel wich are implemented
   by a fixed transformation with respect to the corresponding bogie moving
   frames -- RM_BOGIE_LF_MOV, RM_BOGIE_RF_MOV and RM_BOGIE_MR_MOV --, invariant
   to the rotation on the steering and driving axis and assuming a full
   deployment of the deployment mechanism. The center of the frames is the
   center of the corresponding wheel:

      - Front left wheel (LF), middle left wheel (LM)
        (mounted on the Left Front Bogie);

      - Front right wheel (RF), middle right wheel (RM)
        (mounted on the Right Front Bogie);

      - Left rear wheel (LR), right rear wheel (RR)
        (mounted on the Right Front Bogie);


   In addition, six wheels steering angle frames are defined: RM_WHEEL_LF_STR,
   RM_WHEEL_LM_STR, RM_WHEEL_RF_STR, RM_WHEEL_RM_STR, RM_WHEEL_LR_STR and
   RM_WHEEL_RR_STR. These frames are defined with respect to their
   corresponding fixed frame and implement the steering angle (STR) around the
   +Z axis of their corresponding fixed frame.
Marc Costa's avatar
Marc Costa committed
2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675

   Finally, six wheel moving frames are defined: RM_WHEEL_LF_MOV,
   RM_WHEEL_LM_MOV, RM_WHEEL_RF_MOV, RM_WHEEL_RM_MOV, RM_WHEEL_LR_MOV and
   RM_WHEEL_RR_MOV. These frames are defined with respect to their
   corresponding steering frame and implement the forward movement rotation or
   rototrnaslation angle (DRV) around the +Y axis of their corresponding
   steering frame.

   Note that for each frame the wheel deployment mechanism is fully deployed
   and the steering is in its zero position the moving frame is coincident
   with the steering frame an   d the bogie frames.

   These diagrams illustrate the Wheels frames:

   +Y Rover side view (only bogies and wheels):
   --------------------------------------------

                               +Zrm                +Yrm, +Ybmr, +Yblf,
                                 ^                 +Ywlr, +Ywlr, +Ywlr
                                 |                  are out of the page.
              +Zblf  ^           |     +Zbmr  ^
                     | +Xrm      |            |
            +Zblf    |_<---------o ___________|.
      +Zwlr  ^      || +Zwlr ^ +Yrm     +Ybmr ||  ^  +Zwlr
           <-|-------o +Yblf |      <---------o   |
           | ||-----\_/----| ||    +Xbmr     \__. ||
   +Xwlf  .| |.    +Xwlm  .| ||.               .| ||.
      <------o| \     <------o| \    +Xwlr <------o| \
         \+Ywlr /        \+Ywlr /             \+Ywlr /
          `-..-'          `-..-'               `-..-'
     Front left wheel   Middle left wheel   Left rear wheel
          Left Front Bogie                 Middle Rear Bogie


   +Y Rover side view (without solar arrays):
   ------------------------------------------

    +Xlrs
       <
         ' .
             '/ ' .
   +Xlrf <----'--o ' .   .-----.         .-----.
                /|' /    '----- +Xrrf <-----o--'
          .--- /=|========='-.  +Xrrs    | ||        +Zrm, +Zlrs, +Zlrf, are
          |   /  |           '----------.| ||        +Zrrf, +Zrrs, +Zlmf and
          '- v . v                       | |v        +Zlms are out of the
      +Ylrs |  +Ylrf                   +Ylrf +Ylrs    page.
                    .-.                 .' |
            |  |    | +Xrm      +Zrm    |  |
               |    | |<---------o      |  |
               |    | |          |      |  |
            |  |    '-'          |       '.|
            '--|                 |        ||
             . +Xlms ========.    v +Yrm --||
             . +Xlmf <-----o--.         .-----.
             '-----'    '--|--'         '-----'
                           |
                     +Ylmf |
                     +Ylms v


   +Y Rover side view (only bogies and wheels, with all STR=0):
   ------------------------------------------------------------

               +Zlfs                                 +Zlrs    +Ylrs, +Ylrm,
      +Xlfm       ^  +Zlfm                             ^      +Ylfs and +Ylfm
           ^      |  -- ^ / \-----__       +Zlrm < . \._|      are out of the
             ' .| ||-.'---\_/----|  |              \'.  ||     page.
               .'.|.'           .|  |.               .'.||.
    +Xlfs <-------o| \        / |__| \   +Xlrs <-------o| \
              \      /        \      /             \ .'   /  DRV = 45 deg
               `-..-'          `-..-'              .`-..-'
                  DRV = -45 deg             +Xlrm v


   These sets of keywords define the Wheels fixed, steering and moving frames:

   \begindata

      FRAME_RM_WHEEL_LF_FIX           = -1740810
      FRAME_-1740810_NAME             = 'RM_BOGIE_LF_MOV'
      FRAME_-1740810_CLASS            =  4
      FRAME_-1740810_CLASS_ID         = -1740810
      FRAME_-1740810_CENTER           = -174081
      TKFRAME_-1740810_RELATIVE       = 'RM_ROVER'
      TKFRAME_-1740810_SPEC           = 'ANGLES'
      TKFRAME_-1740810_UNITS          = 'DEGREES'
      TKFRAME_-1740810_AXES           = (      1,      2,     3 )
      TKFRAME_-1740810_ANGLES         = (    0.0,    0.0,   0.0 )

      FRAME_RM_WHEEL_LF_STR           = -1740811
      FRAME_-1740811_NAME             = 'RM_WHEEL_LF_FIX'
      FRAME_-1740811_CLASS            =  3
      FRAME_-1740811_CLASS_ID         = -1740811
      FRAME_-1740811_CENTER           = -174081
      CK_-1740811_SCLK                = -174
      CK_-1740811_SPK                 = -174

      FRAME_RM_WHEEL_LF_MOV           = -1740812
      FRAME_-1740812_NAME             = 'RM_WHEEL_LF_STR'
      FRAME_-1740812_CLASS            =  3
      FRAME_-1740812_CLASS_ID         = -1740812
      FRAME_-1740812_CENTER           = -174081
      CK_-1740812_SCLK                = -174
      CK_-1740812_SPK                 = -174

      FRAME_RM_WHEEL_LM_FIX           = -1740820
      FRAME_-1740820_NAME             = 'RM_BOGIE_LF_MOV'
      FRAME_-1740820_CLASS            =  4
      FRAME_-1740820_CLASS_ID         = -1740820
      FRAME_-1740820_CENTER           = -174082
      TKFRAME_-1740820_RELATIVE       = 'RM_ROVER'
      TKFRAME_-1740820_SPEC           = 'ANGLES'
      TKFRAME_-1740820_UNITS          = 'DEGREES'
      TKFRAME_-1740820_AXES           = (      1,      2,     3 )
      TKFRAME_-1740820_ANGLES         = (    0.0,    0.0,   0.0 )

      FRAME_RM_WHEEL_LM_STR           = -1740821
      FRAME_-1740821_NAME             = 'RM_WHEEL_LM_FIX'
      FRAME_-1740821_CLASS            =  3
      FRAME_-1740821_CLASS_ID         = -1740821
      FRAME_-1740821_CENTER           = -174082
      CK_-1740821_SCLK                = -174
      CK_-1740821_SPK                 = -174

      FRAME_RM_WHEEL_LM_MOV           = -1740822
      FRAME_-1740822_NAME             = 'RM_WHEEL_LM_STR'
      FRAME_-1740822_CLASS            =  3
      FRAME_-1740822_CLASS_ID         = -1740822
      FRAME_-1740822_CENTER           = -174082
      CK_-1740822_SCLK                = -174
      CK_-1740822_SPK                 = -174

      FRAME_RM_WHEEL_RF_FIX           = -1740830
      FRAME_-1740830_NAME             = 'RM_BOGIE_RF_MOV'
      FRAME_-1740830_CLASS            =  4
      FRAME_-1740830_CLASS_ID         = -1740830
      FRAME_-1740830_CENTER           = -174083
      TKFRAME_-1740830_RELATIVE       = 'RM_ROVER'
      TKFRAME_-1740830_SPEC           = 'ANGLES'
      TKFRAME_-1740830_UNITS          = 'DEGREES'
      TKFRAME_-1740830_AXES           = (      1,      2,     3 )
      TKFRAME_-1740830_ANGLES         = (    0.0,    0.0,   0.0 )

      FRAME_RM_WHEEL_RF_STR           = -1740831
      FRAME_-1740831_NAME             = 'RM_WHEEL_RF_FIX'
      FRAME_-1740831_CLASS            =  3
      FRAME_-1740831_CLASS_ID         = -1740831
      FRAME_-1740831_CENTER           = -174083
      CK_-1740831_SCLK                = -174
      CK_-1740831_SPK                 = -174

      FRAME_RM_WHEEL_RF_MOV           = -1740832
      FRAME_-1740832_NAME             = 'RM_WHEEL_RF_STR'
      FRAME_-1740832_CLASS            =  3
      FRAME_-1740832_CLASS_ID         = -1740832
      FRAME_-1740832_CENTER           = -174083
      CK_-1740832_SCLK                = -174
      CK_-1740832_SPK                 = -174

      FRAME_RM_WHEEL_RM_FIX           = -1740840
      FRAME_-1740840_NAME             = 'RM_BOGIE_RM_MOV'
      FRAME_-1740840_CLASS            =  4
      FRAME_-1740840_CLASS_ID         = -1740840
      FRAME_-1740840_CENTER           = -174084
      TKFRAME_-1740840_RELATIVE       = 'RM_ROVER'
      TKFRAME_-1740840_SPEC           = 'ANGLES'
      TKFRAME_-1740840_UNITS          = 'DEGREES'
      TKFRAME_-1740840_AXES           = (      1,      2,     3 )
      TKFRAME_-1740840_ANGLES         = (    0.0,    0.0,   0.0 )

      FRAME_RM_WHEEL_RM_STR           = -1740841
      FRAME_-1740841_NAME             = 'RM_WHEEL_RM_FIX'
      FRAME_-1740841_CLASS            =  3
      FRAME_-1740841_CLASS_ID         = -1740841
      FRAME_-1740841_CENTER           = -174084
      CK_-1740841_SCLK                = -174
      CK_-1740841_SPK                 = -174

      FRAME_RM_WHEEL_RM_MOV           = -1740842
      FRAME_-1740842_NAME             = 'RM_WHEEL_RM_STR'
      FRAME_-1740842_CLASS            =  3
      FRAME_-1740842_CLASS_ID         = -1740842
      FRAME_-1740842_CENTER           = -174084
      CK_-1740842_SCLK                = -174
      CK_-1740842_SPK                 = -174

      FRAME_RM_WHEEL_LR_FIX           = -1740850
      FRAME_-1740850_NAME             = 'RM_BOGIE_LR_MOV'
      FRAME_-1740850_CLASS            =  4
      FRAME_-1740850_CLASS_ID         = -1740850
      FRAME_-1740850_CENTER           = -174085
      TKFRAME_-1740850_RELATIVE       = 'RM_ROVER'
      TKFRAME_-1740850_SPEC           = 'ANGLES'
      TKFRAME_-1740850_UNITS          = 'DEGREES'
      TKFRAME_-1740850_AXES           = (      1,      2,     3 )
      TKFRAME_-1740850_ANGLES         = (    0.0,    0.0,   0.0 )

      FRAME_RM_WHEEL_LR_STR           = -1740851
      FRAME_-1740851_NAME             = 'RM_WHEEL_LR_FIX'
      FRAME_-1740851_CLASS            =  3
      FRAME_-1740851_CLASS_ID         = -1740851
      FRAME_-1740851_CENTER           = -174085
      CK_-1740851_SCLK                = -174
      CK_-1740851_SPK                 = -174

      FRAME_RM_WHEEL_LR_MOV           = -1740852
      FRAME_-1740852_NAME             = 'RM_WHEEL_LR_STR'
      FRAME_-1740852_CLASS            =  3
      FRAME_-1740852_CLASS_ID         = -1740852
      FRAME_-1740852_CENTER           = -174085
      CK_-1740852_SCLK                = -174
      CK_-1740852_SPK                 = -174

      FRAME_RM_WHEEL_RR_FIX           = -1740860
      FRAME_-1740860_NAME             = 'RM_BOGIE_RR_MOV'
      FRAME_-1740860_CLASS            =  4
      FRAME_-1740860_CLASS_ID         = -1740860
      FRAME_-1740860_CENTER           = -174086
      TKFRAME_-1740860_RELATIVE       = 'RM_ROVER'
      TKFRAME_-1740860_SPEC           = 'ANGLES'
      TKFRAME_-1740860_UNITS          = 'DEGREES'
      TKFRAME_-1740860_AXES           = (      1,      2,     3 )
      TKFRAME_-1740860_ANGLES         = (    0.0,    0.0,   0.0 )

      FRAME_RM_WHEEL_RR_STR           = -1740861
      FRAME_-1740861_NAME             = 'RM_WHEEL_RR_FIX'
      FRAME_-1740861_CLASS            =  3
      FRAME_-1740861_CLASS_ID         = -1740861
      FRAME_-1740861_CENTER           = -174086
      CK_-1740861_SCLK                = -174
      CK_-1740861_SPK                 = -174

      FRAME_RM_WHEEL_RR_MOV           = -1740862
      FRAME_-1740862_NAME             = 'RM_WHEEL_RR_STR'
      FRAME_-1740862_CLASS            =  3
      FRAME_-1740862_CLASS_ID         = -1740862
      FRAME_-1740862_CENTER           = -174086
      CK_-1740862_SCLK                = -174
      CK_-1740862_SPK                 = -174

   \begintext


PanCam Frames
------------------------------------------------------------------------

   This section of the file contains the definitions of the Panoramic
   Camera (PanCam) instrument frames.


PanCam Frame Tree
~~~~~~~~~~~~~~~~~

   The diagram below shows the PanCam frame hierarchy.

                                   "RM_PB"
                                   -------
                                      |
                                      |<-fixed
                                      |
                                      V
                               "RM_PANCAM_BASE"
                   +----------------------------------------+
                   |                    |                   |
            fixed->|             fixed->|            fixed->|
                   |                    |                   |
                   v                    v                   v
              "RM_PANCAM_HRC"   "RM_PANCAM_WAC_L"   "RM_PANCAM_WAC_R"
              ---------------   -----------------   -----------------


PanCam Frame definitions
~~~~~~~~~~~~~~~~~~~~~~~~

   The Panoramic Cameras reference frame (PANCAM) is attached to the PanCam
   stereo bench that is rigidly mounted on the Payload Bench on top of the
   Rover Mast. Therefore, the base frame associated with it -- the
   RM PANCAM Base rame, RM_PANCAM_BASE --  is specified as a fixed offset frame
   with its orientation given relative to the RM_ROVER frame as follows:

      -  +X axis is defined as the projection of the cameras optical axis on
         the plane perpendicular to the +Y axis;

      -  +Y axis is in the direction from the right WAC camera optical centre
         to the left WAC camera optical centre;

      -  +Z axis completes the right-handed frame;

      -  The origin is located at the middle of the segment linking the optical
         centres of the left and right WAC cameras.


   These diagrams illustrate the nominal RM_PANCAM_BASE, RM_PANCAM_WAC_L,
   RM_PANCAM_WAC_R and RM_PANCAM_HRC frame with respect to the rover frame.


   +X Rover side view:
   -------------------

                       +Zpancam
                         ^
                         |
                         |
                         |
                         |
                   o-o-=Oo--------> +Ypancam
                  +Xpancam _|
                         _\/
                        |_|_
                          |_|
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                           _|_ +Zrm
                          |   | ^
      --------------------------|--------------------------
             |   |          |   |   |   |     |  |
             '---|          |   |   | 0 |  .--'--'
                 '--.-----------|----------|
                 .--|           |          |---.
            .-.  |============= o--------> ====|  .-.
           |___|=|            +Xrm  |   +Yrm   |=|___|
           |.-.                                   .-.|
           || |                                   | ||    +Yrm is out of the
           `| |                                   | |'    page
            '_'                                   '_'
          ~~~~~~~~                             ~~~~~~~~


   +X Rover Mast view:
   -------------------

     +Xpwacl       +Xphrc                                        +Xpwacr
        ^             ^                                            ^
        |             |                                            |
        |   PanCamHRC |    ______________________                  |
     .--|-------------|---|                      |-----------------|--.
     | /o------->   / o--------> +Yphrc      /^\ |                /o------->
     | \_/ WAC-L    \__/  | \_/              \_/ |   PanCam WAC-R \_/ | +Ypwacr
     '____________________|    NavCaM            |____________________'
                   .-----.'----------------------'
                   | /^\ |====|----== +Zpancam
                   | \_/ |====|   /    ^ \   |        +Zpwacl, +Zphrc, +Zpwacr
                   '-----'    |  /     |  \  |         and +Xpancam are out of
                ISEM          . .      |   . .         the page.
                              .        |
                                       o--------> +Ypancam
                                      +Xpancam


   Since the SPICE frames subsystem calls for specifying the reverse
   transformation--going from the instrument or structure frame to the
   base frame--as compared to the description given above, the order of
   rotations assigned to the TKFRAME_*_AXES keyword is also reversed
   compared to the above text, and the signs associated with the
   rotation angles assigned to the TKFRAME_*_ANGLES keyword are the
   opposite from what is written in the above text.

   \begindata

      FRAME_RM_PANCAM_BASE             =  -174100
      FRAME_-174100_NAME               = 'RM_PANCAM_BASE'
      FRAME_-174100_CLASS              =   4
      FRAME_-174100_CLASS_ID           =  -174100
      FRAME_-174100_CENTER             =  -174100
      TKFRAME_-174100_RELATIVE         = 'RM_PB'
      TKFRAME_-174100_SPEC             = 'ANGLES'
      TKFRAME_-174100_UNITS            = 'DEGREES'
      TKFRAME_-174100_AXES             = ( 3,     2,      1   )
      TKFRAME_-174100_ANGLES           = ( 0.0,   0.0,    0.0 )

      FRAME_RM_PANCAM_WAC_L            =  -174110
      FRAME_-174110_NAME               = 'RM_PANCAM_WAC_L'
      FRAME_-174110_CLASS              =   4
      FRAME_-174110_CLASS_ID           =  -174110
      FRAME_-174110_CENTER             =  -174110
      TKFRAME_-174110_RELATIVE         = 'RM_PANCAM_BASE'
      TKFRAME_-174110_SPEC             = 'ANGLES'
      TKFRAME_-174110_UNITS            = 'DEGREES'
      TKFRAME_-174110_AXES             = ( 3,     2,      1   )
      TKFRAME_-174110_ANGLES           = ( 0.0, -90.0,    0.0 )

      FRAME_RM_PANCAM_WAC_R            =  -174120
      FRAME_-174120_NAME               = 'RM_PANCAM_WAC_R'
      FRAME_-174120_CLASS              =   4
      FRAME_-174120_CLASS_ID           =  -174120
      FRAME_-174120_CENTER             =  -174120
      TKFRAME_-174120_RELATIVE         = 'RM_PANCAM_BASE'
      TKFRAME_-174120_SPEC             = 'ANGLES'
      TKFRAME_-174120_UNITS            = 'DEGREES'
      TKFRAME_-174120_AXES             = ( 3,     2,      1   )
      TKFRAME_-174120_ANGLES           = ( 0.0, -90.0,    0.0 )

      FRAME_RM_PANCAM_HRC              =  -174130
      FRAME_-174130_NAME               = 'RM_PANCAM_HRC'
      FRAME_-174130_CLASS              =   4
      FRAME_-174130_CLASS_ID           =  -174130
      FRAME_-174130_CENTER             =  -174130
      TKFRAME_-174130_RELATIVE         = 'RM_PANCAM_BASE'
      TKFRAME_-174130_SPEC             = 'ANGLES'
      TKFRAME_-174130_UNITS            = 'DEGREES'
      TKFRAME_-174130_AXES             = ( 3,     2,      1   )
      TKFRAME_-174130_ANGLES           = ( 0.0, -90.0,    0.0 )

   \begintext


ISEM Frames
------------------------------------------------------------------------

   This section of the file contains the definitions of the Infrared
   Spectrometer for ExoMars (ISEM).


ISEM Frame Tree
~~~~~~~~~~~~~~~~~

   The diagram below shows the ISEM frame hierarchy.

                                "RM_PB"
                                -------
                                   |
                                   |<-fixed
                                   |
                                   V
                               "RM_ISEM"
                               ---------


ISEM Frame Definition
~~~~~~~~~~~~~~~~~~~~~

   The ISEM reference frame -- RM_ISEM -- is attached to the ISEM instrument
   and is nominally parallel Payload Bench -- RM_PB -- and is defined as
   follows:

      - +X axis is parallel to the +X axis of the RM_PB frame;

      - +Y axis is parallel to the +Y axis of the RM_PB frame;

      - +Z axis completes the right-handed frame;

      - the origin is located on the instrument optical axis, exactly at the
        end of the ISEM Optical Box.


   The following diagram describes the RM_ISEM reference frame:

   +X Rover side view:
   -------------------

                     +Zisem
                        ^
                        |
                        |
                        |
                    o-o-|O===O--o
                       |o---------> +Yisem
                          _\/
                         |_|_
                           |_|
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                            |
                           _|_ +Zrm
                          |   | ^
      --------------------------|--------------------------
             |   |          |   |   |   |     |  |
             '---|          |   |   | 0 |  .--'--'
                 '--.-----------|----------|
                 .--|           |          |---.
            .-.  |============= o--------> ====|  .-.
           |___|=|            +Xrm  |   +Yrm   |=|___|
           |.-.                                   .-.|
           || |                                   | ||    +Xrm and +Xisem are
           `| |                                   | |'    out of the page.
            '_'                                   '_'
          ~~~~~~~~                             ~~~~~~~~


   +X Rover Mast view:
   -------------------

                    +Zisem   ______________________
       .--------------- ^ --|                      |--------------------.
       | /^\ PanCam    /| \ | /^\              /^\ |                /^\ |
       | \_/ WAC-L     \|_/ | \_/              \_/ |   PanCam WAC-R \_/ |
       '________________|___|    NavCaM            |____________________'
                     .--|--.'----------------------'
                     | /o--------->  == +Zpb
                     | \_/ |== +Yisem    ^ \   |          +Xpb and +Xisem are
                     '-----'    |  /     |  \  |           out of the page.
                  ISEM          . .      |   . .
                                .        |
                                         o--------> +Ypb
                                        +Xpb


   These sets of keywords define the ISEM frame:

   \begindata

      FRAME_RM_ISEM                   = -174200
      FRAME_-174200_NAME              = 'RM_ISEM'
      FRAME_-174200_CLASS             =  4
      FRAME_-174200_CLASS_ID          = -174200
      FRAME_-174200_CENTER            = -174200
      TKFRAME_-174200_RELATIVE        = 'RM_PB'
      TKFRAME_-174200_SPEC            = 'ANGLES'
      TKFRAME_-174200_UNITS           = 'DEGREES'
      TKFRAME_-174200_AXES            = (      1,      2,     3 )
      TKFRAME_-174200_ANGLES          = (    0.0,    0.0,   0.0 )

   \begintext


ADRON-RM Frames
------------------------------------------------------------------------

   This section of the file contains the definitions of the Autonomous
   Detector of Radiation of Neutrons Onboard Rover (ADRON-RM) frames.


ADRON-RM Frame Tree
~~~~~~~~~~~~~~~~~~~

   The diagram below shows the ADRON-RM frame hierarchy.

                                "RM_ROVER"
                                ----------
                                    |
                                    |<-fixed
                                    |
                                    V
                               "RM_ADRON-RM"
                               -------------


ADRON-RM Frame Definition
~~~~~~~~~~~~~~~~~~~~~~~~~

   The ISEM reference frame -- RM_ADRON-RM -- is attached to the ADRON-RM
   instrument and is fixed with respect to the rover frame -- RM_ROVER --, and
   defined as follows:

      - +X axis is parallel to the +X axis of the RM_ROVER frame;

      - +Y axis is parallel to the +Y axis of the RM_ROVER frame;

      - +Z axis completes the right-handed frame;

      - the origin is located on the instrument center.


   The following diagram describes the RM_ADRON-RM reference frame:

   -Y Rover side view:
   -------------------

             - · - · -
                 |
                 |        +Zrm         +Zadr
                _|_         ^             ^
               |   |        |             |
         -------------------|-------------|-----------------------
               ,------------|------------.|
               |            |             |
            ___|            |             |
           /   | +Xrm       | +Xadr       |
           \___|__<---------o __<---------o         +Yrm and +Yadr are out
                | |        +Yrm          | |         of the page.
        __------/ \-----__               / \.__
       |  |-----\_/----|  |              \__.  |
      .|  |.          .|  |.               .|  |.
     / |__| \        / |__| \             / |__| \
     \      /        \      /             \      /
      `-..-'          `-..-'               `-..-'


   These sets of keywords define the ADRON frame:

   \begindata

      FRAME_RM_ADRON-RM               = -174300
      FRAME_-174300_NAME              = 'RM_ADRON-RM'
      FRAME_-174300_CLASS             =  4
      FRAME_-174300_CLASS_ID          = -174300
      FRAME_-174300_CENTER            = -174300
      TKFRAME_-174300_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174300_SPEC            = 'ANGLES'
      TKFRAME_-174300_UNITS           = 'DEGREES'
      TKFRAME_-174300_AXES            = (      1,      2,     3 )
      TKFRAME_-174300_ANGLES          = (    0.0,    0.0,   0.0 )

   \begintext


WISDOM Frames
------------------------------------------------------------------------

   This section of the file contains the definitions of the Water Ice
   Subsurface Deposit Observation on Mars (WISDOM) ground-penetrating
   radar frames.


WISDOM Frame Tree
~~~~~~~~~~~~~~~~~

   The diagram below shows the WISDOM frame hierarchy.

                               "RM_ROVER"
                               ----------
                                   |
                                   |<-fixed
                                   |
                                   V
                             "RM_WISDOM_BASE"
                       +-------------------------+
                       |                         |
                       |<-fixed           fixed->|
                       |                         |
                       v                         v
                "RM_WISDOM_ANT1"           "RM_WISDOM_ANT2"
                ---------------            ----------------


WISDOM Frame Definitions:
~~~~~~~~~~~~~~~~~~~~~~~~~

   The WISDOM base reference frame -- RM_WISDOM_BASE --, where the subsurface
   stratigrafy reconstruction occurs, is placed on the WISDOM instrument, is
   fixed with respect to the rover frame -- RM_ROVER --, and defined as
   follows:

      - +X axis is nominally parallel to the +X axis of the RM_ROVER frame;

      - +Y axis is nominally parallel to the +Y axis of the RM_ROVER frame;

      - +Z axis completes the right-handed frame;

      - The origin is located at the middle of the segment linking the two
        WISDOM hornet mounting positions.


   The WISDOM antennas ANT1 and ANT2 -- RM_WISDOM_ANT1, RM_WISDOM_ANT2 --
   are rotated 8 degrees with respect to the RM_WISDOM_BASE frame around
   the +Y axis and are defined as follows [10]:

      - +Z axis points towards the direction of the antenna boresight;

      - +X is rotated 135 degrees around the WISDOM base frame +Y axis
        towards the WISDOM base frame +Z axis;

      - +Y axis is parallel to the WISDOM base frame +Y axis and completes
        the right-handed frame;

      - The origin is located at focal point of the antennas.


   The following diagram describes the WISDOM reference frames:

   -Y Rover side view:
   -------------------

             - · - · -
                 |
                 |        +Zrm         +Zwis
                _|_         ^             ^
               |   |        |             |        +Xant1, +Xant2
         -------------------|-------------|-------  ^ --------------
               ,------------|------------.|       .'
               |            |             |     .'
            ___|            |             |   .'
           /   | +Xrm       | +Xwis       | .'
           \___|__<---------o __<---------o.         +Yrm, +Ywis, +Yant1 and
                | |        +Yrm          | |'.       +Yant2 are out of the
        __------/ \-----__               / \._'.      page.
       |  |-----\_/----|  |              \__.  |'.
      .|  |.          .|  |.               .|  |. v
     / |__| \        / |__| \             / |__| +Zant1, +Zant2
     \      /        \      /             \      /
      `-..-'          `-..-'               `-..-'


   These sets of keywords define the WISDOM frame:

   \begindata

      FRAME_RM_WISDOM_BASE            = -174400
      FRAME_-174400_NAME              = 'RM_WISDOM_BASE'
      FRAME_-174400_CLASS             =  4
      FRAME_-174400_CLASS_ID          = -174400
      FRAME_-174400_CENTER            = -174
      TKFRAME_-174400_RELATIVE        = 'RM_ROVER'
      TKFRAME_-174400_SPEC            = 'ANGLES'
      TKFRAME_-174400_UNITS           = 'DEGREES'
      TKFRAME_-174400_AXES            = (      1,      2,     3 )
      TKFRAME_-174400_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_WISDOM_ANT1            = -174410
      FRAME_-174410_NAME              = 'RM_WISDOM_ANT1'
      FRAME_-174410_CLASS             =  4
      FRAME_-174410_CLASS_ID          = -174410
      FRAME_-174410_CENTER            = -174
      TKFRAME_-174410_RELATIVE        = 'RM_WISDOM_BASE'
      TKFRAME_-174410_SPEC            = 'ANGLES'
      TKFRAME_-174410_UNITS           = 'DEGREES'
      TKFRAME_-174410_AXES            = (      1,      2,     3 )
      TKFRAME_-174410_ANGLES          = (    0.0,  172.0,   0.0 )

      FRAME_RM_WISDOM_ANT2            = -174420
      FRAME_-174420_NAME              = 'RM_WISDOM_ANT2'
      FRAME_-174420_CLASS             =  4
      FRAME_-174420_CLASS_ID          = -174420
      FRAME_-174420_CENTER            = -174
      TKFRAME_-174420_RELATIVE        = 'RM_WISDOM_BASE'
      TKFRAME_-174420_SPEC            = 'ANGLES'
      TKFRAME_-174420_UNITS           = 'DEGREES'
      TKFRAME_-174420_AXES            = (      1,      2,     3 )
      TKFRAME_-174420_ANGLES          = (    0.0,  172.0,   0.0 )

   \begintext


MaMiss Frames
------------------------------------------------------------------------

   This section of the file contains the definitions of the Mars
   Multispectral Imager for Subsurface Studies (MaMiss) frames.


MaMiss Frame Tree:
~~~~~~~~~~~~~~~~~~

   The diagram below shows the MaMiss frame hierarchy.

                               RM_ROVER
                               --------
                                   |
                                   |<-fixed
                                   |
                                   v
                          "RM_DRILL_POS_FIX"
                          +----------------+
                          .                |
                          .                |<-ck
                          .                |
                          .                v
                          .  "RM_DRILL_POS_MOV"
                          .  +----------------+
                          .  .                |
                          .  .         fixed->|
                          .  .                |
                          .  .                v
                          .  .  "RM_DRILL_TIP_FIX"
                          .  .  ------------------
                          .  .         |
                          .  .         |<-fixed
                          .  .         |
                          .  .         v
                          .  .  "RM_DRILL_TIP_MOV"
                          .  .  ------------------
                          .  .         |
                          .  .         |<-fixed
                          .  .         |
                          v  v         v
                                  "RM_MAMISS"
                                  -----------


MaMiss Frame Definitions:
~~~~~~~~~~~~~~~~~~~~~~~~~

   The MaMiss frame (MaMiss) is placed on the Rover Drill Rod with origin on
   the MaMiss sapphire window and is parallel to the Drill Tip moving frame.
   It is defined as follows:

      - +X axis is nominally parallel to the +X axis of the RM_DRILL_TIP_MOV
        frame;

      - +Y axis is nominally parallel to the +Y axis of the RM_DRILL_TIP_MOV
        frame;

      - +Z axis completes the right-handed frame;

      - The origin, is defined as the intersection between the Drill Rod
        extension direction and the MaMiss sapphire window.


   The following diagram describes the MaMiss reference frame:

   +X side of the extended Rod:
   ----------------------------

              ..
              ..
              ||                             +Xdtm and +Xmmis
              \/  Dril                        are out of the page
               o-------> +Zdtm, +Zmmiss
               |
               |
               |
               v +Ydtm, +Ymmiss


   These sets of keywords define the MaMiss frame:

   \begindata

      FRAME_RM_MAMISS                 = -174500
      FRAME_-174500_NAME              = 'RM_MAMISS'
      FRAME_-174500_CLASS             =  4
      FRAME_-174500_CLASS_ID          = -174500
      FRAME_-174500_CENTER            = -174043
      TKFRAME_-174500_RELATIVE        = 'RM_DRILL_TIP_MOV'
      TKFRAME_-174500_SPEC            = 'ANGLES'
      TKFRAME_-174500_UNITS           = 'DEGREES'
      TKFRAME_-174500_AXES            = (      1,      2,     3 )
      TKFRAME_-174500_ANGLES          = (    0.0,    0.0,   0.0 )

    \begintext


CLUPI Frames
------------------------------------------------------------------------

   This section of the file contains the definitions of the Close-Up Imager
   (CLUPI) frames.

   CLUPI will be accommodated on the drill box of the rover. By using the
   degrees of freedom provided by both the rover and the drill box, CLUPI
   will be angled and raised so that it can observe in a variety of viewing
   modes. The use of two fixed mirrors—one flat and one concave will provide
   three FOVs.


CLUPI Frame Tree:
~~~~~~~~~~~~~~~~~

   The diagram below shows the CLUPI frame hierarchy.

                                     RM_ROVER
                                     --------
                                         |
                                         |<-fixed
                                         |
                                         v
                                "RM_DRILL_POS_FIX"
               +---------------------------------+
               |                                 |
               |<-fixed                          |<-ck
               |                                 |
               V                                 v
        "RM_CLUPI_BRACKET"               "RM_DRILL_POS_MOV"
        ------------------         +--------------------------+
                                   |                          |
                            fixed->|                   fixed->|
                                   |                          |
                                   v                          v
                           "RM_CLUPI_BASE"            "RM_DRILL_TIP_FIX"
                           ---------------            ------------------
                                   |                          |
                                   |<-fixed                   |<-fixed
                                   |                          |
                                   v                          v
                          "RM_CLUPI_OPT_AXIS"          "RM_DRILL_TIP_MOV"
                          -------------------          ------------------
                                   |                          .
                                   |<-fixed                   .
                                   |                          .
                                   v                          v
                          "RM_CLUPI_DRILL_TIP"
                          --------------------


CLUPI Frame Definitions:
~~~~~~~~~~~~~~~~~~~~~~~~

   The CLUPI Base frame -- RM_CLUPI_BASE -- is placed on the CLUPI image
   sensor, which is fixed to the Drill Positioner. Hence its frame is
   rigidly following the RM_DRILL_POS_MOV frame and is defined as follows
   It is defined as follows:

      - +X axis is nominally parallel to the +X axis of the RM_DRILL_TIP_MOV
        frame;

      - +Y axis is nominally parallel to the +X axis of the RM_DRILL_POS_MOV
        frame;

      - +Z axis completes the right-handed frame;

      - the origin is located in the CLUPI image sensor optical centre.


   The CLUPI Optical Axis frame -- RM_CLUPI_OPT_AXIS -- is nominally
   parallel to the RM_CLUPI_BASE with a rotation such that the CLUPI boresight
   is along the +Z axis instead of the +Y axis. This frame is implemented to
   incorporate possible missalignments of the optical axis.
   The frame RM_CLUPI_OPT_AXIS is defined as follows:

      - +Z axis is the optical axis of CLUPI;

      - +X axis is nominally parallel to the +X axis of the RM_DRILL_TIP_MOV
        frame;

      - +Y axis completes the right-handed frame;

      - the origin is located in the CLUPI image sensor optical centre.


   The CLUPI Drill Tip mirror reference frame -- RM_CLUPI_DRILL_TIP --,
   provides the reflection direction of CLUPI's 2nd mirror. CLUPI's 2nd mirror
   (or drill mirror) is fixed on the drill box near the front end of the box
   and splits the FOV into two parts: (i) the main part, RM_CLUPI_FOV2, 2 is
   not deflected and looks in the direction of the optical axis of CLUPI and
   (ii) the smaller part of the sensor RM_CLUPI_FOV3, looks toward the drill
   tip. The RM_CLUPI_DRILL_TIP is defined as a fixed rotation of 54 degrees
   around the RM_CLUPI_OPT_AXIS frame.

      - +Y axis is nominally rotated a fixed angle of 54 degrees around the
        +X axis of the RM_CLUPI_OPT_AXIS frame;

      - +Z axis is the boresight of the mirrored portion of CLUPI's FOV
        (FOV3);

      - +X axis completes the right-handed frame;

      - the origin is located in the tip mirror reflecting point of CLUPI's
        FOV3 boresight.


   When the drill is in stowed position, the CLUPI FOV 1 is looking at the
   surface in front of the rover due to the first mirror (or bracket mirror),
   fixed on the rover bracket that holds the drill when in stowed position.
   The fixed orientation of CLUPI’s axis is toward the surface with an angle
   of 20 degrees with respect to the horizontal of the rover.
   To implement FOV1 we define the Rover Bracket Mirror frame as follows:

      - +Z axis is the boresight of CLUPI's mirrored FOV (FOV1);

      - +Y axis is parallel to the sensor pixel samples;

      - +X axis completes the right-handed frame;

      - the origin is located in the bracket mirror reflecting point of
        CLUPI's FOV1 boresight.


   The following diagrams illustrate the CLUPI frames:

   +X Rover side view (drill in discharge phase):
   ----------------------------------------------

                    o-o-=O===O--o
                       |o|___|
                          _\/
                         |_|_
                           |_|
                            |
                            |
                            |
                            |
                            |
                            |                 .
                            |             . '  \
                            |         . '       \
                           _|_    . ' ^+dZpf. '
                          |   . '     | . '
      -----------------.o-. '       . | |-------------------
             |     . '. '\      . ' | | |     |  |
       +Zopt,  . '    \   \ . ' ^   | o------> +Ydpf
       +Ybas <   '--.  o. '\    |+Zrm   | |
                 .--. ' \   \    |   |   | ''--.
            .-  . '===== \== v = o-----> ======|  .-.
       +Ydtf <' =|        \  +Zbas,     +Yrm   |=|___|
           |.-.            v   +Yopt              .-.|
           || |         +Zdtf                     | ||    +Xrm, +Xdtf, +Xopt
           `| |                                   | |'     and +Xbas are out
            '_'                                   '_'       of the page
          ~~~~~~~~                             ~~~~~~~~


   +X Rover side view (drill in hor. align. before discharge):
   -----------------------------------------------------------

                        - · - · -
                            |
                           _|_ +Zrm
                         |   | ^
      - +Zopt <-------o--------|--------------------------
             |   |  .'|'. -----|---------.   |  |
             '--- .'| |  '.    |         |.--'--'
                .'--'-|----'.--|-------- '|
         +Zcdt V .--' v      '> +Ycdt |   '---.
            .-.  |== +Yopt === o--------> ====|  .-.
           |___|=|            +Xrm |   |+Yrm  |=|___|
           |.-.                                  .-.|
           || |                                  | ||    +Xrm, +Xopt, +Zcdt
           `| |                                  | |'     are out of the
            '_'                                  '_'      page
          ~~~~~~~~                            ~~~~~~~~


   -Y Rover side view:
   -------------------

                 - · - · -
                     |
                     |        +Zrm
                    _|_         ^
                   |   |        |
             -------------------|-------------------------------------
                   ,------------|------------.
                   |            |             |
                o__|            |             |
               /   | +Xrm       |             |
              /\___|__<---------o ____________.         +Yrm is out
             /      | |        +Yrm          | |         of the page.
            /_------/ \-----__               / \.__
           v  |-----\_/----|  |              \__.  |
       +Zbrk  |.          .|  |.               .|  |.
         / |__| \        / |__| \             / |__| \
         \      /        \      /             \      /
          `-..-'          `-..-'               `-..-'


   Relevant frames (for all diagrams):
      rm:  RM_ROVER
      dtf: RM_DRILL_TIP_FIX
      opt: RM_CLUPI_OPT_AXIS
      bas: RM_CLUPI_BASE
      cdt: RM_CLUPI_DRILL_TIP
      brk: RM_CLUPI_BRACKET


   These sets of keywords define the CLUPI frames:

   \begindata

      FRAME_RM_CLUPI_BASE             = -174600
      FRAME_-174600_NAME              = 'RM_CLUPI_BASE'
      FRAME_-174600_CLASS             =  4
      FRAME_-174600_CLASS_ID          = -174600
      FRAME_-174600_CENTER            = -174600
      TKFRAME_-174600_RELATIVE        = 'RM_DRILL_POS_MOV'
      TKFRAME_-174600_SPEC            = 'ANGLES'
      TKFRAME_-174600_UNITS           = 'DEGREES'
      TKFRAME_-174600_AXES            = (      1,      2,     3 )
      TKFRAME_-174600_ANGLES          = (    0.0,    0.0,   0.0 )

      FRAME_RM_CLUPI_OPT_AXIS         = -174610
      FRAME_-174610_NAME              = 'RM_CLUPI_OPT_AXIS'
      FRAME_-174610_CLASS             =  4
      FRAME_-174610_CLASS_ID          = -174610
      FRAME_-174610_CENTER            = -174600
      TKFRAME_-174610_RELATIVE        = 'RM_CLUPI_BASE'
      TKFRAME_-174610_SPEC            = 'ANGLES'
      TKFRAME_-174610_UNITS           = 'DEGREES'
      TKFRAME_-174610_AXES            = (      3,      2,      1 )
      TKFRAME_-174610_ANGLES          = (    0.0,    0.0,  -90.0 )

      FRAME_RM_CLUPI_DRILL_TIP        = -174620
      FRAME_-174620_NAME              = 'RM_CLUPI_DRILL_TIP'
      FRAME_-174620_CLASS             =  4
      FRAME_-174620_CLASS_ID          = -174620
      FRAME_-174620_CENTER            = -174620
      TKFRAME_-174620_RELATIVE        = 'RM_CLUPI_OPT_AXIS'
      TKFRAME_-174620_SPEC            = 'ANGLES'
      TKFRAME_-174620_UNITS           = 'DEGREES'
      TKFRAME_-174620_AXES            = (      3,      2,      1 )
      TKFRAME_-174620_ANGLES          = (    0.0,    0.0,  -54.0 )

      FRAME_RM_CLUPI_BRACKET          = -174630
      FRAME_-174630_NAME              = 'RM_CLUPI_BRACKET'
      FRAME_-174630_CLASS             =  4
      FRAME_-174630_CLASS_ID          = -174630
      FRAME_-174630_CENTER            = -174630
      TKFRAME_-174630_RELATIVE        = 'RM_DRILL_POS_FIX'
      TKFRAME_-174630_SPEC            = 'ANGLES'
      TKFRAME_-174630_UNITS           = 'DEGREES'
      TKFRAME_-174630_AXES            = (      3,       2,     1 )
      TKFRAME_-174630_ANGLES          = (    0.0,  -160.0,   0.0 )

    \begintext



RM NAIF ID Codes -- Definitions
===============================================================================

   This section contains name to NAIF ID mappings for the ExoMarsRSP RM
   mission. Once the contents of this file is loaded into the KERNEL POOL,
   these mappings become available within SPICE, making it possible to use
   names instead of ID code in the high level SPICE routine calls.

      Name                   ID       Synonyms
      ---------------------  -------  -----------------------

   Rover:
   -----------
      RM                     -174     EXOMARS RSP ROVER MODULE
                                      EXOMARS RSP RM
                                      EXOMARS RSP ROVER
                                      EXOMARS ROVER
      RM_ROVER               -174000
      RM_MAST                -174011
      RM_PTR                 -174013
      RM_PB                  -174014
      RM_NAVCAM              -174020
      RM_NAVCAM_L            -174021
      RM_NAVCAM_R            -174022
      RM_LOCCAM              -174030
      RM_LOCCAM_L            -174031
      RM_LOCCAM_R            -174031
      RM_DRILL_POS_FIX       -174040
      RM_DRILL_POS_MOV       -174041
      RM_DRILL_TIP_FIX       -174042
      RM_DRILL_TIP_MOV       -174043
      RM_ALD                 -174050
      RM_ALD_CSTM            -174051
      RM_ALD_CSTM_FIX        -174052
      RM_ALD_CSTM_MOV        -174053
      RM_ALD_PSDDS           -174055
      RM_ALD_PSHS            -174058
      RM_SA1_PRI             -174062
      RM_SA1_SEC             -174063
      RM_SA2_PRI             -174065
      RM_SA2_SEC             -174066
      RM_BOGIE_LF            -174071
      RM_BOGIE_LR            -174074
      RM_BOGIE_RR            -174076
      RM_WHEEL_LF            -174081
      RM_WHEEL_LM            -174082
      RM_WHEEL_RF            -174083
      RM_WHEEL_RM            -174084
      RM_WHEEL_LR            -174085
      RM_WHEEL_RR            -174086

      The mappings summarized in this table are implemented by the keywords
      below.

      \begindata

          NAIF_BODY_NAME += ( 'RM'                          )
          NAIF_BODY_CODE += ( -174                          )

          NAIF_BODY_NAME += ( 'EXOMARS RSP ROVER MODULE'    )
          NAIF_BODY_CODE += ( -174                          )

          NAIF_BODY_NAME += ( 'EXOMARS RSP RM'              )
          NAIF_BODY_CODE += ( -174                          )

          NAIF_BODY_NAME += ( 'EXOMARS RSP ROVER'           )
          NAIF_BODY_CODE += ( -174                          )

          NAIF_BODY_NAME += ( 'EXOMARS ROVER'               )
          NAIF_BODY_CODE += ( -174                          )

          NAIF_BODY_NAME += ( 'RM_ROVER'                    )
          NAIF_BODY_CODE += ( -174000                       )

          NAIF_BODY_NAME += ( 'RM_SITE_DISPOSAL'            )
          NAIF_BODY_CODE += ( -174900                       )

          NAIF_BODY_NAME += ( 'RM_MAST_ZERO'                )
          NAIF_BODY_CODE += ( -174010                       )

          NAIF_BODY_NAME += ( 'RM_MAST'                     )
          NAIF_BODY_CODE += ( -174011                       )

          NAIF_BODY_NAME += ( 'RM_PTR_ZERO'                 )
          NAIF_BODY_CODE += ( -174012                       )

          NAIF_BODY_NAME += ( 'RM_PTR'                      )
          NAIF_BODY_CODE += ( -174013                       )

          NAIF_BODY_NAME += ( 'RM_NAVCAM'                   )
          NAIF_BODY_CODE += ( -174020                       )

          NAIF_BODY_NAME += ( 'RM_NAVCAM_L'                 )
          NAIF_BODY_CODE += ( -174021                       )

          NAIF_BODY_NAME += ( 'RM_NAVCAM_R'                 )
          NAIF_BODY_CODE += ( -174022                       )

          NAIF_BODY_NAME += ( 'RM_LOCCAM'                   )
          NAIF_BODY_CODE += ( -174030                       )

          NAIF_BODY_NAME += ( 'RM_LOCCAM_L'                 )
          NAIF_BODY_CODE += ( -174031                       )

          NAIF_BODY_NAME += ( 'RM_LOCCAM_R'                 )
          NAIF_BODY_CODE += ( -174032                       )

          NAIF_BODY_NAME += ( 'RM_DRILL_POS_FIX'            )
          NAIF_BODY_CODE += ( -174040                       )

          NAIF_BODY_NAME += ( 'RM_DRILL_POS_MOV'            )
          NAIF_BODY_CODE += ( -174041                       )

          NAIF_BODY_NAME += ( 'RM_DRILL_TIP_FIX'            )
          NAIF_BODY_CODE += ( -174042                       )

          NAIF_BODY_NAME += ( 'RM_DRILL_TIP_MOV'            )
          NAIF_BODY_CODE += ( -174043                       )

          NAIF_BODY_NAME += ( 'RM_ALD'                      )
          NAIF_BODY_CODE += ( -174050                       )

          NAIF_BODY_NAME += ( 'RM_ALD_CSTM'                 )
          NAIF_BODY_CODE += ( -174051                       )

          NAIF_BODY_NAME += ( 'RM_ALD_CSTM_FIX'             )
          NAIF_BODY_CODE += ( -174052                       )

          NAIF_BODY_NAME += ( 'RM_ALD_CSTM_MOV'             )
          NAIF_BODY_CODE += ( -174053                       )

          NAIF_BODY_NAME += ( 'RM_ALD_PSDDS'                )
          NAIF_BODY_CODE += ( -174055                       )

          NAIF_BODY_NAME += ( 'RM_ALD_PSHS'                 )
          NAIF_BODY_CODE += ( -174058                       )

          NAIF_BODY_NAME += ( 'RM_SA1_PRI'                  )
          NAIF_BODY_CODE += ( -174062                       )

          NAIF_BODY_NAME += ( 'RM_SA1_SEC'                  )
          NAIF_BODY_CODE += ( -174063                       )

          NAIF_BODY_NAME += ( 'RM_SA2_PRI'                  )
          NAIF_BODY_CODE += ( -174065                       )

          NAIF_BODY_NAME += ( 'RM_SA2_SEC'                  )
          NAIF_BODY_CODE += ( -174066                       )

          NAIF_BODY_NAME += ( 'RM_BOGIE_LF'                 )
          NAIF_BODY_CODE += ( -174071                       )

          NAIF_BODY_NAME += ( 'RM_BOGIE_LR'                 )
          NAIF_BODY_CODE += ( -174074                       )

          NAIF_BODY_NAME += ( 'RM_BOGIE_RR'                 )
          NAIF_BODY_CODE += ( -174076                       )

          NAIF_BODY_NAME += ( 'RM_WHEEL_LF'                 )
          NAIF_BODY_CODE += ( -174081                       )

          NAIF_BODY_NAME += ( 'RM_WHEEL_LM'                 )
          NAIF_BODY_CODE += ( -174082                       )

          NAIF_BODY_NAME += ( 'RM_WHEEL_RF'                 )
          NAIF_BODY_CODE += ( -174083                       )

          NAIF_BODY_NAME += ( 'RM_WHEEL_RM'                 )
          NAIF_BODY_CODE += ( -174084                       )

          NAIF_BODY_NAME += ( 'RM_WHEEL_LR'                 )
          NAIF_BODY_CODE += ( -174085                       )

          NAIF_BODY_NAME += ( 'RM_WHEEL_RR'                 )
          NAIF_BODY_CODE += ( -174086                       )

      \begintext


   PanCam:
   -----------
      RM_PANCAM              -174100
      RM_PANCAM_WAC_L        -174110
      RM_PANCAM_WAC_R        -174120
      RM_PANCAM_HRC          -174130

      The mappings summarised in this table are implemented by the keywords
      below.

      \begindata

         NAIF_BODY_NAME += ( 'RM_PANCAM'                   )
         NAIF_BODY_CODE += ( -174100                       )

         NAIF_BODY_NAME += ( 'RM_PANCAM_WAC_L'             )
         NAIF_BODY_CODE += ( -174110                       )

         NAIF_BODY_NAME += ( 'RM_PANCAM_WAC_R'             )
         NAIF_BODY_CODE += ( -174120                       )

         NAIF_BODY_NAME += ( 'RM_PANCAM_HRC'               )
         NAIF_BODY_CODE += ( -174130                       )

      \begintext


   ISEM:
   -----------
      RM_ISEM                -174200

      The mappings summarised in this table are implemented by the keywords
      below.

         \begindata

            NAIF_BODY_NAME += ( 'RM_ISEM'                     )
            NAIF_BODY_CODE += ( -174200                       )

         \begintext

   ADRON-RM:
   -----------
      RM_ADRON-RM          -174300

      The mappings summarised in this table are implemented by the keywords
      below.

      \begindata

         NAIF_BODY_NAME += ( 'RM_ADRON-RM'                 )
         NAIF_BODY_CODE += ( -174300                       )

      \begintext


   WISDOM:
   -----------
      RM_WISDOM              -174400
      RM_WISDOM_ANT1         -174410
      RM_WISDOM_ANT1         -174410

      The mappings summarised in this table are implemented by the keywords
      below.

      \begindata

         NAIF_BODY_NAME += ( 'RM_WISDOM'                   )
         NAIF_BODY_CODE += ( -174400                       )

         NAIF_BODY_NAME += ( 'RM_WISDOM_ANT1'              )
         NAIF_BODY_CODE += ( -174410                       )

         NAIF_BODY_NAME += ( 'RM_WISDOM_ANT2'              )
         NAIF_BODY_CODE += ( -174420                       )

      \begintext


   MaMiss:
   -----------
      RM_MAMISS              -174500

      The mappings summarised in this table are implemented by the keywords
      below.

      \begindata

         NAIF_BODY_NAME += ( 'RM_MAMISS'                   )
         NAIF_BODY_CODE += ( -174500                       )

      \begintext


   CLUPI:
   -----------
      RM_CLUPI               -174600
      RM_CLUPI_FOV1          -174601
      RM_CLUPI_FOV2          -174602
      RM_CLUPI_FOV3          -174603
      RM_CLUPI_DRILL_TIP     -174620
      RM_CLUPI_BRACKET       -174630

      The mappings summarised in this table are implemented by the keywords
      below.

      \begindata

         NAIF_BODY_NAME += ( 'RM_CLUPI'                    )
         NAIF_BODY_CODE += ( -174600                       )

         NAIF_BODY_NAME += ( 'RM_CLUPI_FOV1'               )
         NAIF_BODY_CODE += ( -174601                       )

         NAIF_BODY_NAME += ( 'RM_CLUPI_FOV2'               )
         NAIF_BODY_CODE += ( -174602                       )

         NAIF_BODY_NAME += ( 'RM_CLUPI_FOV3'               )
         NAIF_BODY_CODE += ( -174603                       )

         NAIF_BODY_NAME += ( 'RM_CLUPI_DRILL_TIP'          )
         NAIF_BODY_CODE += ( -174620                       )

         NAIF_BODY_NAME += ( 'RM_CLUPI_BRACKET'            )
         NAIF_BODY_CODE += ( -174630                       )

      \begintext


   Sites:
   -----------
      RM_SITE_000            -174700 (synonym: RM_LANDING_SITE)
      RM_SITE_NNN            -174XXX

      The mappings summarised in this table are implemented by the keywords
      below.

      \begindata

         NAIF_BODY_NAME += ( 'RM_SITE_000'                )
         NAIF_BODY_CODE += ( -174700                      )

         NAIF_BODY_NAME += ( 'RM_LANDING_SITE'            )
         NAIF_BODY_CODE += ( -174700                      )

         NAIF_BODY_NAME += ( 'RM_SITE_001'                )
         NAIF_BODY_CODE += ( -174701                      )

         NAIF_BODY_NAME += ( 'RM_SITE_002'                )
         NAIF_BODY_CODE += ( -174702                      )

         NAIF_BODY_NAME += ( 'RM_SITE_003'                )
         NAIF_BODY_CODE += ( -174703                      )

         NAIF_BODY_NAME += ( 'RM_SITE_004'                )
         NAIF_BODY_CODE += ( -174704                      )

         NAIF_BODY_NAME += ( 'RM_SITE_005'                )
         NAIF_BODY_CODE += ( -174705                      )

         NAIF_BODY_NAME += ( 'RM_SITE_006'                )
         NAIF_BODY_CODE += ( -174706                      )

         NAIF_BODY_NAME += ( 'RM_SITE_007'                )
         NAIF_BODY_CODE += ( -174707                      )

         NAIF_BODY_NAME += ( 'RM_SITE_008'                )
         NAIF_BODY_CODE += ( -174708                      )

         NAIF_BODY_NAME += ( 'RM_SITE_009'                )
         NAIF_BODY_CODE += ( -174709                      )

         NAIF_BODY_NAME += ( 'RM_SITE_010'                )
         NAIF_BODY_CODE += ( -174710                      )

         NAIF_BODY_NAME += ( 'RM_SITE_011'                )
         NAIF_BODY_CODE += ( -174711                      )

         NAIF_BODY_NAME += ( 'RM_SITE_012'                )
         NAIF_BODY_CODE += ( -174712                      )

         NAIF_BODY_NAME += ( 'RM_SITE_013'                )
         NAIF_BODY_CODE += ( -174713                      )

         NAIF_BODY_NAME += ( 'RM_SITE_014'                )
         NAIF_BODY_CODE += ( -174714                      )

         NAIF_BODY_NAME += ( 'RM_SITE_015'                )
         NAIF_BODY_CODE += ( -174715                      )

         NAIF_BODY_NAME += ( 'RM_SITE_016'                )
         NAIF_BODY_CODE += ( -174716                      )

      \begintext


Marc Costa's avatar
Marc Costa committed
End of FK file.