From d720848bb69c95eb879c98d34013a1edba498724 Mon Sep 17 00:00:00 2001 From: Martin Dahl Date: Mon, 26 Jun 2023 10:58:25 +0200 Subject: [PATCH] Refresh bindings bash script --- tools/refresh_bindings.bash | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 tools/refresh_bindings.bash diff --git a/tools/refresh_bindings.bash b/tools/refresh_bindings.bash new file mode 100755 index 0000000..517d656 --- /dev/null +++ b/tools/refresh_bindings.bash @@ -0,0 +1,18 @@ +#!/bin/bash + +# run commands in root +cd `git rev-parse --show-toplevel` + +# remove old bindings +rm r2r*/bindings/* + +# only refresh these packages +export IDL_PACKAGE_FILTER='action_msgs;diagnostic_msgs;geometry_msgs;lifecycle_msgs;map_msgs;move_base_msgs;nav_msgs;pendulum_msgs;rosgraph_msgs;sensor_msgs;shape_msgs;statistics_msgs;std_msgs;stereo_msgs;test_msgs;tf2_geometry_msgs;tf2_msgs;trajectory_msgs;unique_identifier_msgs;visualization_msgs' + +# refresh bindings +cargo clean +cargo build --features save-bindgen + +# make sure the bindings work without ros +cargo clean +env -u AMENT_PREFIX_PATH -u ROS_DISTRO cargo build --features doc-only