Skip to content

Hiromichi123/AIC_car_2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIC Car 2025 ROS2 System

第七届全球校园人工智能算法精英赛-应用赛道-智慧社区 国家级一等奖

结构总览

┌─────────────────────────────────────────────────────────────────┐
│                         Navigation Layer                        │
│  ┌────────────┐      ┌─────────────┐     ┌──────────────┐       │
│  │  navi_rs   │────▶│   /goal     │────▶│  bsp_node    │       │
│  │ (Waypoint  │      │(PoseStamped)│     │ (Position    │       │
│  │ Navigation)│      └─────────────┘     │  Controller) │       │
│  └────────────┘                          └──────┬───────┘       │
│        ▲                                        │               │
│        │                                        ▼               │
│  ┌─────┴──────┐                          ┌──────────────┐       │
│  │/lidar_data │                          │  /cmd_vel    │       │
│  │ (LidarPose)│                          │   (Twist)    │       │
│  └─────┬──────┘                          └──────┬───────┘       │
└────────│────────────────────────────────────────│───────────────┘
         │                                        │
┌────────│────────────────────────────────────────│───────────────────┐
│        │           Middleware Layer             │                   │
│  ┌─────┴──────────┐                   ┌─────────┴────────────────┐  │
│  │lidar_data_node │                   │                          │  │
│  │                │                   │  SIMULATION    REAL      │  │
│  │ Converts odom  │                   │      │          │        │  │
│  │ to LidarPose   │                   │      ▼          ▼        │  │
│  └────────────────┘                   │  ┌──────┐  ┌──────────┐  │  │
│                                       │  │Gazebo│  │hardware_ │  │  │
│                                       │  │Plugin│  │bridge_   │  │  │
│                                       │  └──────┘  │node      │  │  │
│                                       │            └──────────┘  │  │
│                                       └──────────────────────────┘  │
└─────────────────────────────────────────────────────────────────────┘

使用

仿真模式启动

# 启动gazebo仿真
ros2 launch robot_gazebo robot.launch.py

# 启动工具
ros2 launch ros2_tools tools_gazebo.launch.py

# 启动视觉节点
ros2 run vision_node vision_gazebo

# 启动导航
ros2 run navi_rs navi_rs

实机模式启动

# 启动pointlio导航
ros2 launch robot_real slam.launch.py

# 启动工具
ros2 launch ros2_tools tools_real.launch.py

# 启动视觉节点
ros2 run vision_node vision_real
ros2 run yolip yolip

# 启动导航
ros2 run navi_rs navi_rs

启动所有(实机)

make launch

Serial Protocol

The hardware_bridge_node communicates with the motor controller using a simple serial protocol:

Packet Format

[Header 1][Header 2][Command][Payload...][Checksum]
   0xAA      0x55     1 byte   N bytes    1 byte

Commands

  • 0x01: Set wheel velocities (8 bytes payload: 4x 16-bit signed integers)
  • 0x02: Emergency stop (0 bytes payload)
  • 0x03: Query status (0 bytes payload)

License

TODO: Add license information

About

2025AIC人工智能算法精英赛总决赛国家级一等奖—应用赛道—智慧社区。仿真/实机

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors