PythonのFW ROS を入れる

Pythonを練習するのにROS(ロボットOS)を入れるのは本末転倒か?
ROSはPythonのRobot-FW(フレームワーク)。

インストール対象はUbuntuだが、Slackにも入れれるかやってみる。
ROS2 install slackware、でググった:
https://docs.ros.org/en/crystal/Installation/Linux-Install-Binary.html
https://docs.ros.org/en/foxy/Installation/Alternatives.html
https://docs.ros.org/en/foxy/Installation/Alternatives/Ubuntu-Install-Binary.html#downloading-ros-2

Slackbuildsでdpkgをmake/installして、
https://slackbuilds.org/repository/15.0/development/dpkg/
python3-rosdep.debを採ってきて展開するか。
aptとdpkgを入れようかと思ったが、debian-poolから持ってくればいいだけのハズ。
http://ftp.debian.org/debian/pool/main/r/ros-rosdep/

と思ったが、持ってくるdebが1個くらいならいいが、ros-*やros2-*のディレクトリが沢山あって
全部探すのはメンドクサイ。http://ftp.debian.org/debian/pool/main/r/
やっぱaptとdpkgをmake/installするか。
https://seesaawiki.jp/lifewithslackzaurus_15_0/d/apt%2cdpkg%20%a4%f2%c6%fe%a4%ec%a4%eb

Add the ROS 2 apt repository
$ sudo apt install software-properties-common (debian特有?やめるかと思ったがapt_updateに必要?)
$ sudo add-apt-repository universe (debian特有?やめるかと思ったがapt_updateに必要?)
Downloading ROS2
https://github.com/ros2/ros2/releases からDL ros2-foxy-20221021-linux-focal-amd64.tar.bz2
$ mkdir ros2_foxy
$ cd ros2_foxy
$ tar xf ~/Downloads/ros2-foxy-20221021-linux-focal-amd64.tar.bz2
Installing and initializing rosdep
$ sudo apt update
$ sudo apt install -d python3-rosdep
$ sudo rosdep init
$ rosdep update

$ sudo apt install -d ros-foxy-desktop python3-argcomplete
$ sudo apt install -d ros-foxy-ros-base python3-argcomplete
$ sudo apt install -d ros-dev-tools

参考URL:
ROSとは、でググった:
https://ja.wikipedia.org/wiki/Robot_Operating_System
debian deb 展開、でググった:
https://tech.withsin.net/2017/03/27/dpkg-ar/
ros2 チュートリアル、でググった: 2024.01
https://docs.ros.org/en/foxy/Tutorials.html
https://qiita.com/NeK/items/7ac0f4ec10d51dbca084
\
ROS講座10 カスタムROSメッセージ
https://qiita.com/srs/items/7ac023c549e585caeed0
std::vector<型>、std::unordered_set<型>
https://zenn.dev/reputeless/books/standard-cpp-for-competitive-programming/viewer/library-vector
テンプレート – C++ 入門
https://rinatz.github.io/cpp-book/ch09-01-function-templates/
C++ テンプレート宣言時のclassとtypenameの違いと使い分け
https://marycore.jp/prog/cpp/template-class-typename/

 

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です