ros commands are not running [closed]

asked 2013-09-24 16:45:47 -0600

Abikala gravatar image

Hi, I am using ros for past few months.Yesterday when i execute roscore it doesn't run.But before i executed every command.Would you help me with that.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2016-08-08 00:25:26.752399


Roscore before you rosrun every thing?

FuerteNewbie gravatar image FuerteNewbie  ( 2013-09-24 17:34:59 -0600 )edit

Can you tell what happens when you try and run roscore? Do you get any output?

DamienJadeDuff gravatar image DamienJadeDuff  ( 2013-09-24 21:30:07 -0600 )edit

Give the exact command that you enter and copy the error here.

dornhege gravatar image dornhege  ( 2013-09-24 23:24:22 -0600 )edit

i gave roscore and it is not running..and i am not getting any error also..My cursor symbol is standing at second line itself and if i give roscreate-pkg [package-name] then the package is creating.. otherwise if i give roscreate-pkg [package-name] image_transport roscpp std_msgs opencv2 cv_bridge uvc_camera then it is not running.. and i am getting this problem for last one week..

Abikala gravatar image Abikala  ( 2013-09-26 02:35:32 -0600 )edit

Try running `roscore -v` to get verbose output from roscore and paste the results in your question. Also can you give the output of running `env|grep ROS` before you run roscore? This is to check your environment variables as roscore may do this if ROS_MASTER_URI is set incorrectly.

DamienJadeDuff gravatar image DamienJadeDuff  ( 2013-09-26 18:58:14 -0600 )edit

Note: strip the `` from the command before pasting it into a terminal. Also what happens when you press CTRL-C in the terminal where the stalled roscore is running?

DamienJadeDuff gravatar image DamienJadeDuff  ( 2013-09-26 18:58:50 -0600 )edit

I gave 'env|grep ROS' o/p: env|grep ROS ROS_ROOT=/opt/ros/fuerte/share/ros ROS_PACKAGE_PATH=/home/abi/t:/home/abi/cv1:/home/abi/wi:/home/abi/colorThresholdProcess:/home/abi/abc:/home/abi/testROSOpenCVFFMPEG:/home/abi/ab:/home/abi/pub_node:/home/abi/tutorialROSOpenCV:/opt/ros/fuerte/share:/opt/ros/fuerte/stacks:/home/abi/ ROSLISP_PACKAGE_DIRECTORY=/opt/ros/fuerte/share/common-lisp/ros ROS_MASTER_URI=http://localhost:11311 ROS_DISTRO=fuerte ROS_ETC_DIR=/opt/ros/fuerte/etc/ros

Abikala gravatar image Abikala  ( 2013-09-27 00:10:26 -0600 )edit

I'm a bit lost with this one but why don't you try running the Python debugger on these scripts as they are all in Python (at the first debugger prompt, type continue and then when you press CTRL-C you will drop into the debugger): python -m pdb `which roscore`

DamienJadeDuff gravatar image DamienJadeDuff  ( 2013-09-30 02:36:14 -0600 )edit