Closed pedro-fuoco closed 1 year ago
Just wondering if UAV would require a 3D costmap?
Yea we will need full 3D support eventually, but the scope right now is using NAV2 on a copter but only moving in 2D.
Please ask for configuration help on Robotics Stack Exchange.
But generally speaking, I don't see a costmap in your video, so you may want to look into that + configuring it for your application.
It will help alot if you can push this project to your GitHub repositories. Thank you
It will help alot if you can push this project to your GitHub repositories. Thank you
Everything is pushed. https://discuss.ardupilot.org/t/gsoc-2023-gps-denied-autonomous-exploration-with-ros-2/101121/20?u=rfriedman
Hi! I'm a GSoC student for Ardupilot. My project involves using Cartographer and Nav2 to control a copter in Gazebo Garden. So far the Gazebo and Cartographer bits have been solved and integrated into Ardupilot's native port for ROS 2, AP_DDS, with the help of @Ryanf55.
I've remmaped
/cmd_vel
to/ap/cmd_vel
, which made it possible to control the copter through the/goal_pose
topic (which I tested with rviz). But the costmaps are not being published correctly and, because of that, the copter isn't avoiding obstacles, as you can see in the video below:This was done launching
ros2 launch nav2_bringup navigation_launch.py use_sim_time:=true
after launching the Copter simulation in Gazebo Garden and Cartographer.Additional information:
Nav2 does subscribe to the map topic provided by cartographer
Here's the tf tree from
robot_state_publisher
and cartographer. It followsmap -> odom -> base_link
The laser scan is being published at
/scan
as the default parameters for nav2 suggestThe log from the
nav2
launch gets stuck as follows: