Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add drake_catkin_installed example #168

Merged
merged 3 commits into from
Mar 30, 2020
Merged

Add drake_catkin_installed example #168

merged 3 commits into from
Mar 30, 2020

Conversation

jamiesnape
Copy link
Contributor

@jamiesnape jamiesnape commented Mar 10, 2020

Toward #163. Relates RobotLocomotion/drake#12773.


This change is Reviewable

@jamiesnape
Copy link
Contributor Author

+@EricCousineau-TRI for review.

Copy link
Collaborator

@EricCousineau-TRI EricCousineau-TRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: with minor comments - thanks!

Reviewed 14 of 14 files at r1.
Reviewable status: 6 unresolved discussions, platform LGTM from [ericcousineau-tri] (waiting on @jamiesnape)


drake_catkin_installed/.gitignore, line 1 at r1 (raw file):

/.catkin_tools/

BTW ew... that's a lotta cruft..


drake_catkin_installed/.gitignore, line 2 at r1 (raw file):

/.catkin_tools/
/.catkin_workspace

nit Can you add a comment stating that these are auto-generated by catkin_make?


drake_catkin_installed/README.md, line 3 at r1 (raw file):

# Catkin Project with an Installed Drake

This example uses the [`catkin`](https://wiki.ros.org/catkin) build system with

nit Can you add that we use this because it is ROS1's primary build system?
(perhaps with a mention that ament, the tool for ROS2, does not yet have an example?)


drake_catkin_installed/src/.gitignore, line 1 at r1 (raw file):

/CMakeLists.txt

nit Can you add a comment stating where this comes from?


drake_catkin_installed/src/drake_catkin_installed/include/drake_catkin_installed/particle.h, line 54 at r1 (raw file):

///   - linear velocity (state/output index 1), in @f$ m/s @f$ units.
///
/// @tparam_double_only

nit Do we use this in Drake at all? If not, can we scrub the alias for now?


scripts/continuous_integration/common/drake_catkin_installed, line 32 at r1 (raw file):

# POSSIBILITY OF SUCH DAMAGE.

set -eux

nit Include -o pipefail? (it's not necessary, but a good habit to keep)


scripts/setup/linux/ubuntu/bionic/install_prereqs, line 123 at r1 (raw file):

locale-gen en_US.UTF-8

if [[ "${1:-}" == --ros-melodic ]]; then

nit Given that this logic is specific, can you assert that $# adds only 0 or 1 args?
Can you also have it fail fast if it is not --ros-melodic?

(That, or turn this into a for ... case $1 type construct?)

Copy link
Contributor Author

@jamiesnape jamiesnape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 6 unresolved discussions, platform LGTM from [ericcousineau-tri] (waiting on @EricCousineau-TRI and @jamiesnape)


drake_catkin_installed/src/drake_catkin_installed/include/drake_catkin_installed/particle.h, line 54 at r1 (raw file):

Previously, EricCousineau-TRI (Eric Cousineau) wrote…

nit Do we use this in Drake at all? If not, can we scrub the alias for now?

22 times in Drake, by my count (it is new).

Copy link
Collaborator

@EricCousineau-TRI EricCousineau-TRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 5 unresolved discussions, platform LGTM from [ericcousineau-tri] (waiting on @jamiesnape)


drake_catkin_installed/src/drake_catkin_installed/include/drake_catkin_installed/particle.h, line 54 at r1 (raw file):

Previously, jamiesnape (Jamie Snape) wrote…

22 times in Drake, by my count (it is new).

OK Ah, missed that - thanks!

Copy link
Contributor Author

@jamiesnape jamiesnape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 1 unresolved discussion, platform LGTM from [ericcousineau-tri] (waiting on @EricCousineau-TRI and @jamiesnape)


drake_catkin_installed/README.md, line 3 at r1 (raw file):

Previously, EricCousineau-TRI (Eric Cousineau) wrote…

nit Can you add that we use this because it is ROS1's primary build system?
(perhaps with a mention that ament, the tool for ROS2, does not yet have an example?)

The colcon/ament example is written already (module CI), so it will be there soon enough that we can skip the mention, I think.

Copy link
Collaborator

@EricCousineau-TRI EricCousineau-TRI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 17 of 17 files at r2.
Reviewable status: 1 unresolved discussion, platform LGTM from [ericcousineau-tri] (waiting on @jamiesnape)


drake_catkin_installed/README.md, line 3 at r1 (raw file):

Previously, jamiesnape (Jamie Snape) wrote…

The colcon/ament example is written already (module CI), so it will be there soon enough that we can skip the mention, I think.

SGTM.

@EricCousineau-TRI
Copy link
Collaborator

It's unclear why the Catalina action is failing:
https://github.com/RobotLocomotion/drake-external-examples/pull/168/checks?check_run_id=517375977

There's no output from the failing setup step...

@jamiesnape jamiesnape merged commit e65491c into RobotLocomotion:master Mar 30, 2020
@jamiesnape jamiesnape deleted the catkin branch March 30, 2020 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants