5 from random
import random
6 rospy.init_node(
"pictogram_sample")
7 p = rospy.Publisher(
"/pictogram", Pictogram)
11 pictograms = [
"phone",
220 "chevron-small-left",
221 "chevron-small-down",
223 "chevron-small-right",
227 "chevron-thin-right",
368 "fa-question-circle",
382 "fa-exclamation-circle",
388 "fa-exclamation-triangle",
402 "fa-facebook-square",
425 "fa-hand-point-right",
426 "fa-hand-point-left",
428 "fa-hand-point-down",
429 "fa-arrow-circle-left",
430 "fa-arrow-circle-right",
431 "fa-arrow-circle-up",
432 "fa-arrow-circle-down",
457 "fa-pinterest-square",
458 "fa-google-plus-square",
490 "fa-angle-double-left",
491 "fa-angle-double-right",
492 "fa-angle-double-up",
493 "fa-angle-double-down",
528 "fa-microphone-slash",
530 "fa-fire-extinguisher",
533 "fa-chevron-circle-left",
534 "fa-chevron-circle-right",
535 "fa-chevron-circle-up",
536 "fa-chevron-circle-down",
551 "fa-caret-square-down",
552 "fa-caret-square-up",
553 "fa-caret-square-right",
564 "fa-sort-alpha-down",
566 "fa-sort-amount-down",
568 "fa-sort-numeric-down",
569 "fa-sort-numeric-up",
603 "fa-caret-square-left",
610 "fa-envelope-square",
619 "fa-stumbleupon-circle",
649 "fa-file-powerpoint",
674 "fa-share-alt-square",
712 "fa-closed-captioning",
724 "fa-cart-arrow-down",
734 "fa-transgender-alt",
758 "fa-battery-three-quarters",
760 "fa-battery-quarter",
771 "fa-hourglass-start",
784 "fa-creative-commons",
789 "fa-odnoklassniki-square",
796 "fa-internet-explorer",
826 "fa-shopping-basket",
835 "fa-universal-access",
837 "fa-audio-description",
840 "fa-assistive-listening-systems",
841 "fa-american-sign-language-interpreting",
851 "fa-snapchat-square",
869 "fa-thermometer-full",
870 "fa-thermometer-three-quarters",
871 "fa-thermometer-half",
872 "fa-thermometer-quarter",
873 "fa-thermometer-empty",
877 "fa-window-maximize",
878 "fa-window-minimize",
905 "fa-long-arrow-alt-down",
906 "fa-long-arrow-alt-left",
907 "fa-long-arrow-alt-right",
908 "fa-long-arrow-alt-up",
909 "fa-expand-arrows-alt",
913 "fa-arrow-alt-circle-down",
914 "fa-arrow-alt-circle-left",
915 "fa-arrow-alt-circle-right",
916 "fa-arrow-alt-circle-up",
917 "fa-font-awesome-alt",
918 "fa-external-link-alt",
919 "fa-external-link-square-alt",
921 "fa-accessible-icon",
941 "fa-buromobelexperte",
943 "fa-cloud-download-alt",
944 "fa-cloud-upload-alt",
960 "fa-dribbble-square",
965 "fa-facebook-messenger",
968 "fa-fort-awesome-alt",
980 "fa-hacker-news-square",
1000 "fa-map-marker-alt",
1004 "fa-microphone-alt",
1010 "fa-money-bill-alt",
1021 "fa-phoenix-framework",
1047 "fa-tachometer-alt",
1048 "fa-telegram-plane",
1060 "fa-whatsapp-square",
1063 "fa-wordpress-simple",
1066 "fa-yandex-international",
1082 "fa-font-awesome-flag",
1094 "fa-youtube-square",
1096 "fa-basketball-ball",
1117 "fa-volleyball-ball",
1122 "fa-briefcase-medical",
1125 "fa-clipboard-check",
1126 "fa-clipboard-list",
1132 "fa-file-medical-alt",
1135 "fa-hospital-symbol",
1140 "fa-prescription-bottle",
1141 "fa-prescription-bottle-alt",
1160 "fa-hand-holding-heart",
1161 "fa-hand-holding-usd",
1179 "fa-pied-piper-hat",
1180 "fa-font-awesome-logo-full",
1181 "fa-creative-commons-by",
1182 "fa-creative-commons-nc",
1183 "fa-creative-commons-nc-eu",
1184 "fa-creative-commons-nc-jp",
1185 "fa-creative-commons-nd",
1186 "fa-creative-commons-pd",
1187 "fa-creative-commons-pd-alt",
1188 "fa-creative-commons-remix",
1189 "fa-creative-commons-sa",
1190 "fa-creative-commons-sampling",
1191 "fa-creative-commons-sampling-plus",
1192 "fa-creative-commons-share",
1193 "fa-creative-commons-zero",
1200 "fa-user-alt-slash",
1201 "fa-user-astronaut",
1216 "fa-first-order-alt",
1218 "fa-galactic-republic",
1219 "fa-galactic-senate",
1223 "fa-phoenix-squadron",
1225 "fa-trade-federation",
1226 "fa-wolf-pack-battalion",
1227 "fa-balance-scale-left",
1228 "fa-balance-scale-right",
1231 "fa-broadcast-tower",
1234 "fa-chalkboard-teacher",
1256 "fa-greater-than-equal",
1261 "fa-less-than-equal",
1263 "fa-microphone-alt-slash",
1264 "fa-money-bill-wave",
1265 "fa-money-bill-wave-alt",
1267 "fa-money-check-alt",
1272 "fa-project-diagram",
1276 "fa-ruler-combined",
1277 "fa-ruler-horizontal",
1278 "fa-ruler-vertical",
1304 "fa-concierge-bell",
1308 "fa-digital-tachograph",
1310 "fa-drafting-compass",
1319 "fa-file-invoice-dollar",
1320 "fa-file-prescription",
1321 "fa-file-signature",
1329 "fa-glass-martini-alt",
1331 "fa-globe-americas",
1337 "fa-grin-beam-sweat",
1340 "fa-grin-squint-tears",
1344 "fa-grin-tongue-squint",
1345 "fa-grin-tongue-wink",
1347 "fa-grip-horizontal",
1349 "fa-headphones-alt",
1358 "fa-kiss-wink-heart",
1366 "fa-map-marked-alt",
1371 "fa-meh-rolling-eyes",
1381 "fa-plane-departure",
1397 "fa-suitcase-rolling",
1406 "fa-umbrella-beach",
1409 "fa-weight-hanging",
1410 "fa-wine-glass-alt",
1422 "fa-charging-station",
1450 "fa-comment-dollar",
1451 "fa-comments-dollar",
1454 "fa-envelope-open-text",
1462 "fa-journal-whills",
1470 "fa-pastafarianism",
1472 "fa-place-of-worship",
1479 "fa-search-location",
1481 "fa-square-root-alt",
1482 "fa-star-and-crescent",
1491 "fa-acquisitions-incorporated",
1500 "fa-d-and-d-beyond",
1506 "fa-drumstick-bite",
1508 "fa-fantasy-flight-games",
1528 "fa-skull-crossbones",
1537 "fa-wizards-of-the-coast",
1539 "fa-cloud-meatball",
1540 "fa-cloud-moon-rain",
1542 "fa-cloud-showers-heavy",
1543 "fa-cloud-sun-rain",
1553 "fa-temperature-high",
1554 "fa-temperature-low",
1566 "fa-canadian-maple-leaf",
1571 "fa-compress-arrows-alt",
1586 "fa-grip-lines-vertical",
1605 "fa-satellite-dish",
1632 "fa-clinic-medical",
1633 "fa-comment-medical",
1637 "fa-hand-middle-finger",
1641 "fa-laptop-medical",
1646 "fa-trash-restore-alt",
1670 "fa-phone-square-alt",
1673 "fa-sort-alpha-down-alt",
1674 "fa-sort-alpha-up-alt",
1675 "fa-sort-amount-down-alt",
1676 "fa-sort-amount-up-alt",
1677 "fa-sort-numeric-down-alt",
1678 "fa-sort-numeric-up-alt",
1684 "fa-hat-cowboy-side",
1692 "fa-firefox-browser",
1695 "fa-pied-piper-square",
1700 while not rospy.is_shutdown():
1702 msg.action = Pictogram.JUMP_ONCE
1703 msg.header.frame_id =
"/base_link"
1704 msg.header.stamp = rospy.Time.now()
1705 msg.pose.position.z = 1.6
1706 msg.pose.orientation.w = 0.7
1707 msg.pose.orientation.x = 0
1708 msg.pose.orientation.y = -0.7
1709 msg.pose.orientation.z = 0
1710 msg.mode = Pictogram.PICTOGRAM_MODE
1714 msg.color.r = 25 / 255.0
1715 msg.color.g = 255 / 255.0
1716 msg.color.b = 240 / 255.0
1718 msg.character = pictograms[counter]
1721 counter = counter + 1
1722 if len(pictograms) == counter: