就如同各位從開始的夥伴們,你們一定很想快點看到,一台可以裝上雷射LiDAR導航,自主漫遊 + 路徑規劃 + 自主避障 + 影像AI   &^$%^#%%^%^&%^  ~ 等等集合了目前self-driving 前端科技的家用小車八 !! 我們記錄一位工程師,他是如何從開始的學習、蛻變到一位 self-driving developer的過程。

話說,這一開始的動作應該也是記錄摸索的過程,不過,這卻是最真實的、殘酷與慘痛代價的經驗。希望這些記錄可以減少後面跟進的學習者們寶貴的時間。

1-1、遠端遙控機器人 – two ROS machines 通訊測試 

在此定義初階段的學習標的 :

  • 遠端遙控機器人 
  • LiDAR雷達建地圖
  • 自主導航與避障
  • 路徑規劃   (到這 ~ 基本該會的操作都已經具備了)

我們就從 “two ROS machines 通訊測試 (小烏龜遠端連線)” 開始吧 ! 

1-2、連線架構

使用裝備 : 

  • ACER i5 筆電 win10系統
  • 樹梅派 Pi4 B (2020 年最新版)

測試架構 : 

1-2、VM(虛擬機)設定網路連線

先去 Edit –> Virtual Network Editor…  指定你要用哪個虛擬機,本次用內建的VMnet1,隨即檢查它的內建分配網域,要改成192.16.1.o 的網段,以便跟目前測試網路AP所分配的IP同一個網段。 如下

接著到我們的開啟的虛擬機,去選擇 “virtual machine setting” ; 這裡我們選 Custom – VMnet1 ,來使用我們自己設定的虛擬網路

這時,你會發現 vm中的 VMnet1被分配到 192.168.1.128。 當然,若是你要自己指定其他網路等級的ip 如 10.42.xx.xx ,也可以如上圖自己指定。

此時,到pi 的終端機去檢查有無連上vm裡面的ubuntu,如下 ping 192.168.1.128。同樣地,也從vm中ping一下pi看看有無正確連上。

此時本網路個裝置測試的ip 如下 : 

 

通常在vm設定虛擬網路的時候,許多人會出現問題 ,請務必檢查電腦端網路橋接的結果要正確 : 

如下圖,網路橋接器的裝置名稱,不可以是”無法辨識的網路”,否則橋接wifi 實體網卡仍然是不成功喔 !

成功的話如下圖 : 

 

1-3. 指定ROS管理資訊發佈與接收訊息的Master機器

ROS的通訊架構其實很簡單,就像遊戲中的角色扮演,你要台ROS機器擔任甚麼角色都可以,只要一開始指定清楚即可,本次架構如下:

 

1. 編輯vm虛擬機器端的環境變數設定檔。

我們需先開起虛擬機器上的 Terminal ,輸入指令進入其中的環境變數設定檔。

使用 gedit 編輯環境變數設定檔指令:sudo gedit ~/.bashrc

檔案開啟後,在最後面加上兩行敘述,如下

export ROS_MASTER_URI=http://192.168.1.7:11311
export ROS_HOSTNAME=192.168.1.7

同樣地,在pi4 上面執行上述動作,增加以下兩行

export ROS_MASTER_URI=http://192.168.1.7:11311
export ROS_HOSTNAME=192.168.1.13

2. 在VM虛擬機中開始遙控小烏龜

先在區域網路上註冊一個 Master。註冊 Master 指令 : roscore 。我們選PC的VM虛擬機來註冊master

2. 樹莓派端執行 turtlesim_node 節點。執行 turtlesim_node 節點

指令 : rosrun turtlesim turtlesim_node

3. 虛擬機器執行 turtle_teleop_key 節點。要再開一個新的terminal,執行 turtle_teleop_key 節點

指令 : rosrun turtlesim turtle_teleop_key

以上就是所有的動作了。祝各位順利 !

 

 

Posted in ROS

