Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Loading node with nodelet manager doesn't work

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 nodelet_manager">
      <remap from="depth/points" to="camera/depth/points"/>
</node>

I launched nodelet_manager:

 rosrun nodelet nodelet manager __name:=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?

Loading node with nodelet manager doesn't work

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 nodelet_manager">
manager">
      <remap from="depth/points" to="camera/depth/points"/>
</node>

I launched nodelet_manager:manager:

 rosrun nodelet nodelet manager __name:=nodelet_manager
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