-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iris_with_standoffs import error when using Gazebo Harmonic and ROS Jazzy #109
Comments
@TannerGilbert if you are using the To run using |
Thanks @srmainwaring for the quick response. The information about the The following launch file allowed me to correctly spawn the drone but I didn't get the import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import ExecuteProcess
def generate_launch_description():
sdf_file_path = os.path.join(
get_package_share_directory("ardupilot_gazebo"), "worlds", "iris_runway.sdf"
)
start_gazebo = ExecuteProcess(
cmd=["gz", "sim", "-v4", "-r", sdf_file_path], output="screen"
)
return LaunchDescription([start_gazebo]) Many thanks for the help and best regards, |
Hi @TannerGilbert, the documentation for launching Gazebo with ROS is here: https://ardupilot.org/dev/docs/ros2-gazebo.html. There are launch examples for just the iris, the iris with nav2 enabled, and an example for a skid-steer rover. Setting up the example is more involved, as the objective is to use the onboard ROS2/DDS support in ArduPilot. |
Thank you for all the help. I'll check this out in more detail as soon as possible. |
Bug report
Issue details
I'm running ROS Jazzy and Gazebo Harmonic and tried installing ardupilot_gazebo following the installation instructions on the ros2 branch. Installation works as expected but when I run
gz sim -v4 -r iris_runway.sdf
I get the following expections:This seems to be related to the changes in #56 as the problem doesn't occur when changing from:
I don't have extensive experience with Gazebo and therefore I'm unsure if this is causes by incorrect usage or not but I suggest that either the README should be adapted to show the correct usage of the change should be reverted.
Version
Current version of ros branch (77b303e)
Platform
[ ] All
[ ] AntennaTracker
[ x ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine
Airframe type
iris_with_standoffs
(used also in other iris models)The text was updated successfully, but these errors were encountered: