Skip to content

Commit 2cdc985

Browse files
authored
Change rviz log level (#5708)
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
1 parent 5429a68 commit 2cdc985

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎nav2_bringup/launch/rviz_launch.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def generate_launch_description() -> LaunchDescription:
5959
package='rviz2',
6060
executable='rviz2',
6161
namespace=namespace,
62-
arguments=['-d', rviz_config_file, '--ros-args', '--log-level', 'warn'],
62+
arguments=['-d', rviz_config_file],
6363
output='screen',
6464
parameters=[{'use_sim_time': use_sim_time}],
6565
remappings=[

‎nav2_costmap_2d/plugins/costmap_filters/costmap_filter.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ bool CostmapFilter::transformPose(
172172
try {
173173
tf_->transform(in, out, mask_frame, transform_tolerance_);
174174
} catch (tf2::TransformException & ex) {
175-
RCLCPP_ERROR(
176-
logger_,
175+
RCLCPP_ERROR_THROTTLE(
176+
logger_, *(clock_), 2000,
177177
"CostmapFilter: failed to get costmap frame (%s) "
178178
"transformation to mask frame (%s) with error: %s",
179179
global_frame.c_str(), mask_frame.c_str(), ex.what());

‎nav2_costmap_2d/plugins/costmap_filters/keepout_filter.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ void KeepoutFilter::process(
268268
mask_frame, global_frame_, tf2::TimePointZero,
269269
transform_tolerance_);
270270
} catch (tf2::TransformException & ex) {
271-
RCLCPP_ERROR(
272-
logger_,
271+
RCLCPP_ERROR_THROTTLE(
272+
logger_, *(clock_), 2000,
273273
"KeepoutFilter: Failed to get costmap frame (%s) "
274274
"transformation to mask frame (%s) with error: %s",
275275
global_frame_.c_str(), mask_frame.c_str(), ex.what());

0 commit comments

Comments
 (0)