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

roslaunch: Resource not found: braccio_controller

asked 2021-09-10 16:48:37 -0500

El_French gravatar image

updated 2021-09-11 09:47:04 -0500

Thanks for answering my previous question https://answers.ros.org/question/3862... I don't have it anymore, but I have this one now ...

pi@raspberrypi:~/catkin_ws $ roslaunch launch/arm_launch.launch
... logging to /home/pi/.ros/log/3665a23c-1253-11ec-bf58-b827eb6b0003/roslaunch-raspberrypi-8569.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Resource not found: braccio_controller
ROS path [0]=/opt/ros/noetic/share/ros
ROS path [1]=/opt/ros/noetic/share
The traceback for the exception was written to the log file

Do you know what's the new problem ? I also changed my launched file according to the link sent in my previous question.

<launch>
  <include file="$(find braccio_controller)/home/pi/catkin_ws/src/braccio_controller/braccio_controller.launch"/>
  <include file="$(find detection)//home/pi/catkin_ws/src/detection/detection_launch.launch"/>
</launch>
edit retag flag offensive close merge delete

Comments

Can you print the exception log to get better idea of what went wrong

osilva gravatar image osilva  ( 2021-09-10 18:14:10 -0500 )edit

first time doing that, which log should I show you and how ?

El_French gravatar image El_French  ( 2021-09-11 03:46:56 -0500 )edit

Your change is unlikely to be the correct one. Please edit your question and show us the output of these commands:

rospack find braccio_controller
rospack find detection
Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-11 09:27:54 -0500 )edit

sorry, I'm new around here, what do you mean by editing my question ? for the command you asked, this the result :

pi@raspberrypi:~/catkin_ws $ rospack find braccio_controller
/home/pi/catkin_ws/src/braccio_controller
pi@raspberrypi:~/catkin_ws $ rospack find detection
/home/pi/catkin_ws/src/detection
El_French gravatar image El_French  ( 2021-09-11 09:37:50 -0500 )edit

You can modify the text of your question using the button labeled "edit" toward the right side at the bottom of your description.

The output of rospack find looks good.

Is there a file called braccio_controller.launch in your /home/pi/catkin_ws/src/braccio_controller directory?

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-11 09:45:08 -0500 )edit

yes I have the right .launch file in my directory

El_French gravatar image El_French  ( 2021-09-11 09:47:58 -0500 )edit

In this case, the change suggested by @seanb is the correct thing to to. What is your exact roslaunch command, and what is the exact error message?

You must execute source ~/catkin_ws/devel/setup.bash in the window before you run the roslaunch command. I think you did that for the rospack, but did not do that originally.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-11 09:58:04 -0500 )edit

That's what I got now :

pi@raspberrypi:~ $ source ~/catkin_ws/devel/setup.bash
pi@raspberrypi:~ $ cd catkin_ws
pi@raspberrypi:~/catkin_ws $ roslaunch launch/arm_launch.launch
... logging to /home/pi/.ros/log/b415c73e-12da-11ec-a6e8-b827eb6b0003/roslaunch-raspberrypi-6065.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

RLException: while processing /home/pi/catkin_ws/src/braccio_controller/home/pi/catkin_ws/src/braccio_controller/launch/braccio_controller.launch:
Invalid roslaunch XML syntax: [Errno 2] No such file or directory: '/home/pi/catkin_ws/src/braccio_controller/home/pi/catkin_ws/src/braccio_controller/launch/braccio_controller.launch'
The traceback for the exception was written to the log file
El_French gravatar image El_French  ( 2021-09-11 10:24:11 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-09-10 17:48:43 -0500

seanb gravatar image

I think maybe your launch file should be

<launch>
   <include file="$(find braccio_controller)/braccio_controller.launch"/>
   <include file="$(find detection)/detection_launch.launch/>
</launch>

If you have no luck with that, try running catkin build followed by source devel/setup.bash from you catkin_ws directory. Then try running your launch file again.

edit flag offensive delete link more

Comments

With the modification you told me to do nothing changed. When doing catkin build the command is not found ...

El_French gravatar image El_French  ( 2021-09-11 04:07:25 -0500 )edit

@El_French You must execute source ~/catkin_ws/devel/setup.bash in the window before you run the roslaunch command.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-11 10:04:19 -0500 )edit

You can add it to ~/.bashrc by doing you won't have to do source every time execute:

$ echo 'source ~/catkin_ws/devel/setup.bash'>>~/.bashrc

$ source ~/.bashrc

Refer to: http://wiki.ros.org/catkin/Tutorials/...

osilva gravatar image osilva  ( 2021-09-11 11:08:10 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-09-10 16:48:37 -0500

Seen: 2,525 times

Last updated: Sep 11 '21