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

USB camera #10

Closed
Minion40 opened this issue Apr 21, 2021 · 28 comments
Closed

USB camera #10

Minion40 opened this issue Apr 21, 2021 · 28 comments

Comments

@Minion40
Copy link

Hello,

Can you help me to correct this error,
I use a USB camera as input.
roslaunch yolov4_trt_ros video_source.launch input:=v4l2://3
RLException: [video_source.launch] is neither a launch file in package [yolov4_trt_ros] nor is [yolov4_trt_ros] a launch file name
The traceback for the exception was written to the log file

Regards
Minion 40

@indra4837
Copy link
Owner

Hi,

Did you source your workspace,

$ cd ~/catkin_ws
$ source devel/setup.bash

@Minion40
Copy link
Author

cd /catkin_ws
procomm@procomm-desktop:
/catkin_ws$ source devel/setup.bash
procomm@procomm-desktop:/catkin_ws$ cd src/yolov4_trt_ros/launch/
procomm@procomm-desktop:
/catkin_ws/src/yolov4_trt_ros/launch$ roslaunch yolov4_trt_ros video_source.launch input:=v4l2://3
RLException: [video_source.launch] is neither a launch file in package [yolov4_trt_ros] nor is [yolov4_trt_ros] a launch file name
The traceback for the exception was written to the log file

The same error

@Minion40
Copy link
Author

Minion40 commented Apr 21, 2021 via email

@indra4837
Copy link
Owner

Can i check if you are able to run the other launch files (yolov4_trt.launch)? It could be that the video_source node is not built properly when you ran catkin_make. Maybe you can check that also

@Minion40
Copy link
Author

Minion40 commented Apr 22, 2021 via email

@indra4837
Copy link
Owner

indra4837 commented Apr 22, 2021

i think there is something wrong with your catkin_ws as it does not seem like its building any of the nodes required. Can i check if you have installed all the dependencies required? Also, may I know your environment?

Hardware: Jetson Nano
Jetpack version: 4.3
ROS version: Melodic

You can also try creating another workspace and building the ROS package again there.

@Minion40
Copy link
Author

Minion40 commented Apr 22, 2021 via email

@indra4837
Copy link
Owner

Hi, could you try shifting the entire yolov4_trt_ros into another workspace and follow the steps again to see if its works,

# create another workspace
$ mkdir -p yolo_ws/src

# copy the existing package to the new workspace
$ cp -r ~/catkin-ws/src/yolov4_trt_ros/ ~/yolo_ws/src

# build the package using catkin build instead (install the catkin build system first)
$ sudo apt-get install ros-melodic-catkin python-catkin-tools 
$ cd ~/yolo_ws && catkin build
$ source ~/yolo_ws/devel/setup.bash

Follow the rest of the instructions in the README file and run the launch files again. Let me know if that works!

@Minion40
Copy link
Author

Minion40 commented Apr 22, 2021 via email

@indra4837
Copy link
Owner

are you able to find the package using roscd?

$ roscd yolov4_trt_ros

im afraid your catkin_make is not properly building the package. could you post the log for the catkin_make or catkin build?

@Minion40
Copy link
Author

Minion40 commented Apr 22, 2021 via email

@indra4837
Copy link
Owner

im not able to see the attachment. this error is related to your catkin build system as it is not building the package properly. You can try reinstalling ROS melodic again or solve the catkin build system.

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@indra4837
Copy link
Owner

Hi, could you paste the log here or upload it to a Google Drive and send the link here? I cant see the attachment

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@indra4837
Copy link
Owner

Hey, im guessing you are responding to the github email notifications and not on the github issues tab directly. This is probably why Im not able to access any of the links/attachments you are sending.

Could you respond directly on Github? Thank you.

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@Minion40
Copy link
Author

Minion40 commented Apr 23, 2021 via email

@indra4837
Copy link
Owner

it looks like your ros installation is okay and you are not missing any important steps. Can i confirm that running other nodes (such as the ones in ROS tutorial page) works for you? I suspect this might be a ROS issue and not this package.

@indra4837
Copy link
Owner

Closing this issue, feel free to reopen it if you have any more problems!

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

No branches or pull requests

2 participants