File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -88,22 +88,27 @@ void FramePublisher::frameBroadcastCallback(const ros::TimerEvent& event)
88
88
}
89
89
catch (tf2::ExtrapolationException& ex)
90
90
{
91
- ROS_WARN_THROTTLE (5.0 , " FramePublisher::frameBroadcastCallback ExtrapolationException: \n %s" , ex.what ());
91
+ ROS_ERROR_THROTTLE (5.0 , " FramePublisher::frameBroadcastCallback ExtrapolationException: \n %s" , ex.what ());
92
92
return ;
93
93
}
94
94
catch (tf2::InvalidArgumentException& ex)
95
95
{
96
- ROS_ERROR ( " FramePublisher::frameBroadcastCallback InvalidArgumentException: \n %s" , ex.what ());
96
+ ROS_ERROR_THROTTLE ( 5.0 , " FramePublisher::frameBroadcastCallback InvalidArgumentException: \n %s" , ex.what ());
97
97
return ;
98
98
}
99
99
catch (tf2::LookupException& ex)
100
100
{
101
- ROS_WARN_THROTTLE (5.0 , " FramePublisher::frameBroadcastCallback LookupException: \n %s" , ex.what ());
101
+ ROS_ERROR_THROTTLE (5.0 , " FramePublisher::frameBroadcastCallback LookupException: \n %s" , ex.what ());
102
102
return ;
103
103
}
104
104
catch (tf2::TimeoutException& ex)
105
105
{
106
- ROS_WARN_THROTTLE (1.0 , " FramePublisher::frameBroadcastCallback TimeoutException: \n %s" , ex.what ());
106
+ ROS_ERROR_THROTTLE (5.0 , " FramePublisher::frameBroadcastCallback TimeoutException: \n %s" , ex.what ());
107
+ return ;
108
+ }
109
+ catch (tf2::TransformException& ex)
110
+ {
111
+ ROS_ERROR_THROTTLE (5.0 , " FramePublisher::frameBroadcastCallback TransformException: \n %s" , ex.what ());
107
112
return ;
108
113
}
109
114
You can’t perform that action at this time.
0 commit comments