Skip to content

Commit

Permalink
Restore commented out logs, also not super clear on use of timestamps…
Browse files Browse the repository at this point in the history
… CURRENT vs ros::Time::now()
  • Loading branch information
lucasw committed Jul 27, 2021
1 parent 7db0df1 commit 225dc2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zed_nodelets/src/zed_nodelet/src/zed_wrapper_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2975,7 +2975,7 @@ void ZEDWrapperNodelet::callback_pubPath(const ros::TimerEvent& e)

void ZEDWrapperNodelet::callback_pubSensorsData(const ros::TimerEvent& e)
{
NODELET_INFO("callback_pubSensorsData");
// NODELET_INFO("callback_pubSensorsData");
std::lock_guard<std::mutex> lock(mCloseZedMutex);

if (!mZed.isOpened())
Expand Down Expand Up @@ -3696,6 +3696,7 @@ void ZEDWrapperNodelet::device_poll_thread_func()

mGrabPeriodMean_usec->addValue(elapsed_usec);

// NODELET_INFO_STREAM("Grab time: " << elapsed_usec / 1000 << " msec");
mFrameTimestamp = getTimestamp();

const ros::Time stamp = mFrameTimestamp; // Timestamp
Expand Down Expand Up @@ -4155,6 +4156,7 @@ void ZEDWrapperNodelet::device_poll_thread_func()
// Publish odometry tf only if enabled
if (mPublishTf)
{
// TODO(lucasw) or just ust mFrameTimestamp?
const ros::Time t = getTimestamp();

publishOdomFrame(mOdom2BaseTransf, t); // publish the base Frame in odometry frame
Expand Down

0 comments on commit 225dc2f

Please sign in to comment.