Good morning,
Thank you very much for your wonderful open-source simulator!
I have an issue with the ROS examples. The compilation is successful, however, when I execute the program, I get a segmentation fault. I am using the commit 8995d62963e9d6ef6c58985a2601d9a80d48fba7 on the branch main (not the latest because I have meshes visualisation troubles).
During the CMake configuration, I receive the following warning:
I am not sure how to solve this issue and was wondering if this is a known problem.
Thank you very much for your help! :)
Hello Patrick,
Apologies for the delayed reply.
After testing many configurations with my Dockerfiles, I've determined that the issue lies with the Chrono::Parsers module. During the CMake configuration step, the parsers module fails to find my ROS 2 installation, even though it is installed correctly.
Here is the relevant output from CMake:
Separately, I believe I found a typo in the ch_parser.dockerfile on the main branch. It uses DCH_ENABLE_MODULE_PARSER instead of the correct DCH_ENABLE_MODULE_PARSERS, which likely prevents the module from being activated in that file.
I read online that this kind of issue can be caused by not sourcing the ROS environment. I tried sourcing /opt/ros/humble/setup.bash in the same RUN command as cmake, but the parsers module still could not find ROS 2.
If I disable the PARSERS module, ROS module works perfectly, but this prevents me from using URDF files.
Do you have any suggestions on how to resolve this?