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

Problem with launch file

asked 2022-04-19 07:02:28 -0500

onkheisen gravatar image

Hello, I think I have the typical error for beginners. I want to open a .rviz project that I didn't do. I created robo_arm_ws using:

catkin_make

source ~/robo_arm_ws/devel/setup.bash

cd ~/robo_arm_ws/src

And there I pasted all the project, I don't have the urdf, so I cannot use the ros asistant to create the .rviz again. After launching:

roslaunch final_config demo.launch

RLException: [demo.launch] is neither a launch file in package [final_config] nor is [final_config] a launch file name

On the other hand, I can open the .rviz project that was created in the ros instalation, and it works with:

source ws_moveit/devel/setup.bash

roslaunch panda_moveit_config demo.launch

I also used catkin_create_pkg but it doesn't help. My package.xml and CMakeLists.txt of the folder "final_config" are properly written.

edit retag flag offensive close merge delete

Comments

Take a look at these answers: here and here

0novanta gravatar image 0novanta  ( 2022-04-22 04:46:36 -0500 )edit

Thank you to everybody. I realized that I was trying to run a "kinetic" project using the ROS version "noetic".

onkheisen gravatar image onkheisen  ( 2022-04-27 02:06:03 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2022-04-22 06:52:58 -0500

Joe28965 gravatar image

catkin_make

source ~/robo_arm_ws/devel/setup.bash

cd ~/robo_arm_ws/src

paste the project

Is that the order you've used? If that's the case, there is your problem.

You execute catkin_make from your workspace folder (in this case ~/robo_arm_ws). That command then builds all the packages it can find in the src folder (~/robo_arm_ws/src). It creates a build and devel folder, which hold the executable parts of your packages. Then, when you source the setup file (using source ~/robo_arm_ws/devel/setup.bash) you tell ROS (in the terminal you have executed that command!!) what packages are built in that workspace.

What you did (if the order is correct) is first run catkin_make, building all the packages in your src folder (which, unless you already had other packages in there, was empty, but definitely didn't include final_config). Then source the file telling ROS which packages are located in your workspace (which would not include the final_config package). Then paste the final_config package in the src folder, and try to run it without it ever being built.

So you would need to run catkin_make again (from ~/robo_arm_ws) and source it again (source ~/robo_arm_ws/devel/setup.bash) and then try and run your demo.

edit flag offensive delete link more
0

answered 2022-04-21 17:23:03 -0500

prajwal98 gravatar image

hi, "And there I pasted all the project,...." 1. did you build the workspace after pasting your project? 2. then you need to source the ws again.

edit flag offensive delete link more
0

answered 2022-04-22 02:47:15 -0500

onkheisen gravatar image

I was using one project in Ubuntu 18.04 and my laptop is running in Ubuntu 20.04

edit flag offensive delete link more

Comments

Please do not post comments like this in the "answers" section, because it is not an answer to your oriignal question. You should use the "add a comment" link, either under your description, or under some else's answer.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-04-23 10:45:16 -0500 )edit

Okay, thank you for the suggestion

onkheisen gravatar image onkheisen  ( 2022-04-27 02:04:34 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-04-19 07:02:28 -0500

Seen: 323 times

Last updated: Apr 22 '22