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

rosrun beginner_tutorials results in no output

asked 2017-12-07 06:56:24 -0500

shivak singh gravatar image

HI All

I'm using ubuntu 16/04 along with python for writing nodes.

I just have few hours experience on ROS.

I pushed rosrun beginner_tutorials after defining the source but this resulted in no output ust the cursor blinking for few times then stagnant.

I rechecked the CMakeLists.txt but couldn't find any any dependencies in it with reference to tutorials (I'm not sure though)


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-12-07 10:43:24 -0500

jayess gravatar image

updated 2017-12-07 19:55:31 -0500

I'm assuming that you're doing the subscriber/publisher tutorial for rospy. Are you running the talker node? The listener node will only do something if there's a node publishing (i.e.,callback functions are only called when they receive data on a topic). Try running both nodes and see what happens.

edit flag offensive delete link more


To add-on, run another terminal (e.g: control +shift + o) and rosrun beginner_tutorials

okkewei gravatar image okkewei  ( 2020-10-14 15:12:47 -0500 )edit

answered 2017-12-07 11:42:19 -0500

Gayan Brahmanage gravatar image

You need to publish the topic what you have configured for subscribing. If the topic is not being published, your subscriber callback function is not called.

edit flag offensive delete link more

Question Tools



Asked: 2017-12-07 06:55:29 -0500

Seen: 883 times

Last updated: Dec 07 '17