1,478 thoughts on “ROS從”零”開始 – 1. two ROS machines 通訊測試 (小烏龜遠端連線)

  1. Every weekend i used to pay a visit this web site,
    for the reason that i want enjoyment, since this this
    website conations in fact pleasant funny information too.

  2. always i used to read smaller posts which also clear their motive, and that is also happening
    with this article which I am reading at this place.

  3. Woah! I’m really digging the template/theme of this website.
    It’s simple, yet effective. A lot of times
    it’s very hard to get that “perfect balance” between usability and visual appeal.
    I must say you’ve done a very good job with this.
    Also, the blog loads extremely fast for me on Firefox.
    Excellent Blog!

  4. Die Taktikkarte zu den „Alten Bekannten“ ist nicht, wie angegeben, von Shandrogar.Diese „seine“ Taktikkarten sind auch wirkliche Taktikkarten, die die benötigten Einheiten und die Anzahl der Gegner verzeichnen. Zudem Vorschläge zu der Quantität der verschiedenen angreifenden Einheiten. Dies alles ist in dieser Karte leider nicht zu finden. Eine Nummerierung bezieht sich lediglich auf eine Reihenfolge,die auch in Frage zu stellen ist.Gibt es hierzu eine nennenswerte Alternative?Für die Antwort bedanke ich mich schon im Vorraus!FGAntec

  5. It’s actually a great and useful piece of information. I’m glad that you simply shared this useful info
    with us. Please keep us up to date like this. Thanks
    for sharing.

  6. Hello my friend! I wish to say that this article is amazing, greatwritten and include almost all vital infos.I’d like to see more posts like this .

  7. Its such as you learn my mind! You seem to understand a lot about this, like you
    wrote the guide in it or something. I believe that you simply could do
    with a few p.c. to power the message home a bit, but other than that,
    that is magnificent blog. A great read. I will definitely be back.

  8. Greetings, I do think your website could possibly be having browser compatibility problems.Whenever I look at your blog in Safari, it looks fine but when opening in I.E.,it’s got some overlapping issues. I just wanted to give you a quick heads up!Other than that, excellent website!

  9. Everyone loves what you guys are usually up too. Such clever work and exposure!
    Keep up the wonderful works guys I’ve included you guys to blogroll.

  10. Its such as you read my mind! You seem to grasp so much
    approximately this, like you wrote the guide in it or something.
    I think that you simply could do with a few percent to pressure the
    message home a little bit, however instead of that, this is
    great blog. A great read. I will certainly be back.

  11. I am no longer positive where you are getting your info, but great topic.
    I must spend a while studying much more or
    working out more. Thanks for magnificent information I
    used to be in search of this information for my mission.

  12. I was more than happy to uncover this page.I want to to thank you for ones time for this particularly wonderful read!!I definitely liked every part of it and I have you saved to fav to check out new thingsin your web site.

  13. Tremendous things here. I’m very satisfied to look your post.
    Thanks a lot and I am having a look forward to touch you.
    Will you kindly drop me a mail?

  14. I love your blog.. very nice colors & theme. Did you
    design this website yourself or did you hire someone to do
    it for you? Plz respond as I’m looking to construct my own blog and would like to know
    where u got this from. many thanks

  15. Some genuinely good information, Gladiola I detected this. «The Diplomat sits in silence, watching the world with his ears.» by Leon Samson.

  16. When I initially commented I seem to have clicked on the -Notify me when new comments
    are added- checkbox and from now on each time a comment is added I receive
    four emails with the exact same comment. Perhaps there is a means you can remove me from that
    service? Thanks a lot!

  17. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I’ll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.

  18. Hello there, just became alert to your blog through Google, andfound that it’s truly informative. I am gonna watch outfor brussels. I’ll be grateful if you continue thisin future. A lot of people will be benefited fromyour writing. Cheers!

  19. I do ttrust all the ideas you’ve introduced in your post.They’re really convincing and will certaihly work. Nonetheless, thee posts are too short for newbies.May just you please lengthen them a bit from subsequent time?Thanks foor the post.

  20. Hello very cool site!! Man .. Beautiful .. Superb .. I will bookmark your website and take the feeds additionally…I’m satisfied to seek out so many helpful info here within the put up, we’d like develop extra techniques on this regard, thanks for sharing.

  21. Howdy! I could have sworn Iíve been to your blog before but after going through a few of the articles I realized itís new to me. Regardless, Iím certainly delighted I stumbled upon it and Iíll be bookmarking it and checking back regularly!

  22. I blog quite often and I truly appreciate your content. This great article has really peaked my interest. I am going to take a note of your blog and keep checking for new details about once per week. I subscribed to your Feed too.

  23. An intriguing discussion will probably be worth comment. I do believe that you can write regarding this topic, may possibly not often be a taboo subject but generally individuals are inadequate to communicate on such topics. Yet another. Cheers

  24. I’m truly enjoying the design and layout of your blog. It’s a veryeasy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a designer to create your theme?Fantastic work!

  25. I truly enjoy studying on this website , it holds great blog posts. “The longing to produce great inspirations didn’t produce anything but more longing.” by Sophie Kerr.

  26. Hey There. I found your blog using msn. This is areally well written article. I will be sure tobookmark it and return to read more of your usefulinfo. Thanks for the post. I will certainly return.

  27. Wonderful blog! I found it while searching on Yahoo News. Do you have any tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Cheers

  28. An interesting discussion is definitely worth comment. I do think that you ought to write more on this subject matter, it may not be a taboo subject but typically folks don’t discuss such topics. To the next! Many thanks!!

  29. Nice read, I just passed this onto a friend who was doing some research on that. And he actually bought me lunch since I found it for him smile Thus let me rephrase that: Thanks for lunch!

  30. Thanks on your marvelous posting! I certainly enjoyedreading it, you may be a great author. I will always bookmark your blog and will often come backsometime soon. I want to encourage you to definitely continueyour great job, have a nice morning!

  31. I’ve recently started a web site, the information you provide on this web site has helped me greatly. Thank you for all of your time & work. “Quit worrying about your health. It’ll go away.” by Robert Orben.

  32. Great blog you’ve got here.. Itís hard to find excellent writing like yours nowadays. I seriously appreciate people like you! Take care!!

  33. I need to to thank you for this good read!! I absolutely enjoyed every little bit of it. I’ve got you bookmarked to look at new things you postÖ

  34. I do agree with all the ideas you’ve offered on your post. They are really convincing and will definitely work. Still, the posts are very quick for newbies. May just you please lengthen them a bit from subsequent time? Thanks for the post.

  35. Oh my goodness! Incredible article dude! Thanks, However I am having difficulties with your RSS.I don’t understand why I cannot join it. Is there anyone else having identicalRSS problems? Anybody who knows the answer will you kindly respond?Thanks!!

  36. บาคาร่าเกมไพ่ยอดฮิตติดอกติดใจกันทั่วบ้านทั้งเมืองเนื่องจากเป็นเกมไพ่ที่เล่นง่ายจบเกมไว จึงทำให้ได้เงินไว UFABET ได้เก็บเกมบาคาร่าออนไลน์มาไว้แบบครบทุกค่ายให้ท่านได้เลือกเล่นอย่างจุใจ รองรับด้วยระบบฝากถอนอัตโนมัติไม่ยุ่งยากอีกอีกต่อไปแล้วนะครับ

  37. Adopt full aluminium alloy panel structure, anodized surface process, ultra-narrow frame, rounded corner design, fashion and beautiful appearance
    4mm tempered glass with anti glare 3.Advanced IR 20 touching technology.
    The OPS host module adopts plug structure design, internal Inter standard 80pin interface, without any external power line and signal line, which is convenient for inspection, maintenance and upgrade, and achieves the aesthetic effect of the machine
    Front side interface: Public USB*3,Touch-USB*1,HDMI*1
    Front 8 buttons: POWER ,Input ,Menu, V+, V-, ECO, Home, PC-POWER(Power button for OPS PC only)
    Front side speakers, Prevents noise distortion due to embedding
    Adopt a high-performance infrared touch technology with anti-blocking and anti-stain functions, and the touch reception will not affect normal writing after blocking at single or multiple infrared transmitting points;

  38. Türkiye’nin yıllardır vazgeçilmez oyun platformu ve
    sitesi olan Mynet Oyun’un keyifli dünyasına
    hoş geldiniz! Tek kişilik oyunlar, MMO oyunları
    ve çok kişilik oyunlar ın yıllardır vazgeçilmezi olan Mynet Oyun,
    her gün güncellenen en iyi ve popüler oyunları ile 7’den 70’e her yaş grubundan oyuncunun oynayabileceği.

  39. Para çekim için alt limti 50 TL iken üst limit 100.000 TL’ye kadar çıkabilmektedir.
    Ne kadar çekilmek istenildiği ise tamamen üyelerin isteklerine kalmış
    bir durum olacaktır. Royalcasino Para Çekme Kullanıcıların üye olurken merak
    ettiği konulardan biri para çekme işlemleridir.

  40. Kazanan oyun stratejileri. Online oyunlar ücretsiz para
    kazanın bu nedenle, her yıl milyonlarca turisti
    ağırlayan ve birçok ilk ve en ile adı eşanlamlı bir şehir.
    Örneğin, ancak belirlenen kuralları net bir şekilde izlerseniz.
    Bilgisayarınız için en iyi ücretsiz yazılımları
    edinin, futuriti casino herhangi bir sorun yaşamadan kar elde
    edebilirsiniz. Firmadan araç.

  41. Tarihli ve 4.2022.-16042 sayılı Bilgi Teknolojileri
    ve İletişim Kurumu kararıyla erişime engellenmiştir.

    has been blocked by the decision dated and numbered 4.2022.-16042
    of Information and Communication Technologies Authority.

  42. Video yengesini minibüsde sikiyor turfali arap olgun kadını sikiyor search incredibly difficult to
    find, but the editors of did their best and collected
    1008 XXX porn videos. We are glad to inform you, you don’t have to search for no need to search
    all over the internet for the desired video. Below are sexiest videos with yengesini minibüsde
    sikiyor turfali arap olgun.

  43. I was very pleased to discover this website. I want to to thank you for ones time for this
    particularly wonderful read!! I definitely appreciated every part of it and i also have you saved to fav to look at new
    things in your website.

  44. It’s remarkable to go to see this web site and reading the views of all mates on the topic of this paragraph, while
    I am also zealous of getting familiarity.

  45. คาสิโน Ambbet says:

    เว็บเดิมพันออนไลน์สมัยใหม่ คาสิโน Ambbet เว็บคาสิโนสด สตรีมออนไลน์จากต่างประเทศสถานที่จริง ส่งตรงพร้อมเสิร์ฟความสนุก เเละ เงินรางวัลให้กับนักเดิมพันทุก่าน คาสิโนเว็บใหญ่ เว็บตรง ไม่ผ่านเอเย่นต์ เเหล่งรวมเกมเดิมพันออนไลน์ครบวงจร สล็อต บาคาร่า มีให้เล่นครบทุกค่าย เดิมพันได้อย่างอิสระ เสถียร ลื่นไหล ไม่เด้ง ไม่หลุด เลือกเดิมพันกับ Ambbet รับโบนัสฟรีทุกวัน

  46. «Миссия и предназначение» «Идея всей жизни!»
    Миссия – «Что я делаю?» Нет.
    Ценности – «Что для меня важно?» тоже нет.

    Видение – «Куда я иду (хочу придти)?» уже ближе.

    Миссия – стержень: вектор: который определяет смысл!

    Вбивай в поиск: “опсуимолог” и получи актуальные
    контакты.
    Ты же знаешь кто такой опсуимолог?

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>