Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

while doing ros launch using: roslaunch realsense2_camera rs_camera.launch, I am getting error :RLException: [rs_camera.launch] is neither a launch file in package [realsense2_camera] nor is [realsense2_camera] a launch file name The traceback for the exception was written to the log file. #2704

Closed
drakshayanidesai opened this issue Apr 21, 2023 · 12 comments
Labels

Comments

@drakshayanidesai
Copy link

No description provided.

@drakshayanidesai
Copy link
Author

I am running it on Ubuntu 20.04 and installed ros using following link:http://wiki.ros.org/noetic/Installation/Ubuntu

@MartyG-RealSense
Copy link
Collaborator

Hi @drakshayanidesai Use of this launch file requires the installation of the RealSense SDK (librealsense) and the RealSense ROS1 wrapper (which is compatible with ROS Kinetic, Melodic and Noetic).

https://github.com/IntelRealSense/realsense-ros/tree/ros1-legacy

Have you installed the RealSense ROS1 wrapper, please?

@drakshayanidesai
Copy link
Author

drakshayanidesai commented Apr 21, 2023 via email

@MartyG-RealSense
Copy link
Collaborator

Did you build the ROS1 wrapper from source code?

If you did, were you in the catkin_ws/src/ directory when you performed the git clone instruction git clone https://github.com/IntelRealSense/realsense-ros.git

@drakshayanidesai
Copy link
Author

drakshayanidesai commented Apr 21, 2023 via email

@MartyG-RealSense
Copy link
Collaborator

After performing catkin_make install, did you source the bashrc file?

echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

@drakshayanidesai
Copy link
Author

drakshayanidesai commented Apr 24, 2023 via email

@MartyG-RealSense
Copy link
Collaborator

Sometimes something has gone wrong in the installation process that does not have a traceable cause and the only solution is to completely delete the wrapper and start the installation process again from the beginning. This can be done by deleting the entire /catkin_ws/src catkin workspace folder.


Instead of installing the wrapper from source code, it may be easier to build librealsense and the wrapper together at the same time from packages instead of installing librealsense and the wrapper separately. This can be done with an apt-get installation with the Method 1 instructions.

https://github.com/IntelRealSense/realsense-ros/tree/ros1-legacy#method-1-the-ros-distribution

This method does not install the RealSense Viewer tool though, so would not be suitable if you require the Viewer.

@MartyG-RealSense
Copy link
Collaborator

Hi @drakshayanidesai Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

@drakshayanidesai
Copy link
Author

drakshayanidesai commented Jun 10, 2023 via email

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jun 10, 2023

Are you using rosbag play to play back a bag recorded with rs-record, please? If you are then bags recorded in RealSense SDK programs, such as rs-record, have incompatibities with ROS playback. Likewise, bags recorded in ROS have incompatibilities with RealSense SDK programs. A RealSense team member describes this at IntelRealSense/librealsense#3020 (comment)

You can record RealSense topics in ROS by performing a launch of the RealSense ROS wrapper and then using rosbag record -a to record all currently published ROS topics to a bag. It can then be played back in ROS with rosbag play

http://wiki.ros.org/rosbag/Commandline#rosbag_record

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants