-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
px4-ros2 offboard control with pyrhon example #1675
Comments
@JinraeKim thanks for the suggestion. We are open for contributions in this regard from anyone willing to do them. Are you open to contribute in this regard? Thank you |
Thank you for your reply. |
@JinraeKim Could you maybe elaborate if there is a specific reason you are trying to use python for offboard control? |
I would guess the same reason everyone uses Python when they are starting - it's a much easier language to learn. |
@hamishwillee I totally agree, but more wondering if we should enable beginners use ROS2 + offboard. Since the use case of ROS2 with PX4 is motivated by removing the performance bottlenecks coming from using mavlink, I was trying to understand why one would use python ROS2 with PX4. IMO, it is safer to use mavsdk-python if the developer is starting out and does not understand what is going on inside PX4. |
@Jaeyoung-Lim Howdy! My take on this is that this is a matter of setting expectation - what can you do with each framework and programming language? What is easier for what task? What are the limits? There is no point telling a beginner "go and use MAVSDK" if that isn't going to get the performance they need for the task at hand. Some questions
If the answer is "Python is a peer of C++ for ROS" then we should try have an example of that too. And here we should compare and contrast, with some kind of useful comparison of the options. Can you give me some idea of where the border for usage is? Normally we say:
|
It is because I'm familiar with Python and ROS2, not with C++ (main language is Julia though). Honestly, there are too many choices to use PX4 so I'm not sure my plan is suitable for my research. |
A nice summary! |
As above, you need to start with "what you want to achieve" and that will determine the path you take. I have tried to integrate above summary in #1681 . I personally don't propose to create any Python ROS examples - though if someone wants to that would be great. I consider it a minor bug that we don't. |
@JinraeKim I have tried to write a python version of offboard control, and it behaves the same as the original C++ version. |
…ranch in our fork for python-based offboard mode
There is a cpp script for offboard control example, but it would be also helpful to provide some launchable python codes for the same example as ros2 usually supports both languages.
The text was updated successfully, but these errors were encountered: