ROS2 and PX4 Tutorial | Simulated Offboard Mode

  Рет қаралды 8,694

ARK Electronics

ARK Electronics

Күн бұрын

Braden Wagstaff walks us through a tutorial on utilizing ROS2 and PX4 in simulated offboard mode. This tutorial is designed for beginners and those who are new to ROS2 or PX4.
Changes To Tutorial Not Mentioned In Video:
Be sure to check the updated tutorial in the Github link below. Some changes to the tutorial not seen in the video are
-updated install scripts for PX4
-the video says to run colcon build in the /ros2_px4_offboard_example_ws/src folder but ROS2 should be built in the /ros2_px4_offboard_example_ws folder
Useful Links & Resources:
- Tutorial Code & Instructions: github.com/ARK-Electronics/RO...
- This example builds upon the work by Jaeyoung Lim: github.com/Jaeyoung-Lim/px4-o...
Please note, the content in the mentioned repository may undergo changes over time and may not always align perfectly with this video tutorial.
This tutorial is designed for Ubuntu 22.04 users and assumes the use of ROS2 Humble, following the PX4 docs as of June 2023.
Community & Collaboration:
- For PX4 and ROS2 assistance and collaboration, join the Dronecode community on Discord: / discord
Further Reading:
- PX4 Documentation: docs.px4.io/main/en/
- ROS2 Humble Documentation: docs.ros.org/en/humble/index....
About Us:
- For more information about us and our work, visit Ark Electronics: arkelectron.com/
Chapters
00:00 Introduction
00:51 GitHub
01:57 Setup
08:03 Offboard Example
10:52 Safe Gazebo Shutdown
11:37 Code Walkthrough
15:44 Outro

Пікірлер: 32
@LorenzoSquarz
@LorenzoSquarz 2 ай бұрын
Great work! thank you for the clarity!
@maycolmezaa.7578
@maycolmezaa.7578 Жыл бұрын
Thanks for share it
@muradmehrababrar9052
@muradmehrababrar9052 6 ай бұрын
Super helpful tutorial! Thanks!
@AlexandreSantos-lf6vg
@AlexandreSantos-lf6vg Ай бұрын
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?
@DreadDeimos
@DreadDeimos 5 ай бұрын
This was helpful.
@srinandan6047
@srinandan6047 3 ай бұрын
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
@user-ub9qd2kw1c
@user-ub9qd2kw1c 3 ай бұрын
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
@meriemghrissi8641
@meriemghrissi8641 2 ай бұрын
Hello do i need camera calibration to detect aruco markers using the camera of gz_x500_depth ?
@denissopichev5986
@denissopichev5986 2 ай бұрын
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.
@PaulCarff
@PaulCarff 6 ай бұрын
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 9 күн бұрын
Same issues, what we can do?
@rohanmohapatra3689
@rohanmohapatra3689 10 ай бұрын
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...
@immanuelampomahmensah7909
@immanuelampomahmensah7909 12 күн бұрын
You need QGround Control open
@rajFPV
@rajFPV 6 күн бұрын
@@immanuelampomahmensah7909 Can you explain more on how to do that? Thanks!
@Tse3006
@Tse3006 7 ай бұрын
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 6 ай бұрын
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
@lukeconnolly935
@lukeconnolly935 Жыл бұрын
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 Жыл бұрын
@@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 6 ай бұрын
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).
@sibujacob977
@sibujacob977 Жыл бұрын
Can you please share a link showing the simulation for a ROS1 / gazebo / ubuntu / PX4 setup ....
@arkelectron
@arkelectron Жыл бұрын
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
@chulminkim7482
@chulminkim7482 11 ай бұрын
But tragectory_setpoint msg seems to didn't work for fixed wing isn't it?
@arkelectron
@arkelectron 11 ай бұрын
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
@jakeag_
@jakeag_ 11 ай бұрын
Hi, would this work with ROS2 Foxy? I am on Ubuntu 20.04
@arkelectron
@arkelectron 11 ай бұрын
It should
@izurzuhri
@izurzuhri Жыл бұрын
Is it possible if i use wsl2?
@arkelectron
@arkelectron 11 ай бұрын
You might be able to. I haven't tested it in wsl2.
@MoTopiwala
@MoTopiwala 8 ай бұрын
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
@sudalaitech4019
@sudalaitech4019 5 ай бұрын
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 4 ай бұрын
Me too and I don´t understand why. Can anyone help?
How To Connect PixHawk to Raspberry Pi and NVIDIA Jetson
8:28
aka: Matchstic
Рет қаралды 34 М.
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 63 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 34 МЛН
PX4 Flight Task Architecture Overview - Dennis Mannhart, Matthias Grob - PX4 Developer Summit 2019
36:33
PX4 Autopilot - Open Source Flight Control.
Рет қаралды 9 М.
PX4 Development Environment Setup using WSL-2
43:36
Alireza Ghaderi
Рет қаралды 6 М.
XRCE-DDS Bridge for PX4 and ROS2
14:09
vinicius abrao
Рет қаралды 2,2 М.
You can use ANY hardware with ros2_control
47:44
Articulated Robotics
Рет қаралды 51 М.
Open Source Motion Capture for Autonomous Drones
10:34
Joshua Bird
Рет қаралды 576 М.
Cybertruck Crash Test is HORRIFYING, Here’s Why
8:10
AI DRIVR
Рет қаралды 5 МЛН
What Is ROS2? - Framework Overview
8:22
Raymond Andrade
Рет қаралды 67 М.
Razer's new keyboard is basically cheating.
7:42
optimum
Рет қаралды 820 М.
How NVIDIA just beat every other tech company
9:20
Mrwhosetheboss
Рет қаралды 1 МЛН
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Игорь Линк
Рет қаралды 127 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2 МЛН
PART 52 || DIY Wireless Switch forElectronic Lights - Easy Guide!
1:01
HUBAB__OFFICIAL
Рет қаралды 66 МЛН