Skip to content

Commit

Permalink
Fix current state monitor publish tf bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Jul 24, 2024
1 parent 80a934b commit 1995998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tesseract_monitoring/src/current_state_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct CurrentStateMonitor::Implementation
tf2_ros::TransformBroadcaster tf_broadcaster;
ros::Time current_state_time;
ros::Time last_tf_update;
bool publish_tf;
bool publish_tf{ false };

mutable std::mutex state_update_lock;
mutable std::condition_variable state_update_condition;
Expand Down Expand Up @@ -118,9 +118,9 @@ struct CurrentStateMonitor::Implementation
return env_state.joints;
}

void startStateMonitor(const std::string& joint_states_topic, bool publish_tf)
void startStateMonitor(const std::string& joint_states_topic, bool enable_publish_tf)
{
publish_tf = publish_tf;
publish_tf = enable_publish_tf;
if (!state_monitor_started && env)
{
joint_time.clear();
Expand Down

0 comments on commit 1995998

Please sign in to comment.