Roslaunch got a 'No such file or directory' error while attempting to run: xterm -e gdb --args

asked 2016-04-14 20:23:51 -0500

taiping.z gravatar image

Hi, guys! I want to debug in ROS Roslaunch. I add

launch-prefix="xterm -e gdb --args"

accoring to this page. When I add this debug line, there is the error Roslaunch got a 'No such file or directory' error while attempting to run:

xterm -e gdb --args /home/catkin_ws/devel/lib/ratslam_ros/ratslam_lv /home/catkin_ws/devel/share/ratslam_ros/config/config_stlucia.txt _image_transport:=compressed __name:=RatSLAMShow __log:=/home/.ros/log/858d4730-029a-11e6-af5e-c83a35db09fb/*-1.log Please make sure that all the executables in this command exist and have executable permission. This is often caused by a bad launch-prefix.

Also, I check the log, and I find the same hint.I found someone solve this.But not mine. I use ROS groovy and Ubuntu 12.04LTS. Thanks.

edit retag flag offensive close merge delete

Comments

Do you have xterm and gdb installed? Can you run both manually?

ahendrix gravatar image ahendrix  ( 2016-04-14 21:44:17 -0500 )edit

Many thanks! I have tested gdb and works well manually in other program. In this program, Roslaunch is used to import some configure files.

taiping.z gravatar image taiping.z  ( 2016-04-14 22:37:19 -0500 )edit

Do you have xterm installed? Try running xterm from the command line.

ahendrix gravatar image ahendrix  ( 2016-04-14 22:56:04 -0500 )edit

I am sorry.Our lab had a network fault in these three days.Just recovery.Yes, I also had tried xterm and this command works good.

taiping.z gravatar image taiping.z  ( 2016-04-18 03:15:16 -0500 )edit