diff --git a/launch/reach_study_config.rviz b/launch/reach_study_config.rviz index d76d0a6..0950a1c 100644 --- a/launch/reach_study_config.rviz +++ b/launch/reach_study_config.rviz @@ -127,7 +127,7 @@ Visualization Manager: "": true Topic: Depth: 5 - Durability Policy: Volatile + Durability Policy: Transient Local Filter size: 10 History Policy: Keep Last Reliability Policy: Reliable diff --git a/src/display/ros_display.cpp b/src/display/ros_display.cpp index 138bbc4..5ea23da 100644 --- a/src/display/ros_display.cpp +++ b/src/display/ros_display.cpp @@ -43,7 +43,7 @@ ROSDisplay::ROSDisplay(std::string kinematic_base_frame, double marker_scale, bo joint_state_pub_ = reach_ros::utils::getNodeInstance()->create_publisher(JOINT_STATES_TOPIC, 1); mesh_pub_ = - reach_ros::utils::getNodeInstance()->create_publisher(MESH_MARKER_TOPIC, 1); + reach_ros::utils::getNodeInstance()->create_publisher(MESH_MARKER_TOPIC, rclcpp::QoS(1).transient_local()); neighbors_pub_ = reach_ros::utils::getNodeInstance()->create_publisher(NEIGHBORS_MARKER_TOPIC, 1); }