mit-racecar / racecar_gazebo

A gazebo-based simulator of the MIT Racecar.
167 stars 98 forks source link

launch error - "[racecar.launch] is neither a launch file in package [racecar_gazebo] nor is [racecar_gazebo] a launch file name" #9

Open Shreeyak opened 6 years ago

Shreeyak commented 6 years ago

I copied the contents of this repo into an "src" folder and then ran a catkin_make at the root of the workspace. I've added the terminal outputs below. When I run the roslaunch commands, it gives me an error: [racecar.launch] is neither a launch file in package [racecar_gazebo] nor is [racecar_gazebo] a launch file name

Kindly provide instructions to get this running?

Here's the terminal output:

shrek@shrek-pc-ubuntu:~/racecar/racecar-simulator/catkin_ws$ catkin_make
Base path: /home/shrek/racecar/racecar-simulator/catkin_ws
Source space: /home/shrek/racecar/racecar-simulator/catkin_ws/src
Build space: /home/shrek/racecar/racecar-simulator/catkin_ws/build
Devel space: /home/shrek/racecar/racecar-simulator/catkin_ws/devel
Install space: /home/shrek/racecar/racecar-simulator/catkin_ws/install
Creating symlink "/home/shrek/racecar/racecar-simulator/catkin_ws/src/CMakeLists.txt" pointing to "/opt/ros/kinetic/share/catkin/cmake/toplevel.cmake"
####
#### Running command: "cmake /home/shrek/racecar/racecar-simulator/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/shrek/racecar/racecar-simulator/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/shrek/racecar/racecar-simulator/catkin_ws/install -G Unix Makefiles" in "/home/shrek/racecar/racecar-simulator/catkin_ws/build"
####
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/shrek/racecar/racecar-simulator/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/kinetic
-- This workspace overlays: /opt/ros/kinetic
-- Found PythonInterp: /usr/bin/python (found version "2.7.12") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/shrek/racecar/racecar-simulator/catkin_ws/build/test_results
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/local/bin/nosetests-2.7
-- catkin 0.7.6
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~  traversing 3 packages in topological order:
-- ~~  - racecar_control
-- ~~  - racecar_description
-- ~~  - racecar_gazebo
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'racecar_control'
-- ==> add_subdirectory(racecar_control)
-- +++ processing catkin package: 'racecar_description'
-- ==> add_subdirectory(racecar_description)
-- +++ processing catkin package: 'racecar_gazebo'
-- ==> add_subdirectory(racecar_gazebo)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shrek/racecar/racecar-simulator/catkin_ws/build
####
#### Running command: "make -j8 -l8" in "/home/shrek/racecar/racecar-simulator/catkin_ws/build"
####
shrek@shrek-pc-ubuntu:~/racecar/racecar-simulator/catkin_ws$ roslaunch racecar_gazebo racecar.launch
[racecar.launch] is neither a launch file in package [racecar_gazebo] nor is [racecar_gazebo] a launch file name
The traceback for the exception was written to the log file
shrek@shrek-pc-ubuntu:~/racecar/racecar-simulator/catkin_ws$ roslaunch racecar_gazebo racecar_tunnel.launch
[racecar_tunnel.launch] is neither a launch file in package [racecar_gazebo] nor is [racecar_gazebo] a launch file name
The traceback for the exception was written to the log file
shrek@shrek-pc-ubuntu:~/racecar/racecar-simulator/catkin_ws$ 
slivingston commented 6 years ago

@Shreeyak did you try to source the catkin workspace? E.g., after building, try

source devel/setup.bash
NKIB commented 2 years ago

@Slivingston It just return -bash: devel/setup.bash: No such file or directory when i try to source it