Crates.io | arci-ros2 |
lib.rs | arci-ros2 |
version | 0.1.0 |
source | src |
created_at | 2022-12-09 09:49:39.994554 |
updated_at | 2023-03-31 11:24:22.208197 |
description | arci implementation using ROS2 |
homepage | |
repository | https://github.com/openrr/openrr |
max_upload_size | |
id | 733143 |
size | 84,780 |
ROS2 implementation for arci.
sudo apt install ros-foxy-nav2-msgs ros-foxy-geometry-msgs # for navigation
sudo apt install ros-foxy-ros2-control ros-foxy-ros2-controllers # for ros2_control
sudo apt install libclang-dev # for r2r
Build openrr
with the feature ros2
source /opt/ros/foxy/setup.bash
cargo build --features ros2
Read here and install navigation2 and simulator.
ros2 launch nav2_bringup tb3_simulation_launch.py
Don't forget to set the initial pose of the robot before sending the goal pose using the 2D Pose Estimate
button of rviz
.
./target/debug/openrr_apps_robot_command --config-path ./openrr-apps/config/turtlebot3_robot_client_config_ros2.toml send_navigation_goal -- -0.5 0.2 -1.5
./target/debug/openrr_apps_velocity_sender --config-path ./openrr-apps/config/turtlebot3_robot_client_config_ros2.toml
Clone and build ros2_control_demos
ROS2_DISTRO
is foxy: checkout foxy branch, install it, and source install/setup.bash
.ROS2_DISTRO
is galactic: replace all "foxy" in the repository with "galactic", install it, and source install/setup.bash
.Launch rrbot example
ros2 launch ros2_control_demo_bringup rrbot.launch.py
Stop existing controllers.
ros2 control set_controller_state joint_state_broadcaster stop
ros2 control set_controller_state forward_position_controller stop
Start position_trajectory_controller
and joint_state_broadcaster
.
ros2 control load_controller position_trajectory_controller --set-state start
ros2 control set_controller_state joint_state_broadcaster start
cargo run --package arci-ros2 --example ros2_control --features ros2
Licensed under the Apache License, Version 2.0.