From 5ea9446c6829dfebfe0bacc1b9695c7d6371abdc Mon Sep 17 00:00:00 2001 From: Bernd Pfrommer Date: Tue, 8 Oct 2024 11:08:32 -0400 Subject: [PATCH] better documentation for setting GENTL variable --- spinnaker_camera_driver/doc/index.rst | 3 +-- spinnaker_camera_driver/scripts/linux_setup_flir | 7 ++++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/spinnaker_camera_driver/doc/index.rst b/spinnaker_camera_driver/doc/index.rst index 23eea867..44bf1300 100644 --- a/spinnaker_camera_driver/doc/index.rst +++ b/spinnaker_camera_driver/doc/index.rst @@ -384,8 +384,7 @@ your machine. .. code:: - export - SPINNAKER_GENTL64_CTI=/opt/ros/${ROS_DISTRO}/lib/spinnaker-gentl/Spinnaker_GenTL.cti + export SPINNAKER_GENTL64_CTI=/opt/ros/${ROS_DISTRO}/lib/spinnaker-gentl/Spinnaker_GenTL.cti 2) Add the “flirimaging” group and make yourself a member of it diff --git a/spinnaker_camera_driver/scripts/linux_setup_flir b/spinnaker_camera_driver/scripts/linux_setup_flir index 370539ea..b44cddd8 100755 --- a/spinnaker_camera_driver/scripts/linux_setup_flir +++ b/spinnaker_camera_driver/scripts/linux_setup_flir @@ -4,6 +4,7 @@ echo "" echo -e "\e[32mStarting spinnaker_camera_driver setup script\e[0m" echo "" + while true; do read -p "Add the flirimaging group? (y/n)? " yn case $yn in @@ -66,4 +67,8 @@ done echo "" echo -e "\e[32mDone: spinnaker_camera_driver setup script\e[0m" echo "Please reboot the device to ensure changes have taken full effect" -echo "" \ No newline at end of file +echo "" + +echo "Don't forget to add this line to your .bashrc: " +echo "" +echo "export SPINNAKER_GENTL64_CTI=/opt/ros/\${ROS_DISTRO}/lib/spinnaker-gentl/Spinnaker_GenTL.cti"