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

Marker motion sim #8

Open
DavidYaonanZhu opened this issue Nov 17, 2022 · 6 comments
Open

Marker motion sim #8

DavidYaonanZhu opened this issue Nov 17, 2022 · 6 comments

Comments

@DavidYaonanZhu
Copy link

Hi,

I tried to run
python simMarkMotionField.py -obj square -dx 0.3 -dy 0.4 -dz 0.5

however, the output image does not contain any markers.

Am I missing something?

@DavidYaonanZhu
Copy link
Author

square_shadow

@gitouni
Copy link

gitouni commented Oct 15, 2023

square_compose
I met the same problem, but I think the resultant image should be above. The positions of markers on the membrane are not defined in the sensorParams.py, so that there might be no markers shown in the tactile images.

@Yujia-Zhang0913
Copy link

square_compose I met the same problem, but I think the resultant image should be above. The positions of markers on the membrane are not defined in the sensorParams.py, so that there might be no markers shown in the tactile images.

Hi, so do you figure out what to do? I met this problem too. Does it mean that I should add something in the sensorParam?

@gitouni
Copy link

gitouni commented Oct 17, 2023

I think you can draw marker motions using the field of displacement field.
debug_displacement
I recommend you to refer to my forked Taxim for details. A demo pair of tactile images with/without markers are shown below.

without marker (raw) with marker
0001 0001

@Yujia-Zhang0913
Copy link

I think you can draw marker motions using the field of displacement field. debug_displacement I recommend you to refer to my forked Taxim for details. A demo pair of tactile images with/without markers are shown below.
without marker (raw) with marker
0001 0001

Really thanks! And how can I get the picture with mark above? I ran the msimCirclewithmarker.py and msimCircle.py. And I found that there is no compose_sparse_insert in msimCirclewithmarker.py. Is it the one named compose_sparse and if I change to it, it will report the error that contact_mask and sparse_mask are not matched in dimension((480,640) and (900,900)).
And do you know the meaning of the picture below? I still do not understand this. Thanks again.
图片

@gitouni
Copy link

gitouni commented Oct 18, 2023

Sorry for that. I forgot to update the compose directory. In fact, I modify the sparse_compact function to make it compatible with tactile images of the size 480x640 . Now it should work.

The meaning of the three pictures above, as explained by their paper, are the displacement of x, y, z respectively (unit: pixel).

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