ROS2 and PX4 Tutorial | Simulated Offboard Mode

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 45

  • @maycolmezaa.7578
    @maycolmezaa.7578 Год назад +1

    Thanks for share it

  • @muradmehrababrar9052
    @muradmehrababrar9052 11 месяцев назад +1

    Super helpful tutorial! Thanks!

  • @LorenzoSquarz
    @LorenzoSquarz 7 месяцев назад +1

    Great work! thank you for the clarity!

  • @8thp
    @8thp 2 месяца назад +2

    Same problem as for others: only seeing Arm toggle is now: True
    but the drone doesn't start spinning neither reacts to other controls. Followed the README with 1.14 version of px4_msg

  • @storagebox6925
    @storagebox6925 3 месяца назад +4

    @arkelectron, thanks for the code and tutorial, but again as many people in the comment section down here, I am unable to get the drone moving from keyboard commands. Also, I do not get the issue 1.4 fix you are referring to. Could you help us out for once to debug this?

  • @erichwang5695
    @erichwang5695 3 месяца назад

    Thanks for your video!

  • @AlexandreSantos-lf6vg
    @AlexandreSantos-lf6vg 6 месяцев назад

    Fantastic Braden!!! Please, I'd like to know where I need to change to put a custom gazebo world in this code and record the flying using the RGB drone camera too?

  • @srinandan6047
    @srinandan6047 8 месяцев назад +2

    Hi Braden. First of all, great video. I tried this and i got to the Gazebo Sim part. however i could not able to control the drone. Leaving that apart, i see that this simulation is done on Gazebo Sim7 with Ubuntu22.04 as OS and ROS2 Humble as node. I want to know whether instead of Gazebo Sim7, coulr we use Gazebo 11 or the latest version. I tried this but i got the makefile error. Is there some issues on ubuntu 22.04 regarding working of Gazebo

  • @rohanmohapatra3689
    @rohanmohapatra3689 Год назад +4

    Followed everything as per the video but the drone simulation in Gazebo and rviz aren't responding to any keys and aren't flying either... Any suggestions on how to solve it please...

    • @rajFPV
      @rajFPV 4 месяца назад

      @@immanuelampomahmensah7909 Can you explain more on how to do that? Thanks!

    • @arkelectron
      @arkelectron  4 месяца назад

      We just pushed a fix and updated the README to point to 1.14.
      github.com/ARK-Electronics/ROS2_PX4_Offboard_Example

  • @jorgegomariz5995
    @jorgegomariz5995 Месяц назад

    Hello! Excelent tutorial. Do you know how to make it move to a point automatically, without using the keyboard?

  • @PaulCarff
    @PaulCarff 10 месяцев назад +3

    I am trying to run this on Ubuntu 22 with ROS2 humble and everything start however the only velocity_control messages I see is "Arm Message: True" and "Arm Message; False" as I toggle with the space bar. There are no other messages. No action when I press the wsad keys.

    • @christopherbousquet-jette4301
      @christopherbousquet-jette4301 5 месяцев назад

      Same issues, what we can do?

    • @arkelectron
      @arkelectron  4 месяца назад

      @@christopherbousquet-jette4301 We just pushed a fix and updated the README to point to 1.14.
      github.com/ARK-Electronics/ROS2_PX4_Offboard_Example

    • @arkelectron
      @arkelectron  4 месяца назад

      We just pushed a fix and updated the README to point to 1.14.
      github.com/ARK-Electronics/ROS2_PX4_Offboard_Example

    • @YuriAchermann
      @YuriAchermann 4 месяца назад

      Hi, I have the same problem... Could you make it work?

  • @danialves564
    @danialves564 22 дня назад

    @arkelectron Thank you for your effort . I have the same problem as other with PX4 1.14 build that only arm command is working. Can you give me a hint of what could be the problem , I might find a fix for it ?

  • @DreadDeimos
    @DreadDeimos 10 месяцев назад

    This was helpful.

  • @denissopichev5986
    @denissopichev5986 7 месяцев назад

    Is any chance we can connect px4 to some custom aerial platform developed in moveit? So, basically px4 works as a flight computer with estimations and other kinds of stuff, but the dynamics of flying platform we develop by ourself.

  • @唐甘霖
    @唐甘霖 8 месяцев назад

    Dear sir, if I want add some new world in the model test, how could i do it, i just follow the guide in the px4 guide, but it seems net work

  • @lukeconnolly935
    @lukeconnolly935 Год назад +1

    How can this be used for a real flight controller to get real-time data from say a Pixhawk Cube and be able to send commands to the Pixhawk Cube from ROS2? I've tried connecting to it but I've had no luck

    • @wmlong777
      @wmlong777 Год назад

      I have to second this!! I have spent weeks trying to get my Cube Orange to connect to my host computer from the jetson nano with the new uXRCE-DDS the PX docs about the agent are very vague!!

    • @arkelectron
      @arkelectron  Год назад +2

      @@wmlong777 Follow the instructions in the docs for building from source. Then on 1.14 or main PX4 set the param UXRCE_DDS_CFG to the port you want to use. On the companion computer run "sudo MicroXRCEAgent serial --dev /dev/AMA0 -b 921600" pointing to the serial port you are using.
      docs.px4.io/main/en/middleware/uxrce_dds.html#micro-xrce-dds-agent-installation
      docs.px4.io/main/en/middleware/uxrce_dds.html#starting-the-client

    • @piotrrosiak2281
      @piotrrosiak2281 11 месяцев назад

      I have been stuck on this for couple of minutes until I realised the connection just needs some time. I followed docs on px4 site (linked above by @arkelectron). Used serial connection and nothing happened (my DDS agent didn't connect and topics were not created). I was searching around and turned out that after I left this setup for some time it finally managed to connect. It may be buggy or my setup was just slow. I used SiK Holybro telemetry radio (can't remember which version) as serial device, and other end of this radio was connected by USB to my laptop where I redirected this USB device to WSL2 instance using usb-ipd. On WSL2 then I started DDS agent and it worked like a charm, I could use ROS2 without cable connected to the flight controller (Pixhawk 6X).

  • @YuriAchermann
    @YuriAchermann 4 месяца назад

    Hey, awesome project! I love it
    I wonder if there's a version for Ubuntu24.04, ROS2 jazzy and Gazebo Harmonic... bc I tried that step-by-step here and it's not working, problems with python packages not installed when I try to `colcon build`

  • @minhhieu9923
    @minhhieu9923 4 месяца назад

    Could you please let me know why I do and open source from you. At first, it's be okay and it appare all of application like you such as Gazebo, Rviz, Ros2. But when i control by keyboard, it don't work. I use Ubuntu 20.04 , Ros2 Foxy and gazebo classic 11. Can you help me fix it please?

    • @arkelectron
      @arkelectron  4 месяца назад

      We just pushed a fix and updated the README to point to 1.14.
      github.com/ARK-Electronics/ROS2_PX4_Offboard_Example

  • @meriemghrissi8641
    @meriemghrissi8641 7 месяцев назад

    Hello do i need camera calibration to detect aruco markers using the camera of gz_x500_depth ?

    • @PatrikPördi
      @PatrikPördi Месяц назад

      You need camera parameters, if you do it in simulation there is no need for calibration, on actual hardware it is worth calibrating to get the right params!

  • @chulminkim7482
    @chulminkim7482 Год назад

    But tragectory_setpoint msg seems to didn't work for fixed wing isn't it?

    • @arkelectron
      @arkelectron  Год назад

      It appears that the fixed wing position controller supports trajectory setpoints in offboard mode.
      github.com/PX4/PX4-Autopilot/blob/main/src/modules/fw_pos_control/FixedwingPositionControl.cpp#L2182-L2185

  • @sibujacob977
    @sibujacob977 Год назад

    Can you please share a link showing the simulation for a ROS1 / gazebo / ubuntu / PX4 setup ....

    • @arkelectron
      @arkelectron  Год назад +1

      This is only for ROS2.

    • @sibujacob977
      @sibujacob977 Год назад

      @@arkelectron Can i install ROS2 in parallel to ROS1 setup as the first of having the PX4 from gitbub is the same for both ROS 1 and ROS 2 . please advice....thank you

  • @Tse3006
    @Tse3006 Год назад

    Thank you so much for your interesting lesson! i wanna request you how can install or get "gz_x500"?. I use ubuntu 22.04, how it doesn't run command "make px4_sitl gz_x500". I appreciate you if you give me a response.

    • @imagidan
      @imagidan 11 месяцев назад

      With ubuntu 22.04, after cloning PX4-Autopilot repository as described in the tutorial, gazebo garden is installed by default and all models including x500 (gz_x500) is automatically installed. Make sure to run the bash script for the gazebo to be installed as the tutorial says. Also it does run the command make px4_sitl gz_x500, but it is done through the processes.py file in the ros2 offboard package src

  • @jakeag_
    @jakeag_ Год назад

    Hi, would this work with ROS2 Foxy? I am on Ubuntu 20.04

  • @izurzuhri
    @izurzuhri Год назад

    Is it possible if i use wsl2?

    • @arkelectron
      @arkelectron  Год назад

      You might be able to. I haven't tested it in wsl2.

    • @MoTopiwala
      @MoTopiwala Год назад +1

      I've used Windows 10 and wsl2- the 'make' process on px4_msgs and px4_comm packages wasn't done overnight.
      For context, I used an 8GB RAM, 2.7GHz 4- cores computer. So, I just ended up switching the OS to Ubuntu 22.04 and it took only 30 minutes as it had in the past on a raspberry pi 4 8GB RAM

    • @YuriAchermann
      @YuriAchermann 4 месяца назад

      Yes, it is...

  • @sudalaitech4019
    @sudalaitech4019 9 месяцев назад +1

    Hey I am getting
    WARN [timesync] time jump detected. Resetting time synchroniser.
    ERROR [sensors] Accel #0 fail: STALE!
    ERROR [sensors] Accel #0 fail: STALE!
    ERROR [sensors] Accel #0 fail: STALE!
    ERROR [sensors] Accel #0 fail: STALE!
    ERROR [sensors] Accel #0 fail: STALE!
    ERROR [sensors] Accel #0 fail: STALE!
    WARN [timesync] time jump detected. Resetting time synchroniser.
    ERROR [sensors] Accel #0 fail: STALE!
    ERROR [sensors] Accel #0 fail: STALE!
    ERROR [sensors] Accel #0 fail: STALE!
    ERROR [sensors] Accel #0 fail: STALE!
    continously after launching the ros2 launch file How to reolve this Same happened when I followed px4 docs
    docs.px4.io/main/en/ros/ros2_comm.html

    • @tomassgomess
      @tomassgomess 9 месяцев назад

      Me too and I don´t understand why. Can anyone help?