Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions vicon_receiver/src/communicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ void Communicator::get_frame()
Output_GetSegmentGlobalRotationQuaternion quat =
vicon_client.GetSegmentGlobalRotationQuaternion(subject_name, segment_name);

// Skip data publish if segment is occluded
if ( trans.Occluded || quat.Occluded ){
continue;
}

// Build a TF message for this segment
geometry_msgs::msg::TransformStamped tf_msg;

Expand Down