Skip to content

Namspace issue with nh_.resolveName #39

@ruffsl

Description

@ruffsl

I think I'm having an issue with the use of nh_.resolveName messing up the face_detector's ability to subscribe to specified topics while within a namespace. See the info below:
image

Notice that camera_info is the only properly connected topic in the mismatched bunch. I believe this is due to the fact that it's one of the few topics not filtered by nh_.resolveName: face_detection.cpp#L249

Here is the launch file that works for the simple simulated turtlebot in gazebo, yet not in the robot_0 namespace I'm importing it into without overriding default any args:

<launch>

  <arg name="fixed_frame" default="camera_rgb_frame" />

  <!--include file="$(find openni_launch)/launch/openni.launch"/-->
  <node name="$(anon dynparam)" pkg="dynamic_reconfigure" type="dynparam" args="set_from_parameters $(arg camera)/driver">
    <param name="depth_registration" type="bool" value="true" />
  </node>

 <node pkg="face_detector" type="face_detector" name="face_detector" output="screen">
    <param name="fixed_frame" type="string" value="$(arg fixed_frame)" />
    <param name="classifier_name" type="string" value="frontalface" />
    <rosparam command="load" file="$(find face_detector)/param/classifier.yaml"/>
    <param name="classifier_reliability" type="double" value="0.9"/>
    <param name="do_continuous" type="bool" value="true" />
    <param name="do_publish_faces_of_unknown_size" type="bool" value="false" />
    <param name="do_display" type="bool" value="false" />
    <param name="use_rgbd" type="bool" value="true" />
    <param name="approximate_sync" type="bool" value="true" />
  </node>

</launch>

Update: removed remaps in snippet, they're omission has no effect

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions