Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Dependency Generation fails if depends on package with action files (Ubuntu 16.04/ROS Kinetic) #36

Open
SomeshDaga opened this issue Jun 15, 2018 · 1 comment

Comments

@SomeshDaga
Copy link

SomeshDaga commented Jun 15, 2018

In attempting to build a rosjava package with dependency on a custom msg which in turn has dependencies on other standard ROS messages (e.g. sensor_msgs, std_msgsetc), the build is seen to fail (~90% of the time) the first time a catkin build --this command is run for the package. All subsequent builds will execute successfully.

The build failure reports the absence of the java binaries for the custom_msg package, which indeed seems to be the case (I can see that no binaries are generated for it in the devel/share/maven space). However, the java binaries for its dependencies are generated (i.e. the standard ROS message) and seen in the folder stated above. Hence, I am not quite sure why the java binaries for the custom msg package are not generated.

Upon executing another catkin build, the java binaries are now generated for the custom msg package (probably because the java binaries for its dependencies already exist from the previous build operation) and the build executes successfully.

Note that I have cloned the source of standard ROS messages to my ROS workspace, in order to build the jars for these messages on the fly.

Another interesting item of note is that running the same operation on another system with similar specs shows a higher success rate (~90% success) on the first build but does occasionally fail (on the first build after a catkin clean).

@SomeshDaga
Copy link
Author

SomeshDaga commented Jun 15, 2018

UPDATE

Issue seems to be related to the existence of action files in the package I am adding a dependency to. Removing all action files and dependencies to actionlib/actionlib_msgs results in the build executing successfully every time. Possibly related to #10?

@SomeshDaga SomeshDaga changed the title Race condition in generation of dependencies with catkin_tools (Ubuntu 16.04/ROS Kinetic) Dependency Generation fails if depends on package with action files (Ubuntu 16.04/ROS Kinetic) Jun 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant