Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS 2 Foxy対応 #1

Merged
merged 198 commits into from
Jul 29, 2022
Merged

ROS 2 Foxy対応 #1

merged 198 commits into from
Jul 29, 2022

Conversation

shu-13
Copy link

@shu-13 shu-13 commented Jul 15, 2022

What does this implement/fix?

rt-net/raspimouse_slam_navigation_rosパッケージをROS 2 Foxyに対応する

Does this close any currently open issues?

No

How has this been tested?

  • Raspberry Pi Mouse V3 and Remote PC
    • Ubuntu 20.04, ROS 2 Foxy
  • Devices
    • Gamepad: F710
    • LIDAR: RPLIDAR A1
      ゲームパッドはDUALSHOCK 3/4、LIDARはURGかLDSでもおkです。その場合は適宜lidarjoyconfigパラメータを書き換えてください。

SLAM

SLAMを開始するには以下のコマンドを実行してください。

# Robot
ros2 launch raspimouse_slam robot_bringup.launch.py lidar:=rplidar lidar_port:=/dev/ttyUSB0 joyconfig:=f710
# RemotePC
ros2 launch raspimouse_slam raspimouse_slam.launch.py

地図を保存するには以下のコマンドを実行してください。

# RemotePC
cd ~/ros2_ws/src/raspimouse_slam_navigation_ros2/raspimouse_slam
mkdir maps && cd maps
ros2 run nav2_map_server map_saver_cli -f $MAP_NAME

Navigation

作ったマップが参照できるようにビルドします

cd ~/ros2_ws/
colcon build --symlink-install
source install/setup.bash

ナビゲーションを実行

# Robot
ros2 launch raspimouse_navigation robot_navigation.launch.py lidar:=rplidar
# RemotePC
ros2 launch raspimouse_navigation pc_navigation.launch.py map_file:=$MAP_NAME.yaml

表示されたRViz上で、初期位置姿勢と目標位置姿勢を与えましょう。

Any other comments?

Checklists

Shuhei Kozasa and others added 21 commits July 29, 2022 10:22
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Co-authored-by: Shota Aoki <[email protected]>
Copy link
Contributor

@ShotaAk ShotaAk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメント追記しました。
このあと動作確認します。

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated
Comment on lines 144 to 146
cd ~/ros2_ws/src/raspimouse_slam_navigation2/raspimouse_slam
mkdir maps && cd maps
ros2 run nav2_map_server map_saver_cli -f ~/MAP_NAME
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ホームディレクトリに置くことに賛成します

raspimouse_slam/launch/pc_slam.launch.py Outdated Show resolved Hide resolved
Copy link
Contributor

@ShotaAk ShotaAk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ShotaAk ShotaAk merged commit 26d2032 into main Jul 29, 2022
@ShotaAk ShotaAk deleted the feature/support-foxy-devel branch July 29, 2022 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants