Skip to content

Commit

Permalink
Merge pull request #99 from zivid/fix_rep-135_for_nodelets
Browse files Browse the repository at this point in the history
allow namespaced nodelet to attach to manager in global namespace
  • Loading branch information
apartridge authored Jun 14, 2024
2 parents 603fa5b + a4ffff0 commit 255abb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zivid_camera/src/zivid_camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ ZividCamera::ZividCamera(ros::NodeHandle& nh, ros::NodeHandle& priv)
ROS_INFO("Zivid ROS driver version %s", ZIVID_ROS_DRIVER_VERSION);

ROS_INFO("Node's namespace is '%s'", nh_.getNamespace().c_str());
if (ros::this_node::getNamespace() == "/")
if (nh_.getNamespace() == "")
{
// Require the user to specify the namespace that this node will run in.
// See REP-135 http://www.ros.org/reps/rep-0135.html
Expand Down

0 comments on commit 255abb2

Please sign in to comment.