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

Functions Understanding #30

Open
OneManArmy93 opened this issue May 22, 2019 · 3 comments
Open

Functions Understanding #30

OneManArmy93 opened this issue May 22, 2019 · 3 comments

Comments

@OneManArmy93
Copy link

Hello,
Im trying to re implement the volxelization process as I need it later on. But I'm having hard time understanding some function as I'm new to Python.
I hope someone could be kind enough to walk me through them and explain what do they do exactly. These are the function:


def filter_camera_angle(places):
def create_publish_obj(obj, places, rotates, size):
def publish_pc2(pc, obj):
center_to_sphere(places, size, resolution=0.50, min_value=np.array([0., -50., -4.5]), scale=4, x=(0, 90), y=(-50, 50), z=(-4.5, 5.5)):
def sphere_to_center(p_sphere, resolution=0.5, scale=4, min_value=np.array([0., -50., -4.5])):
def voxel_to_corner(corner_vox, resolution, center):#TODO
def corner_to_train(corners, sphere_center, resolution=0.50, x=(0, 90), y=(-50, 50), z=(-4.5, 5.5), scale=4, min_value=np.array([0., -50., -4.5])):
def corner_to_voxel(voxel_shape, corners, sphere_center, scale=4):


Much appreciated!

@ansabsheikh9
Copy link

1: tries to filter out the pointcloud which are outside the camera field of view. As labels for the vehicles are available in that area only.
2: It is used to create ROS (Robot Operating System) message. Here it is used to visualize the pointcloud. but you can skip this step to avoid complexity and use some simple visualizer.
Other functions are used for target representaion.
First the kitti targets are converted to a format which can be used by neural netwrok for training.
Once the architecture gives an output the output from the network is then converted back to realworld coordinate system. The target is binary, if there is a vehicle then the voxel at the center position of vehicle will be 1 other wise all other voxels will be zero. There is one visual explaination of the target representation.
image

@OneManArmy93
Copy link
Author

@ansabsheikh9 thank you for the insight.
howerver, in the function def voxel_to_corner(corner_vox, resolution, center) I couldnt find the parameter corner_vox or what it represents, also i could find the function itself to be used.
Any idea about that?
Thank you

@OneManArmy93
Copy link
Author

@ansabsheikh9 Hi are you there? I'm in a bit of jam here and i need your help. Thank you for responding :)

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