ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Unable to execute rosrun after roscore command

asked 2017-05-21 02:32:16 -0600

rahulsharma333369 gravatar image

I am using ROS indigo on ubuntu 14.04. Please find below shell output. I am following "Learning ROS for robotics programming" by Aaron Martinez.

rahul@rahul-Inspiron-N5110:~$ cd /home/rahul/dev/rosbook/ rahul@rahul-Inspiron-N5110:~/dev/rosbook$ roscreate-pkg chapter2_tutorials std_msgs rospy roscpp /home/rahul/dev/rosbook/chapter2_tutorials already exists, aborting rahul@rahul-Inspiron-N5110:~/dev/rosbook$ rosmake chapter2_tutorials [ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['chapter2_tutorials']
[ rosmake ] Logging to directory /home/rahul/.ros/rosmake/rosmake_output-20170521-122436 [ rosmake ] Expanded args ['chapter2_tutorials'] to: ['chapter2_tutorials']
[rosmake-0] Starting >>> catkin [ make ]
[rosmake-0] Finished <<< catkin ROS_NOBUILD in package catkinive 0/25 Complete ] No Makefile in package catkin [rosmake-0] Starting >>> genmsg [ make ]
[rosmake-2] Starting >>> cpp_common [ make ]
[rosmake-1] Starting >>> cmake_modules [ make ]
[rosmake-1] Finished <<< cmake_modules ROS_NOBUILD in package cmake_modules No Makefile in package cmake_modules [rosmake-1] Starting >>> rospack [ make ]
[rosmake-2] Finished <<< cpp_common ROS_NOBUILD in package cpp_common No Makefile in package cpp_common [rosmake-2] Starting >>> rostime [ make ]
[rosmake-0] Finished <<< genmsg ROS_NOBUILD in package genmsg No Makefile in package genmsg [rosmake-3] Starting >>> xmlrpcpp [ make ]
[rosmake-1] Finished <<< rospack ROS_NOBUILD in package rospack No Makefile in package rospack [rosmake-0] Starting >>> genlisp [ make ]
[rosmake-1] Starting >>> genpy [ make ]
[rosmake-2] Finished <<< rostime ROS_NOBUILD in package rostime No Makefile in package rostime [rosmake-2] Starting >>> gencpp [ make ]
[rosmake-3] Finished <<< xmlrpcpp ROS_NOBUILD in package xmlrpcpp No Makefile in package xmlrpcpp [rosmake-0] Finished <<< genlisp ROS_NOBUILD in package genlisp No Makefile in package genlisp [rosmake-3] Starting >>> roscpp_traits [ make ]
[rosmake-0] Starting >>> roslib [ make ]
[rosmake-2] Finished <<< gencpp ROS_NOBUILD in package gencpp No Makefile in package gencpp [rosmake-2] Starting >>> roslang [ make ]
[rosmake-1] Finished <<< genpy ROS_NOBUILD in package genpy No Makefile in package genpy [rosmake-1] Starting >>> message_generation [ make ]
[rosmake-3] Finished <<< roscpp_traits ROS_NOBUILD in package roscpp_traits No Makefile in package roscpp_traits [rosmake-3] Starting >>> roscpp_serialization [ make ]
[rosmake-0] Finished <<< roslib ROS_NOBUILD in package roslib No Makefile in package roslib [rosmake-2] Finished <<< roslang ROS_NOBUILD in package roslang No Makefile in package roslang [rosmake-0] Starting >>> rosunit [ make ]
[rosmake-2] Starting >>> rosgraph [ make ]
[rosmake-1] Finished <<< message_generation ROS_NOBUILD in package message_generation No Makefile in package message_generation [rosmake-3] Finished <<< roscpp_serialization ROS_NOBUILD in package roscpp_serialization No Makefile in package roscpp_serialization [rosmake-0] Finished <<< rosunit ROS_NOBUILD in package rosunit No Makefile in package rosunit [rosmake-3] Starting >>> message_runtime [ make ]
[rosmake-2] Finished <<< rosgraph ROS_NOBUILD in package rosgraph No Makefile in package rosgraph [rosmake-3] Finished <<< message_runtime ROS_NOBUILD in package message_runtime No Makefile in package message_runtime [rosmake-3] Starting >>> std_msgs [ make ]
[rosmake-1] Starting >>> rosbuild [ make ]
[rosmake-3] Finished <<< std_msgs ROS_NOBUILD in package std_msgs No Makefile in package std_msgs [rosmake-1] Finished <<< rosbuild ROS_NOBUILD in package rosbuild No Makefile in package rosbuild [rosmake-1] Starting >>> rosconsole [ make ]
[rosmake-3] Starting >>> rosgraph_msgs [ make ]
[rosmake-1] Finished <<< rosconsole ROS_NOBUILD in package rosconsole No Makefile in package rosconsole [rosmake-3] Finished <<< rosgraph_msgs ROS_NOBUILD in package rosgraph_msgs No Makefile in package rosgraph_msgs [rosmake-1] Starting >>> roscpp [ make ]
[rosmake-1] Finished <<< roscpp ROS_NOBUILD in package roscpp No Makefile in package roscpp [rosmake-1] Starting >>> rospy [ make ]
[rosmake-1] Finished <<< rospy ROS_NOBUILD in package rospy No Makefile in package rospy [rosmake-1] Starting >>> chapter2_tutorials [ make ]
[rosmake-1] Finished <<< chapter2_tutorials [PASS] [ 7.51 seconds ]
[ rosmake ] Results:
[ rosmake ] Built 25 packages with 0 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/rahul/.ros/rosmake/rosmake_output-20170521-122436
rahul@rahul-Inspiron-N5110:~/dev/rosbook ... (more)

edit retag flag offensive close merge delete


I don't really follow how the output you included shows that rosrun doesn't work (I only see roslaunch output), but in any case: don't use rosmake on Indigo. It's unfortunate, but that book (1st ed anyway) is from 2013, which is 'ages' ago.

gvdhoorn gravatar image gvdhoorn  ( 2017-05-21 05:54:23 -0600 )edit

rosrun doesn't work means after "rosrun turtlesim turtlesim_node" command, new window is expected which will have turtle. Also rosnode info, rostopic list command doesn't return anytthing. What book would you recommend for learning ROS. I am new in this.

rahulsharma333369 gravatar image rahulsharma333369  ( 2017-05-21 09:39:43 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-05-21 10:27:24 -0600

gvdhoorn gravatar image

Are you typing all these commands in the same terminal as where you started roscore?

If so, then that is your problem: roscore should run in its own terminal. If it works correctly, roscore is not supposed to 'end' and give you your terminal back. Use ctrl+c to stop it when you are done with it.

Open (a) new terminal(s) for the other command(s).

edit flag offensive delete link more


Hey thanks. Yes, I was trying in the same terminal. My bad, was referring old book by Arron.

rahulsharma333369 gravatar image rahulsharma333369  ( 2017-05-22 05:41:11 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-05-21 02:32:16 -0600

Seen: 482 times

Last updated: May 21 '17