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

ROS 2 + Dockerによるフォールトトレランス入門

ROS 2 + Dockerによるフォールトトレランス入門

ROS Japan UG #11 LT大会 https://rosjp.connpass.com/event/58755/ の発表資料です。Dockerのフォールトトレランス機能をROS 2に導入して実験しました。

Yutaka Kondo

July 19, 2017
Tweet

More Decks by Yutaka Kondo

Other Decks in Programming

Transcript

  1. ॕ304#FUBϦϦʔε •  IUUQTHJUIVCDPNSPTSPTXJLJ#FUB0WFSWJFX •  IUUQSPTZPVUBMLKQQPTUSPTCFUB –  6CVOUV 8JOEPXT NBD044JFSSBͷެࣜαϙʔτ – 

    %%44FDVSJUZͷαϙʔτʢTSPTʣ –  %FCJBOύοέʔδͷ੔උ –  ෳ਺3.8࣮૷ͷத͔Β࣮ߦ࣌ʹ೚ҙͷ3.8࣮૷Λબ୒Մೳ –  ίϚϯυϥΠϯΠϯλϑΣʔεSPTͷ௥Ճ –  ໊લۭؒͷαϙʔτ –  ϩΪϯάϚΫϩSDVUJMTͷ࣮૷ 
  2. 304%PDLFSΠϝʔδ •  ίϯςφΠϝʔδͷμ΢ϯϩʔυ –  $ docker pull youtalk/ros2:beta2 –  IUUQTIVCEPDLFSDPNSZPVUBMLSPT

    •  ίϯςφͷىಈ –  $ docker run -it youtalk/ros2:beta2 •  ࢒೦ͳ͕Βɺެࣜ304%PDLFS͸ʢҰ࣌తʹʣɹɹɹ ͳ͘ͳΓ·ͨ͠ –  EPDLFSQVMMPTSGSPTMBUFTU –  IUUQTHJUIVCDPNPTSGEPDLFS@JNBHFTQVMM 
  3. 304ͷಛ௃   04ඇґଘ   ࢈ۀքͰ޿͘࢖ΘΕ͍ͯΔϛυϧ΢ΣΞ%%4Λ࠾༻   ঎༻ɾඇ঎༻ͷ഑৴ϓϩτίϧΛબ୒Մೳ   6%1ͱ2P4ͷ૊Έ߹ΘͤʹΑΔϦΞϧλΠϜ௨৴࣮ݱ  

    ௿ੑೳͳܭࢉػͰ΋ʢ෦෼తʹʣӡ༻Մೳ   ηΩϡϦςΟػೳͷαϙʔτ   ୯Ұো֐఺ʢ304.BTUFSʣ͕ͳ͍ –  %PDLFSͱͷ૬ੑൈ܈ʂ 
  4. 304BTB.JDSPTFSWJDF •  304ͷϊʔυҰͭҰͭΛ%PDLFSίϯςφͰӡ༻ –  1VCMJTIFS΋4VCTDSJCFS΋͢΂ͯίϯςφ࣮ߦ –  ϊʔυ.JDSPTFSWJDF  •  %PDLFSͷΤίγεςϜΛ࠶ར༻

    –  SPTMBVODI୅ΘΓͷ%PDLFS$PNQPTF –  ϊʔυҟৗऴྃ࣌ʹࣗಈ࠶ىಈ –  %PDLFS4XBSNϞʔυͰ෼ࢄίϯϐϡʔςΟϯά 
  5. ίϯςφͷࣗಈ࠶ىಈ •  ίϯςφҟৗऴྃ࣌ʹࣗಈతʹ࠶ىಈ –  IUUQTEPDTEPDLFSDPNEPDLFSDMPVEBQQTBVUPSFTUBSU –  SFTUBSUΦϓγϣϯ •  OP࠶ىಈ͠ͳ͍ʢσϑΥϧτʣ • 

    POGBJMVSFऴྃεςʔλε͕Ҏ֎ͷ৔߹ʹ࠶ىಈ •  POGBJMVSF9ऴྃεςʔλε͕Ҏ֎ͷ৔߹ʹ9ճ࠶ىಈ •  BMXBZTऴྃεςʔλε͕ԿͰ͋Ζ͏ͱ࠶ىಈ 
  6. ࣮ݧ •  1VCMJTIFS –  $ docker run -it --rm --net

    ros2 ɹɹɹɹɹ youtalk/ros2:beta2 /bin/bash -c ɹɹɹɹɹɹɹ 'ros2 run demo_nodes_cpp talker’ •  4VCTDSJCFS –  $ docker run --restart=on-failure --net ros2 ɹɹ -v `pwd`/youtalk:/youtalk youtalk/ros2:beta2 ɹɹ /bin/bash -c ‘cd /youtalk; ɹɹɹɹɹɹɹɹɹɹɹɹ . install/local_setup.bash; ɹɹɹɹɹɹɹɹɹɹ ros2 run demo_nodes_cpp listener_failable’  ࣮ݧͷ४උͱ݁ՌˠIUUQSPTZPVUBMLKQQPTUGBVMUUPMFSBODF