Comments (10)
Can you please contribute a docs PR?
I'm lost on how you skipped that step. We've had a bunch of people skip it, and I am not sure how to improve it.
from ardupilot_gz.
This is probably for @srmainwaring or @Ryanf55 to answer.
I'm sure you've seen it but hopefully you've got the ArduPilot build environment installed on the PC as well. https://ardupilot.org/dev/docs/building-the-code.html
from ardupilot_gz.
Are you sure there isn't more log data? Normally, in a failure, you get messages on what failed.
from ardupilot_gz.
Please delete the build, log, and install folder. Then rebuild.
Finally, zip up the entire contents of your log folder and attach it here. I want to look at everything.
https://colcon.readthedocs.io/en/released/user/log-files.html#log-files
from ardupilot_gz.
@aarsht7 the top level colcon messages are not that helpful - basically telling you a package failed to build and not much else. There are flags you can set to provide more detail --event-handlers console_direct+
.
In this case the problem is the core ardupilot library as a colcon package. You can build this directly using ./waf
as follows:
- Change to
~/ros_ws/src/ardupilot
- Configure:
./waf configure --board sitl --debug --enable-dds
- Build:
./waf build
I suspect you may be missing a dependency, possibly the path to the microxrceddsgen
binary.
from ardupilot_gz.
Are you sure there isn't more log data? Normally, in a failure, you get messages on what failed.
On the colcon build logs, there is no log data of ardupilot_sitl
as pkg is not built
But there is config.log
inside src/ardupilot/build
After analyzing it, I realized that the $PATH
variable it is not the same as the one in the current env
. Maybe it is catching the old one and not updating when I rebuild without removing the ardupilot build directory.
So I tried rm -rf src/ardupilot/build build/ install/ log/
and rebuild
This time it does update to the correct path to the microxrcedds_gen
, But the error remains the same.
Also, I forgot to mention one more error, so I have updated the issue.
There are flags you can set to provide more detail
--event-handlers console_direct+
.
@srmainwaring
Here is the output of the build using the flag. (I have only put the error output and not the entire build log here)
you need to install pexpect with 'python -m pip install pexpect'
gmake[2]: *** [CMakeFiles/ardupilot_build.dir/build.make:70: CMakeFiles/ardupilot_build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:168: CMakeFiles/ardupilot_build.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
So I installed pexpect
and tried again. This time, it was missing the future
module. So I repeat the procedure after installing it and now I can see big red blocks across the screen.
Here is a pastebin link of the log
Error starts from L82
And build fail logs from L418
from ardupilot_gz.
@aarsht7 did you install microxrceddsgen
from the ArduPilot fork (https://github.com/ArduPilot/Micro-XRCE-DDS-Gen)? The error you are seeing is because the eProsima version does not support the additional flag reported in the errors.
from ardupilot_gz.
did you install
microxrceddsgen
from the ArduPilot fork
No, I did not. I used the docs from eProsima when I faced the error the first time.
I tried with the fork, and ardupilot_sitl
builds without error.
Error with pkg microxrcedds_agent
persist
It seems pkg is not required as I run colcon build --packages-up-to ardupilot_gz_bringup
, that pkg is not build.
Closing the issue from my side.
Thank you pointing to the fork 🙌🏼
from ardupilot_gz.
Also, please review this change too:
ArduPilot/ardupilot_wiki#5887
from ardupilot_gz.
Can you please contribute a docs PR?
from ardupilot_gz.
Related Issues (20)
- Set up basic infrastructure for running a CLI smoke test HOT 2
- Handle microxrceddsgen dependency HOT 6
- Support launching gazebo sim to visualize vehicle HOT 4
- Ardupilot
- How could I start my drone and make it takeoff HOT 2
- Wrong command in README?
- Support ardupilot-developer specific launch scripts for rapid development
- Rviz reports invalid frame ID HOT 1
- Prefer pathlib to os.path in launch files HOT 5
- Review use of qos_overrides for /tf_static in ros_gz_bridge
- Could not find the `robot` element in the xml file HOT 3
- rviz crashing due to shared library error - caused by VSCode GTK_PATH environment variable HOT 1
- Add a debian install of the ROS2 tools HOT 15
- Split TF tree in Iris maze HOT 2
- rosdep: the following packages/stacks could not have their rosdep keys resolved HOT 2
- Can I use it? "wind-effects-system" HOT 6
- robot state publisher crashing HOT 1
- Add a navigation example using nav2 as the planner/controller
- sdformat_urdf package error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ardupilot_gz.