Skip to content

Commit

Permalink
Added namespace to node name to avoid duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
adeguet1 committed Aug 27, 2024
1 parent e9953a3 commit 1cf59b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions ros_modules/ambf_client/python/ambf_client/ambf_rigid_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ def _clear_command(self):
:return:
"""
# self._cmd.cartesian_cmd_type = RigidBodyCmd.TYPE_FORCE
self._cmd.wrench.force.x = 0
self._cmd.wrench.force.y = 0
self._cmd.wrench.force.z = 0
self._cmd.wrench.torque.x = 0
self._cmd.wrench.torque.y = 0
self._cmd.wrench.torque.z = 0
self._cmd.wrench.force.x = 0.0
self._cmd.wrench.force.y = 0.0
self._cmd.wrench.force.z = 0.0
self._cmd.wrench.torque.x = 0.0
self._cmd.wrench.torque.y = 0.0
self._cmd.wrench.torque.z = 0.0
2 changes: 1 addition & 1 deletion ros_modules/ambf_server/src/RosComBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ RosComBase<T_state, T_cmd>::RosComBase(std::string a_name, std::string a_namespa

m_freq_min = a_freq_min;
m_freq_max = a_freq_max;
m_nodePtr = afROSNode::getNodeAndRegister(a_name);
m_nodePtr = afROSNode::getNodeAndRegister(a_namespace + "_" + a_name);
#if ROS1
m_nodePtr->setCallbackQueue(&m_custom_queue);
#endif
Expand Down

0 comments on commit 1cf59b4

Please sign in to comment.