Skip to content

Commit

Permalink
Merge pull request jsk-ros-pkg#587 from tongtybj/PR/mocap/ground_trut…
Browse files Browse the repository at this point in the history
…h/sub

[Gazebo][Mocap][Subscriber] solve the topic delay related to the ground_truth pose
  • Loading branch information
tongtybj authored Dec 26, 2023
2 parents be22c8f + cc9865a commit 2936b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aerial_robot_estimation/src/sensor/mocap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace sensor_plugin

mocap_sub_ = nh_.subscribe(topic_name, 1, &Mocap::poseCallback, this, hint); // buffer size 1: only need the latest value.
nhp_.param("ground_truth_sub_name", topic_name, std::string("ground_truth"));
ground_truth_sub_ = nh_.subscribe(topic_name, 1, &Mocap::groundTruthCallback, this);
ground_truth_sub_ = nh_.subscribe(topic_name, 1, &Mocap::groundTruthCallback, this, ros::TransportHints().tcpNoDelay());
}

~Mocap() {}
Expand Down

0 comments on commit 2936b05

Please sign in to comment.