abdulkadrtr / ROS2-FrontierBaseExplorationForAutonomousRobot

Our autonomous ground vehicle uses Frontier Based exploration to navigate and map unknown environments. Equipped with sensors, it can avoid obstacles and make real-time decisions. It has potential applications in search and rescue, agriculture, and logistics, and represents an important step forward in autonomous ground vehicle development.
MIT License
45 stars 19 forks source link

Using package on another robot #3

Closed yas28elg closed 7 months ago

yas28elg commented 7 months ago

Hello !

Thanks for sharing your code. I'm trying to use it on a custom robot.

I followed the step you proposed for running the node (sim, robot and then ros2 run..) but the robot doesn't move. I made sure to change the topics names on the script to match the robot's. On rviz I can see my map and the output of my scanner.

I did a bit of digging on the code and it seems that there is no path generated. It keeps sending the robot position as a goal. I think the issue comes from A* algorithm. I send different start and goal position but no goal is found and the closest path to the goal is the initial position. I also checked, there are free cells and frontier were successfully defined.

Have you already encountered this kind of issue? Do you know where the problem could come from?

Thanks in advance !

JoaoVictor0508 commented 1 week ago

Hey, could you solve it? I am facing the same problem and found your issue.

yas28elg commented 1 week ago

Hey! More or less, I decided to use Nav2 planner and controller.