Skip to content

此代码库允许在 ROS2 Humble 版本中使用 Apriltag 代码进行侧向定位和姿态的自动调整,并且已在实车上成功测试,但可能有一些繁琐的调整过程,参数需要调整以进一步优化。

Notifications You must be signed in to change notification settings

Hongtai-Yuan/Autodock_Lateralside_ROS2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Autodock_Lateralside_ROS2

说明文本

Install dependencies

cd ~/Autodock_Lateralside_ROS2/
rosdep update
rosdep install --from-paths src --ignore-src -r -y --rosdistro humble

Build packages

cd ~/Autodock_Lateralside_ROS2/
source /opt/ros/humble/setup.bash
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release

Simulation in Gazebo

ros2 launch neuronbot2_gazebo neuronbot2_world.launch.py world_model:=tag.model use_camera:=top
ros2 launch apriltag_docking autodock_gazebo.launch.py open_rviz:=true
ros2 run apriltag_docking docking_client --ros-args -p docking:=start

Use Physical Robot and Camera

git clone https://github.com/Hongtai-Yuan/Autodock_Frontside_ROS2.git
ros2 launch apriltag_docking autodock_neuronbot.launch.py open_rviz:=true

Change Src And Include Then

# Use Autodock_Lateralside_ROS2/src/apriltag_docking/autodock_controller/src/ To Change Autodock_Frontside_ROS2/src/apriltag_docking/autodock_controller/src
# Use Autodock_Lateralside_ROS2/src/apriltag_docking/autodock_controller/include/ To Change Autodock_Frontside_ROS2/src/apriltag_docking/autodock_controller/include/

colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release
ros2 launch apriltag_docking autodock_gazebo.launch.py open_rviz:=true
ros2 run apriltag_docking docking_client --ros-args -p docking:=start

Integrating with BehaviorTree

Download BT_ros2:

cd ~/autodock_ros2_ws/src
[git clone https://github.com/Adlink-ROS/BT_ros2.git](https://github.com/Hongtai-Yuan/Behavior_ROS2.git)

Build BT_ros2 with auto-docking workspace:

cd ~/autodock_ros2_ws/
source /opt/ros/humble/setup.bash
colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release -DBUILD_AUTODOCK=ON
ros2 launch bt_ros2 bt_ros2.launch.py

Reference link

https://github.com/Adlink-ROS/apriltag_docking

https://github.com/Hongtai-Yuan/Autodock_Frontside_ROS2

https://github.com/Hongtai-Yuan/Behavior_ROS2

About

此代码库允许在 ROS2 Humble 版本中使用 Apriltag 代码进行侧向定位和姿态的自动调整,并且已在实车上成功测试,但可能有一些繁琐的调整过程,参数需要调整以进一步优化。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published