Skip to content

Commit

Permalink
Fix compilation on Linux without ROS1 requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanmunawar committed Dec 22, 2024
1 parent 3db98c5 commit 404959b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ambf_plugins/core/ros_comm_plugin/ObjectCommPlugin.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "ObjectCommPlugin.h"

#ifdef AF_ENABLE_AMBF_COMM_SUPPORT
void copyVec(cVector3d* in, geometry_msgs::Vector3* out){
out->x = in->x(); out->y = in->x(); out->z = in->z();
}
Expand All @@ -20,6 +21,8 @@ void fillContactData(afContactEventMap* conEventMap, vector<ambf_msgs::ContactEv
}
}

#endif

void afRigidBodyState::setChildrenNames(afRigidBodyPtr afRBPtr){
int num_children = afRBPtr->m_CJ_PairsActive.size();
if (num_children > 0){
Expand Down

0 comments on commit 404959b

Please sign in to comment.