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

Humble対応 #6

Merged
merged 8 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .ci.rosinstall
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
- git:
uri: https://github.com/rt-net/raspimouse_description.git
local-name: raspimouse_description
version: foxy-devel
version: humble-devel

- git:
uri: https://github.com/rt-net/raspimouse_ros2_examples.git
local-name: raspimouse_ros2_examples
version: foxy-devel
version: humble-devel
2 changes: 1 addition & 1 deletion .github/workflows/industrial_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
env:
- { ROS_DISTRO: foxy, ROS_REPO: ros }
- { ROS_DISTRO: humble, ROS_REPO: ros }
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Raspberry Pi MouseでSLAMが行える`raspimouse_slam`パッケージとナビ

現在、以下のROS 2のディストリビューションに対応しております。
- Foxy ([foxy-devel](https://github.com/rt-net/raspimouse_slam_navigation_ros2/tree/foxy-devel))
- Humble ([humble-devel](https://github.com/rt-net/raspimouse_slam_navigation_ros2/tree/humble-devel))

---
# Table of Contents
Expand All @@ -28,16 +29,16 @@ Raspberry Pi Mouseにはデバイスドライバをインストールしてい
- [Raspberry Pi Mouse V3](https://rt-net.jp/products/raspberrypimousev3/)
- Raspberry Pi - Raspberry Pi 4 Model B
- Raspberry Pi 3 では動作確認していません
- Linux OS - Ubuntu 20.04
- Linux OS - Ubuntu 22.04
- Device Driver - [rt-net/RaspberryPiMouse](https://github.com/rt-net/RaspberryPiMouse)
- ROS - [Foxy Fitzroy](https://docs.ros.org/en/foxy/Installation.html)
- ROS - [Humble Hawksbill](https://docs.ros.org/en/humble/Installation.html)
- オプションパーツ
- [Raspberry Pi4用コネクタ](https://www.rt-shop.jp/index.php?main_page=product_info&products_id=3776)
- [マルチLiDARマウント](https://www.rt-shop.jp/index.php?main_page=product_info&cPath=1299_1395&products_id=3867)

- Remote PC
- Linux OS - Ubuntu 20.04
- ROS - Foxy Fitzroy
- Linux OS - Ubuntu 22.04
- ROS - Humble Hawksbill

また、本パッケージは以下の機材に対応しています。
- ゲームパッド: [raspimouse_ros2_examplesのREADME参照](https://github.com/rt-net/raspimouse_ros2_examples#requirements-1)
Expand All @@ -57,7 +58,7 @@ git clone -b $ROS_DISTRO-devel https://github.com/rt-net/raspimouse_ros2_example
git clone -b $ROS_DISTRO-devel https://github.com/rt-net/raspimouse_description
git clone -b $ROS_DISTRO-devel https://github.com/rt-net/raspimouse_slam_navigation_ros2
# Install dependencies
rosdep install -r -y -i --from-paths . --ignore-src
rosdep install -y -i --from-paths . --ignore-src

# make and install
cd ~/ros2_ws
Expand All @@ -73,7 +74,7 @@ cd ~/ros2_ws/src
git clone -b $ROS_DISTRO-devel https://github.com/rt-net/raspimouse_description
git clone -b $ROS_DISTRO-devel https://github.com/rt-net/raspimouse_slam_navigation_ros2
# Install dependencies
rosdep install -r -y -i --from-paths . --ignore-src
rosdep install -y -i --from-paths . --ignore-src

# make and install
cd ~/ros2_ws
Expand Down
2 changes: 1 addition & 1 deletion raspimouse_navigation/launch/robot_navigation.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def generate_launch_description():
)

mouse_node = LifecycleNode(
name='raspimouse',
name='raspimouse', namespace='',
package='raspimouse', executable='raspimouse', output='screen',
parameters=[os.path.join(get_package_share_directory(
'raspimouse_slam'), 'config', 'mouse.yaml')]
Expand Down
8 changes: 5 additions & 3 deletions raspimouse_navigation/params/raspimouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ amcl:
recovery_alpha_fast: 0.0
recovery_alpha_slow: 0.0
resample_interval: 1
robot_model_type: "differential"
robot_model_type: "nav2_amcl::DifferentialMotionModel"
save_pose_rate: 0.5
sigma_hit: 0.2
tf_broadcast: true
Expand Down Expand Up @@ -85,6 +85,8 @@ bt_navigator:
- nav2_transform_available_condition_bt_node
- nav2_time_expired_condition_bt_node
- nav2_distance_traveled_condition_bt_node
- nav2_compute_path_through_poses_action_bt_node
- nav2_remove_passed_goals_action_bt_node

bt_navigator_rclcpp_node:
ros__parameters:
Expand All @@ -99,7 +101,7 @@ controller_server:
min_theta_velocity_threshold: 0.001

# ゴール判定のプラグインを追加
goal_checker_plugins: "goal_checker"
goal_checker_plugins: ["goal_checker"]
goal_checker:
plugin: "nav2_controller::SimpleGoalChecker"
xy_goal_tolerance: 0.05
Expand Down Expand Up @@ -300,4 +302,4 @@ recoveries_server:

robot_state_publisher:
ros__parameters:
use_sim_time: False
use_sim_time: False
2 changes: 1 addition & 1 deletion raspimouse_navigation/rviz/nav2_view.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ Visualization Manager:
Global Options:
Background Color: 48; 48; 48
Fixed Frame: map
Frame Rate: 30
Frame Rate: 5
Copy link
Contributor

Choose a reason for hiding this comment

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

Frame Rateを変更した理由をPRのコメントに書き残してください。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

追記しました!

Name: root
Tools:
- Class: rviz_default_plugins/MoveCamera
Expand Down
2 changes: 1 addition & 1 deletion raspimouse_slam/launch/robot_bringup.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def generate_launch_description():

# Launch files and Nodes #
mouse_node = LifecycleNode(
name='raspimouse',
name='raspimouse', namespace='',
package='raspimouse', executable='raspimouse', output='screen',
parameters=[os.path.join(get_package_share_directory(
'raspimouse_slam'), 'config', 'mouse.yaml')]
Expand Down
2 changes: 1 addition & 1 deletion raspimouse_slam/launch/teleop.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def generate_launch_description():
)

mouse_node = LifecycleNode(
name='raspimouse',
name='raspimouse', namespace='',
package='raspimouse', executable='raspimouse', output='screen',
parameters=[os.path.join(get_package_share_directory(
'raspimouse_slam'), 'config', 'mouse.yaml')],
Expand Down
2 changes: 1 addition & 1 deletion raspimouse_slam/rviz/default.rviz
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Visualization Manager:
Global Options:
Background Color: 48; 48; 48
Fixed Frame: map
Frame Rate: 30
Frame Rate: 5
Name: root
Tools:
- Class: rviz_default_plugins/MoveCamera
Expand Down