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

Calibration issue #53

Open
reddittoob opened this issue Jan 9, 2023 · 1 comment
Open

Calibration issue #53

reddittoob opened this issue Jan 9, 2023 · 1 comment

Comments

@reddittoob
Copy link

reddittoob commented Jan 9, 2023

Hello, I tried to run your excellent works.

I ran
rosrun lidar_camera_calibration calibrate_camera_lidar.py --calibrate and pick points for extrinsic parameter.

However, after picked points, I cannot obtain data like Euler angles, Rotation Matrix, Translation Offsets and the GUIs show again and I have to pick up points.

And, I got an error like below.

rmse = np.sqrt(np.mean(error[:, 0] ** 2 + error[:, 1] ** 2))
*** IndexError: index 1 is out of bounds for axis 1 with size 1

I don't know what I did wrong.

Can you help me?

Thank you.

@reddittoob reddittoob reopened this Jan 9, 2023
@reddittoob reddittoob changed the title launch file error Calibration issue Jan 9, 2023
@ppwwwww
Copy link

ppwwwww commented Jun 30, 2023

<340 line & 358 line >

error = np.reshape(error, (-1, 2)) # <-- add !!!!!!!!!
rmse = np.sqrt(np.mean(error[:, 0] ** 2 + error[:, 1] ** 2))

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