Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LEGO Mindstorms EV3/NXTのROS indigo対応

LEGO Mindstorms EV3/NXTのROS indigo対応

4/11に開催された「第5回ROS勉強会」の発表資料です。
ROS electric時代に開発されていたMindstorms NXTのROSコントローラnxt_rosパッケージを拡張し、indigo対応とMindstorms EV3にも対応させたmindstorms_rosの紹介です。
https://github.com/youtalk/mindstorms_ros

Yutaka Kondo

April 11, 2015
Tweet

More Decks by Yutaka Kondo

Other Decks in Programming

Transcript

  1. -&(0.JOETUPSNT&7/95
    304JOEJHPରԠ
    ۙ౻๛

    IUUQZPVUBMLKQSPT
    !ZPVUBML
    ୈճ304ษڧձ

    View full-size slide

  2. ۙ౻๛ത࢜ʢ޻ֶʣ
    •  ಸྑઌ୺େখּݪݚڀࣨͰ
    ΞϯυϩΠυͷਓؒΒ͍͠ɹ
    ৼΔ෣͍Λݚڀ
    •  ݱࡏ͸ΧϫμϩϘςΟΫεͰ
    ڠಇϩϘοτͷ։ൃʹैࣄ
    •  304ྺͪΐ͏Ͳ೥
    •  HJUIVC UXJUUFS!ZPVUBML

    View full-size slide

  3. ͜Ε·Ͱͷൃදࢿྉ

    ZPVUBMLKQSPTKQSE
    ZPVUBMLKQSPTKQOE ZPVUBMLKQSPTKQUI

    View full-size slide


  4. /&95"(&01&/΋͍͍͚Ͳɺ
    ࢓ࣄ΋झຯ΋/&95"(&͸
    ຯؾͳ͍ͳ͊
    صͷ্Ͱ༡΂Δ
    ࣗ෼ઐ༻ϩϘοτཉ͍͠ͳ͊
    Ͱ΋ϋʔυ΢ΣΞͷ
    ஌ࣝͳ͍ͳ͊
    ͦ͏͍͑͹ੲ-&(0
    ޷͖ͩͬͨͳ͊
    ͓ͬɺϚΠϯυετʔϜ
    ͷ304υϥΠόͳ͍ͧʂ
    Զ͕΍Δ͔͠
    ͳ͍ʂ
    γϛϡϨʔγϣϯͩͱ
    ͭ·ΒΜʂ
    304΋ͬͱਂ͘
    ஌Γ͍ͨͳ͊

    View full-size slide

  5. -&(0.JOETUPSNT&7
    •  εϖοΫڧԽ͞Εͨڭҭ൛͕͓͢͢Ί
    •  "3. .#ϝϞϦ 64#ϗετ NJDSP4%εϩοτ
    •  -BC7*&8ͱ͍͏ϏδϡΞϧϓϩάϥϛϯάιϑτɹɹɹɹ
    ΋͋Δ͚Ͳɺ׽͸໧ͬͯ304ϓϩάϥϛϯά

    View full-size slide

  6. OYU@SPT
    •  &7ͷલੈ୅/95༻ͷ304ύοέʔδ
    –  ͨͩ͠FMFDUSJD·ͰͰϝϯςऴྃ
    –  ͜ΕΛJOEJHPରԠͤͯ͞ɺ͞Βʹ&7֦ுͤ͞Ε͹

    IUUQTZPVUVCF8F@2FBQCD

    View full-size slide

  7. 304ରԠखॱ
    •  &7
      FWEFW04ηοτΞοϓ
      QZUIPOFW SQZDΠϯετʔϧ
      &EVDBUPS7FIJDMF૊Έཱͯ
    •  1$
      304؀ڥηοτΞοϓ
      NJOETUPSNT@SPTΠϯετʔϧ

    &7
    1$
    Ϟʔλ ηϯα
    QZUIPO
    FW
    NJOETUPSNT
    @SPT
    SQZD
    304
    ϊʔυ
    304
    ϊʔυ
    304
    ϊʔυ

    View full-size slide

  8. FWEFW04
    •  ΧελϜ%FCJBO-JOVYͷFWEFWΛΠϯετʔϧ
    –  4%Χʔυʹম͍ͯૠ͚ͩ͢Ͱىಈ
    –  ࠷৽-JOVYΧʔωϧ
    –  ແઢ-"/ #MVFUPPUIΞμϓλରԠ
    –  Ϟʔλɺηϯαʹ͸ϑΝΠϧγεςϜͰΞΫηε
    •  ৄ͘͠͸IUUQXXXFWEFWPSHEPDTHFUUJOHTUBSUFE

    View full-size slide

  9. ɺQZUIPOFW SQZD
    •  QZUIPOFW
    –  FWEFWͷϞʔλɺηϯαΛૢ࡞͢Δ
    –  IUUQTHJUIVCDPNUPQJLBDIVQZUIPOFW
    –  $ easy_install python-ev3
    •  SQZD
    –  1ZUIPOίʔϧΛԕִ͔Βಁաతʹߦ͑Δ
    –  IUUQSQZDSFBEUIFEPDTPSH
    –  $ easy_install rpyc

    View full-size slide

  10. &EVDBUPS7FIJDMF
    •  ϞʔλʢΦυϝτϦ͋Γʣɿ
    –  ࠨӈλΠϠ
    –  ΞʔϜ
    •  ηϯαɿ
    –  Ϥʔ࣠δϟΠϩηϯα
    –  ௒Ի೾ηϯα
    –  Χϥʔηϯα

    IUUQSPCPUTRVBSFDPNFEVDBUJPOFWJOTUSVDUJPO
    খͯ͘͞΋
    ͍ͬͺ͠ͷҠಈϩϘοτ

    View full-size slide

  11. NJOETUPSNT@SPT
    •  ੿࡞&7 /95༻304ύοέʔδ
    –  IUUQTHJUIVCDPNZPVUBMLNJOETUPSNT@SPT
    –  OYU@SPTͷDBULJOରԠ
    ʢ/95͍࣋ͬͯͳ͍ͷͰະݕূʣ
    –  OYU@SPTΛ࠶ར༻ͯ͠FW@SPTΛ࣮૷
    –  ·ͩ·ͩЋͱ΋͍͑ͳ͍ஈ֊
    –  Ͱ΋UFMFPQ͸0,

    View full-size slide

  12. NJOETUPSNT@SPT
    •  &7
    –  $ rpyc_classic.py
    •  1$
    –  $ roslaunch ev3_robot_gyro_car robot.launch
    host:=YOUR_EV3_HOSTNAME

    View full-size slide

  13. NJOETUPSNT@SPT
    –  $ rosrun rviz rviz -d `rospack find
    ev3_robot_gyro_car`/robot.rviz

    View full-size slide

  14. NJOETUPSNT@SPT
    –  $ roslaunch nxt_teleop teleop_keyboard.launch

    IUUQZPVUVCFI18%OQO'H

    View full-size slide

  15. 50%0
    •  ࢒Γͷηϯαͷ304ରԠ
    •  ௨৴଎౓ͷվળ
    –  SQZD͸ָ͚ͩͲɺ͘͢͝஗ͯ͘ॏ͍
    •  OYU@SWJ[@QMVHJOͷJOEJHPରԠ
    •  -&(0%JHJUBM%FTJHOFSͷ%Ϟσϧͷ63%'ࣗಈม׵
    •  CMPPNʹΑΔύοέʔδϦϦʔε
    •  /95Ͱͷಈ࡞֬ೝ
    •  #SJDUSPOJDTΛ࢖ͬͯ"SVEVJOPʹ΋௅ઓ

    IUUQTXXXTBGBSJCPPLTPOMJOFDPNMJCSBSZWJFX
    NBLFMFHPBOEDIIUNM

    View full-size slide

  16. #PPUZPVSlNJOEz
    ۙ౻๛

    IUUQZPVUBMLKQSPT
    !ZPVUBML
    ୈճ304ษڧձ

    View full-size slide