0
$\begingroup$

Rosanswers logo

I work in simulation.

I have this node in the launch file:

<node pkg="nodelet" type="nodelet" name="turtlebot_follower"
      args="standalone turtlebot_follower/TurtlebotFollower">
      <remap from="depth/points" to="camera/depth/points"/>
</node>

The program works. "turtlebot_follower" node subscribes to /camera/depth/points. Then I want to load this node in nodelet_manager. Here is a new launch file:

<node pkg="nodelet" type="nodelet" name="turtlebot_follower"
      args="load turtlebot_follower/TurtlebotFollower manager">
      <remap from="depth/points" to="camera/depth/points"/>
</node>

I launched manager:

 rosrun nodelet nodelet manager

Then I run launch file. The program doesn't work. There is no subscriber to /camera/depth/points topic.

How can I solve this problem?

UPDATE: using command

rosrun nodelet nodelet manager
instead of
rosrun nodelet nodelet manager __name:=nodelet_manager


Originally posted by nampi on ROS Answers with karma: 77 on 2016-02-09

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

I used difference namespace. When I launched nodelet manager in the same namespace it worked.


Originally posted by nampi with karma: 77 on 2016-02-11

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.