osrf / vrx

Virtual RobotX (VRX) resources.
Apache License 2.0
387 stars 178 forks source link

Build without --merge-install flag #746

Open mvanlobensels opened 8 months ago

mvanlobensels commented 8 months ago

Is it possible to build vrx without the --merge-install flag? This flag is not compatible with the rest of my ROS workspace, and mainly external sensor drivers. With the flag, other parts of my repo do not build.

When I build without the --merge-install flag, the following errors occur: see screenshots.

To Reproduce List the steps to reproduce the problem:

  1. colcon build
  2. source install setup.bash
  3. ros2 launch vrx_gz competition.launch.py world:=sydney_regatta

System Configuration:

Screenshots image

image

mvanlobensels commented 8 months ago

From https://github.com/osrf/vrx/issues/732, it seems that the GZ_SIM_RESOURCE_PATH has to be set correctly. With the --merge-install flag, it points to vrx_ws/install/share/wamv_description/models, which is indeed where the files are installed.

Without the --merge-install flag, the wamv_description package is installed in vrx_ws/install/wamv_description/share/wamv_description/models. So I add this path to the GZ_SIM_RESOURCE_PATH environment variable, but Gazebo can still not find the files. If I manually move the files from vrx_ws/install/wamv_description/share/wamv_description/models to vrx_ws/install/share/wamv_description/models, Gazebo does find them.

How can I make Gazebo search for the files in the correct folder?

mvanlobensels commented 7 months ago

@caguero Do you know if this can be accomplished?