Question about $ cd linorobot2/linorobot2_navigation/maps

110 views
Skip to first unread message

oto moov

unread,
Aug 17, 2022, 10:39:05 AM8/17/22
to LINOROBOT
Greetings and good day. Thank you for your help and contribution to linorobot2.

my specifications:
1. Raspberry pi 4B 4GB
2. Ubuntu budgie 22.04
3. Teensy 4.0 microcontroller 
4. GY85 IMU
6. Cytron 225rpm motor with encoder
7. Cytron motor driver mdd10a

Rviz + Lidar is ok, teleop is ok. I was able to remote control my machine using android with termux, wifi, ssh.
$ ros2 run teleop_twist_keyboard teleop_twist_keyboard

I have a question regarding "3.3 Save the map"
$ cd linorobot2/linorobot2_navigation/maps
$ ros2 run nav2_map_server map_saver_cli -f <map_name> --ros-args -p save_map_timeout:=10000

How to get "linorobot2/linorobot2_navigation/maps" ?
Please point me to the tutorial step that I might miss. Thank you.

currently, the workspace I have is,
linorobot2_ws
linorobot2_hardware

save the map.png
rviz.png

oto moov

unread,
Aug 18, 2022, 3:44:15 AM8/18/22
to LINOROBOT
Update: I decide to,
$ git clone -b $ROS_DISTRO https://github.com/linorobot/linorobot2

then,
$ cd linorobot2/linorobot2_navigation/maps
$ ros2 run nav2_map_server map_saver_cli -f myHome --ros-args -p save_map_timeout:=10000.

result: map saved successfully,Screenshot from 2022-08-18 15-19-22.png

I got these errors:
[rviz2-2] [ERROR] [1660808425.856358531] [rviz2]: Lookup would require extrapolation into the future.  Requested time 1660808425.895145 but the latest data is at time 1660808425.825000, when looking up transform from frame [laser] to frame [map]

Does anyone know what causing this error and solution?

oto moov

unread,
Sep 26, 2022, 4:58:21 AM9/26/22
to LINOROBOT
solved, here's what I did

for mapping:
terminal 1
$ ros2 launch linorobot2_bringup bringup.launch.py
terminal 2
$ ros2 launch linorobot2_navigation slam.launch.py
terminal 3
$ ros2 launch linorobot2_viz slam.launch.py
terminal 4
$ ros2 run teleop_twist_keyboard teleop_twist_keyboard
terminal 5
$ mkdir maps
$ cd maps
$ ros2 run nav2_map_server map_saver_cli -f myhome --ros-args -p save_map_timeout:=10000.
Reply all
Reply to author
Forward
0 new messages