ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

openni_launch pointclouds not published in rviz

asked 2011-12-16 08:16:51 -0600

karthik gravatar image

Hi, openni_launch when ran gives the following error

[ERROR] [1324070131.410127857]: Tried to advertise a service that is already advertised in this node [/camera/depth_registered/image_rect_raw/compressed/set_parameters]
[ERROR] [1324070131.419698718]: Tried to advertise a service that is already advertised in this node [/camera/depth_registered/image_rect_raw/theora/set_parameters]

As given in the http://answers.ros.org/question/3210/complaint-from-openni_launch-on-already-advertised assuming that it doesn't make an impact i checked the rviz. I can see the image but the pointcloud is not being visualized. Even the status is "ok" for the pointcloud2 display in rviz. I echoed the topic that is subscribed by the rviz on the command line and could see the point clouds being displayed. Can someone tell what i am missing here. I saw in some posts that a dynamic reconfigure has to be done for this node. In that case how do i do it.

Thanks, Karthik

edit retag flag offensive close merge delete

Comments

Any help on this :(
karthik gravatar image karthik  ( 2011-12-20 18:02:41 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-12-16 13:55:10 -0600

joq gravatar image

You probably still have an earlier instance running, which roscore knows about.

edit flag offensive delete link more

Comments

Can you tell how to check that? I don have any other instance as such. But even in that case if rostopic is able to echo that, why is it not subscribed by rviz.
karthik gravatar image karthik  ( 2011-12-16 22:43:19 -0600 )edit
Try `rosservice list`, I suppose. Only one node can advertise a given service. That is what the launch is complaining about.
joq gravatar image joq  ( 2011-12-16 23:00:45 -0600 )edit
When i am not running the roslaunch openni_launch openni.launch the rosservice list is showing "ERROR: Unable to communicate with master!" So i don c anyother instance running. I feel that the openni.launch is advertising the same thing twice but dont kno which code to check for the same.
karthik gravatar image karthik  ( 2011-12-16 23:42:52 -0600 )edit
any comments on the issue??
karthik gravatar image karthik  ( 2011-12-25 18:23:07 -0600 )edit

If the roscore is being started by roslaunch, it will terminate when the launch does. You can avoid that by running it separately, *before* roslaunch.

joq gravatar image joq  ( 2013-09-17 05:50:56 -0600 )edit

Question Tools

Stats

Asked: 2011-12-16 08:16:51 -0600

Seen: 361 times

Last updated: Dec 16 '11