2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Cartographer導入を簡単に? on Turtlebot3

Last updated at Posted at 2021-09-17

前章

Turtlebot3のデフォルトslam-methodはgmappingですが、生成されるマップの出来栄えにちょっと不満を感じたのてCartographerを使ってみることにしました.
ROBOTISのサイトにはCartographerはソースを落としてきてビルドインストールする方法が提示されています(Read more about other SLAM methods内)

しかしながらこの方法、ビルドが必ずしも成功するとは限らない(投稿者はprotobuf系でエラーしギブアップ)うえ、以降のワークスペースのビルドにはcatkin_make_isolatedを使用しなければいけません
ROSをある程度理解している個人が触る分にはいいのですが、その環境を他の人が使う場合に戸惑いを与えてしまいます.

というわけで他の方法を調べた結果,どうやらこの方法使えるんじゃないか?を記しておきます.記事もなかなかヒットしなかったので,常識の範疇なのかもしれません

環境

  • Ububtu18.04
  • ROS melodic

本文

このインストールだけでよかった…

$ sudo apt install ros-melodic-cartographer-ros ros-melodic-cartographer-rviz

本文終わり.

turtlebot3 simulationで利用する場合

turtlebot3 Simulationにて,gazebo上でCartographerを使用したslamをする場合は
Run SLAM Node

$ roslaunch turtlebot3_slam turtlebot3_slam.launch slam_methods:=cartographer configuration_basename:=turtlebot3_lds_2d_gazebo.lua

と,argを1つ追加で設定する必要があります.

デフォルトはturtlebot3_lds_2d.luaですね.
違いは22行目だけで,そこのコメントには
imu_link, If you are using gazebo, use 'base_footprint' (libgazebo_ros_imu's bug)
と書かれていました.
いつかこのバグが解決されたら良いですね…

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?