diff --git a/SubjuGator/command/subjugator_launch/launch/subsystems/nav_box.launch b/SubjuGator/command/subjugator_launch/launch/subsystems/nav_box.launch index 3dee6ee81..fe18b292d 100644 --- a/SubjuGator/command/subjugator_launch/launch/subsystems/nav_box.launch +++ b/SubjuGator/command/subjugator_launch/launch/subsystems/nav_box.launch @@ -7,7 +7,7 @@ - + @@ -17,7 +17,7 @@ - + @@ -26,7 +26,7 @@ - + diff --git a/SubjuGator/drivers/sub8_adis16400_imu/include/adis16400_imu/driver.h b/SubjuGator/drivers/sub8_adis16400_imu/include/adis16400_imu/driver.h index c8fd95b78..dc5146e7f 100644 --- a/SubjuGator/drivers/sub8_adis16400_imu/include/adis16400_imu/driver.h +++ b/SubjuGator/drivers/sub8_adis16400_imu/include/adis16400_imu/driver.h @@ -41,7 +41,7 @@ class Device } catch (const std::exception &exc) { - ROS_ERROR("error on open(%s): %s; reopening after delay", port.c_str(), exc.what()); + ROS_ERROR_THROTTLE(5, "error on open(%s): %s; reopening after delay", port.c_str(), exc.what()); boost::this_thread::sleep(boost::posix_time::seconds(1)); return false; } @@ -62,7 +62,7 @@ class Device } catch (const std::exception &exc) { - ROS_ERROR("error on read: %s; reopening", exc.what()); + ROS_ERROR_THROTTLE(5, "error on read: %s; reopening", exc.what()); open(); return false; } diff --git a/SubjuGator/drivers/sub8_depth_driver/include/depth_driver/driver.h b/SubjuGator/drivers/sub8_depth_driver/include/depth_driver/driver.h index 26cca97c3..2f4468091 100644 --- a/SubjuGator/drivers/sub8_depth_driver/include/depth_driver/driver.h +++ b/SubjuGator/drivers/sub8_depth_driver/include/depth_driver/driver.h @@ -69,7 +69,7 @@ class Device } catch (const std::exception &exc) { - ROS_ERROR("error on write: %s; dropping", exc.what()); + ROS_ERROR_THROTTLE(5, "error on write: %s; dropping", exc.what()); } } @@ -82,7 +82,7 @@ class Device } catch (const std::exception &exc) { - ROS_ERROR("error on read: %s; reopening", exc.what()); + ROS_ERROR_THROTTLE(5, "error on read: %s; reopening", exc.what()); open(); return false; } @@ -98,7 +98,7 @@ class Device } catch (const std::exception &exc) { - ROS_ERROR("error on open(%s): %s; reopening after delay", port.c_str(), exc.what()); + ROS_ERROR_THROTTLE(5, "error on open(%s): %s; reopening after delay", port.c_str(), exc.what()); boost::this_thread::sleep(boost::posix_time::seconds(1)); } } diff --git a/SubjuGator/drivers/sub8_rdi_dvl/include/rdi_explorer_dvl/driver.hpp b/SubjuGator/drivers/sub8_rdi_dvl/include/rdi_explorer_dvl/driver.hpp index 914706c44..80e9cf973 100644 --- a/SubjuGator/drivers/sub8_rdi_dvl/include/rdi_explorer_dvl/driver.hpp +++ b/SubjuGator/drivers/sub8_rdi_dvl/include/rdi_explorer_dvl/driver.hpp @@ -48,7 +48,7 @@ class Device } catch (const std::exception &exc) { - ROS_ERROR_THROTTLE(0.5, "DVL: error on read: %s; reopening serial port", exc.what()); + ROS_ERROR_THROTTLE(5, "DVL: error on read: %s; reopening serial port", exc.what()); open(); return false; } @@ -86,7 +86,7 @@ class Device } catch (const std::exception &exc) { - ROS_ERROR("DVL: error on open(port=%s): %s; reopening after delay", port.c_str(), exc.what()); + ROS_ERROR_THROTTLE(5, "DVL: error on open(port=%s): %s; reopening after delay", port.c_str(), exc.what()); boost::this_thread::sleep(boost::posix_time::seconds(1)); } } @@ -268,7 +268,7 @@ class Device } catch (const std::exception &exc) { - ROS_ERROR_THROTTLE(0.5, "DVL: error on write: %s; dropping heartbeat", exc.what()); + ROS_ERROR_THROTTLE(5, "DVL: error on write: %s; dropping heartbeat", exc.what()); } }