Skip to content

Help integrating opennav_coverage v1.2.1 into my ROS 2 Humble robot package #87

Open
@Chetan2312

Description

@Chetan2312

Hi, I’m working on an autonomous robot in ROS 2 Humble and I want to use opennav_coverage v1.2.1 for coverage path planning. I was able to successfully install fields2cover and opennav_coverage in my ROS 2 Humble environment, but I am struggling to integrate opennav_coverage into my robot package.

I want to:

  • Use opennav_coverage to generate a coverage plan for my own saved map.
  • Make my robot follow the generated coverage plan using Nav2 or another approach.

Robot Setup
My robot includes the following components:

  • Localization & Navigation: Nav2 stack with map_server, amcl, and robot_localization (EKF).
  • LiDAR Sensor: Slamtec RPLIDAR S1 for obstacle detection and mapping.
  • IMU: Complementary filter for sensor fusion.
  • Micro-ROS Nodes: Used for motor control via an ESP32-based microcontroller running Micro-ROS Agent.
  • TF Setup: Static transform publisher for map → odom.
  • Laser Filter: Processing LiDAR data before navigation.
  • URDF-based Model: Robot is defined in URDF and published via robot_state_publisher.

What I Have Tried

  • Successfully installed fields2cover and opennav_coverage.
  • Subscribed to the /map topic and tried to pass it to the coverage planner.
  • Attempted to publish the generated coverage plan as waypoints for navigation.

Issue

Even though I can run opennav_coverage, I am unable to properly integrate it with my own map and move my robot along the planned coverage path. I would appreciate any guidance on:

  • How to correctly use opennav_coverage in my robot package to generate coverage plan inside my generated map.
  • How to generate waypoints from the coverage plan and use them for navigation.
  • Any example implementations or best practices for integrating opennav_coverage with a custom robot.

References

Code Snippets:

  1. Bringup for Coverage Planner Script: Gist Link
  2. Navigation Launch File: Gist Link

Would appreciate any insights on how to connect OpenNav Coverage with Nav2 and use it for full coverage path planning. Thanks in advance! 🙌

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions