Skip to content

Commit

Permalink
Fix an error about trigger.
Browse files Browse the repository at this point in the history
  • Loading branch information
irvingskr committed Aug 4, 2023
1 parent 8255104 commit f9add89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ add_library(hk_camera
target_link_libraries(hk_camera
libMvCameraControl.so ${catkin_LIBRARIES} ${Opencv_LIBS})

add_dependencies(hk_camera ${PROJECT_NAME}_gencfg)

#add_executable(hk_camera_node
# src/hk_camera_node.cpp)
#add_dependencies(hk_camera_node ${PROJECT_NAME}_gencfg)
Expand Down
10 changes: 5 additions & 5 deletions src/hk_camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ void HKCameraNodelet::onFrameCB(unsigned char* pData, MV_FRAME_OUT_INFO_EX* pFra
ROS_WARN("Trigger not in sync!");
trigger_not_sync_ = true;
}
else if ((now - pkt.trigger_time_).toSec() < 0)
{
ROS_WARN("Trigger not in sync! Maybe any CAN frames have be dropped?");
trigger_not_sync_ = true;
}
// else if ((now - pkt.trigger_time_).toSec() < 0)
// {
// ROS_WARN("Trigger not in sync! Maybe any CAN frames have be dropped?");
// trigger_not_sync_ = true;
// }
else if ((now - pkt.trigger_time_).toSec() > 0.013)
{
ROS_WARN("Trigger not in sync! Maybe imu %s does not actually trigger camera?", imu_name_.c_str());
Expand Down

0 comments on commit f9add89

Please sign in to comment.