-
Notifications
You must be signed in to change notification settings - Fork 993
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
Split out mavconn libaray to use in non ros projects. #161
Comments
Also rosconsole replaced by console_bridge, so now library can be used without ros infrastructure.
* master: mavconn #161: Move mavconn tests. mavconn #161: Fix headers used in mavros. Add readme. mavconn #161: Fix mavros build. mavconn #161: Move library to its own package plugin: sys_time: Set right suffixes to uint64_t constants. plugin: sys_time: Add time syncronization diag. plugin: sys_time: Debug result.
Complete. |
add .project and .pydevproject to .gitignore
Hi, I know this is a closed issue but I'm having trouble in compiling libmavconn separately. I just treat the libmavconn folder as a standalone cmake project package and tried to cmake and make. I got no error during the cmake process. But during "make", the compiler complains that:
It seems the mavlink header auto generation was not triggered properly. I was wondering how I could fix this error and get this package compiled so that I can use it in a non-ROS project. @vooon Thanks, |
@rxdu you also need mavlink headers library in your include path. Generating it is not libmavconn task. Perhaps you may use https://github.com/mavlink/mavlink-gbp-release (branch Also recent version of libmavconn use my C++11 generator, which can be found at ArduPilot/pymavlink#27 |
Thanks for your reply @vooon. Now I can compile libmavconn as a standalone package. Here is a summary of how I got all missing headers (for anyone else who may find helpful in the future):
You will get the error telling you some header files are missing for mavlink. I'm not sure if it is the best way to do this. But it at least compiles now. I will do further tests and see if everything works as expected. |
3-4 may be done much easier:
Mixing c_library_v2 with gbp is bad. All what you need already done by gpb. |
Not 100% on topic, but definitely related. Is there a way of removing the dependency of libmavconn on the default dialects if I don't want to use them? |
@clichtz libmavconn depends on all dialects, they all must be compilled beforehand. |
My thing is that I don't want to use them and since I am not using libmavconn with ros I have to have all of the dialects in my repo, which is a lot of files. But as far as I could figure, some generated files depend on the dialects, and just wanted to know if there was an alternative. |
There are no direct dependency on dialect, except generated include and helpers files, empy context and unit tests. |
Hi @vooon, I must be doing something wrong but I can't figure it out.. do you have any clues? |
Did you try doing find_package(mavconn) instead? |
@rishabsingh3003 could you please post here content of libmavconnConfig.cmake? Also perhaps libmavconn from ros2 branch is having more portable build script: |
Anyone that comes here looking for this, we made an easy to use repo for generating this here |
MAVConn library may be useful in standalone projects where needed mavlink.
The text was updated successfully, but these errors were encountered: