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

braccio_xy_bb_target.py error #3

Open
Aki92-Xavier opened this issue Sep 3, 2021 · 11 comments
Open

braccio_xy_bb_target.py error #3

Aki92-Xavier opened this issue Sep 3, 2021 · 11 comments

Comments

@Aki92-Xavier
Copy link

Hi, how do i fix the error

Traceback (most recent call last):
File "/home/manilab/braccio_opencv_ws/src/su_chef/scripts/braccio_xy_bb_target.py", line 376, in
main()
File "/home/manilab/braccio_opencv_ws/src/su_chef/scripts/braccio_xy_bb_target.py", line 350, in main
bb_targetter = BraccioXYBBTargetInterface()
File "/home/manilab/braccio_opencv_ws/src/su_chef/scripts/braccio_xy_bb_target.py", line 45, in init
self.class_name_path = myargv[1]
IndexError: list index out of range

@stedn
Copy link
Member

stedn commented Sep 3, 2021 via email

@Aki92-Xavier
Copy link
Author

Hi, I am using jetson nano and the command that I used to run is python2.7.
How do I pass an argument on the command line.

@mohd-khalid
Copy link

I had the exact same error trying to run the script, using the same command on the README.
Any updates in this regard?

@stedn
Copy link
Member

stedn commented Feb 14, 2023 via email

@mohd-khalid
Copy link

mohd-khalid commented Feb 14, 2023

I had roslaunch su_chef demo.launch start_detect:=true running in another command line window.

Screenshot from 2023-02-14 03-42-52

@stedn
Copy link
Member

stedn commented Feb 14, 2023

Could you try showing what is in that directory with an ls

I think you may be right that I forgot to add a command line param to the README, perhaps models/yolo.names. It has been a while since I've run this and I don't have it set up right now so thanks for bearing with me as I try to debug.

@mohd-khalid
Copy link

Screenshot from 2023-02-14 04-42-14

@stedn
Copy link
Member

stedn commented Feb 14, 2023 via email

@mohd-khalid
Copy link

I'm a beginner actually so excuse my ignorance. How to pass the path as a param, and in which command, the roslaunch one, or the script rosrun command?

@stedn
Copy link
Member

stedn commented Feb 14, 2023

Ah right, I mean change the command to rosrun su_chef braccio_xy_bb_target.py <absolute path to yolov3.names>

@mohd-khalid
Copy link

That worked but the another issue came up. The 'image' window for calibration is blank!

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

3 participants