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

some trobule when i run the run_grasp_generator.py #18

Open
wuhuzi opened this issue Dec 1, 2020 · 5 comments
Open

some trobule when i run the run_grasp_generator.py #18

wuhuzi opened this issue Dec 1, 2020 · 5 comments
Labels
question Further information is requested

Comments

@wuhuzi
Copy link

wuhuzi commented Dec 1, 2020

I am new guy in this research feild.I get some trobule when i run the run_grasp_generator.py.
I wish i could get your help.
Could you upload camera_pose.txt and camera_depth_scale.txt ?
Or tell me how to get these files in my environment. or tell us how to you make these files.
Actually, I don't understand this code in the grasp_generator.py :

Load camera pose and depth scale (from running calibration)

self.cam_pose = np.loadtxt('saved_data/camera_pose.txt', delimiter=' ')
self.cam_depth_scale = np.loadtxt('saved_data/camera_depth_scale.txt', delimiter=' ')
homedir = os.path.join(os.path.expanduser('~'), "grasp-comms")
self.grasp_request = os.path.join(homedir, "grasp_request.npy")
self.grasp_available = os.path.join(homedir, "grasp_available.npy")
self.grasp_pose = os.path.join(homedir, "grasp_pose.npy")

Thank you very much. Thanks for your time !

@skumra
Copy link
Owner

skumra commented Dec 1, 2020

The information in camera_pose.txt and camera_depth_scale.txt depends on your hardware.

camera_pose.txt contains the pose of the camera in the robot frame.

camera_depth_scale.txt contains the depth scale of the camera. If there is no scaling factor required for the camera you are using, you can simply enter 1.0 in the file.

@wuhuzi
Copy link
Author

wuhuzi commented Dec 3, 2020

Thanks for your reply. Nice work, Congratulations

@skumra skumra added the question Further information is requested label Jan 19, 2021
@phideltaee
Copy link

I'm also looking into this file at the moment. Could you please explain what the file format of camera_pose.txt is? Is it a transform matrix?
In regards to the camera scaling, I've been trying to figure out what the gripper width scaling represents. If I run the realsense from further away, the grasp handle is still the same, but does not correspond the the 15cm gripper I'd expect. At what distance was this configured (for training and inferring)? I noticed that the method "post_process_output" from post_process.py has the width image scaled by 150.0, is that to account for normalization? Thank you for your help!

@Wuui-97
Copy link

Wuui-97 commented Nov 26, 2021

@wuhuzi hello, could you upload camera_pose.txt? I have completed the camera calibration through other ways, can i make the file through the obtained transform matrix?

@deavn2236
Copy link

The information in camera_pose.txt and camera_depth_scale.txt depends on your hardware.

camera_pose.txt contains the pose of the camera in the robot frame.

camera_depth_scale.txt contains the depth scale of the camera. If there is no scaling factor required for the camera you are using, you can simply enter 1.0 in the file.

Hello, may I ask how you solved it? Could you please provide specific examples of camera_pose.txt and camera_depth_scale.txt files? I also use other methods for camera calibration, can I directly use them here

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

No branches or pull requests

5 participants