Jmeyer1292 / robot_cal_tools

A suite of tools focused on calibration of sensors for robotic workcell development
Apache License 2.0
140 stars 40 forks source link

Convert rct_optimizations to be a ROS-generic CMake package #42

Closed schornakj closed 4 years ago

schornakj commented 4 years ago

The first step at enabling #35. The work I had done previously converted the RCT packages to be ROS2 packages via Ament, which isn't an ideal strategy for us to use here, so this is a fresh take on the task.

TODOs:

schornakj commented 4 years ago

I've made some changes which I will push up once I get tests running through CI again:

schornakj commented 4 years ago

CI currently fails with the error below, which I think is because the environment used in the Github Action doesn't have git installed.

Errors     << rct_common:cmake /root/target_ws/logs/rct_common/build.cmake.000.log
  CMake Error at /usr/share/cmake-3.5/Modules/ExternalProject.cmake:1757 (message):

error: could not find git for clone of GTest
marip8 commented 4 years ago

That seems odd. Doesn't the Docker use git to clone the repository it's building as well as packages from .rosinstall files?

You can specify that additional packages be installed before running the build using the ADDITIONAL_DEBS environment variable with industrial_ci. Maybe try that with git?

schornakj commented 4 years ago

You're right, I didn't understand it quite correctly and git is already installed at the top level.

e: I think that the Docker container set up by industrial_ci doesn't have git installed. The source repositories are cloned before the container is initialized and then copied in afterwards.

schornakj commented 4 years ago

@marip8 I rebased onto the latest master branch and fixed the issue with linking to GTest on the xenial job.

I think that the rct_optimizations tests are being, with two caveats:

rct_optimizations doesn't directly link against Eigen (which is instead brought in by Ceres), so I'll address your comment about the Eigen target in a separate (and imminent!) PR for the other packages.