Closed 708yamaguchi closed 2 years ago
By the way, how do you use rpy information of polygon for optimization?
It looks like there is a constraint where the rpy of the robot end-coords rpy matches the rpy of the polygon.
https://github.com/HiroIshida/yamaopt/blob/3da81e128882a91781c74807b31bbeef3c9b9565/yamaopt/solver.py#L87-L96
~~However, in the previous image, the target green polygon's axis and robot end-coords axis are not aligned. Is it normal thing?~~ (EDIT: Sorry, my misunderstanding)
Also, ideally, the equality constraint on rpy should not apply to the robot wrist roll axis(x-axis), in my thoughts. In other words, the x-axis of the robot's end-coords is perpendicular to the polygon, but rotation around the x-axis is allowed. I will try solving this issue. (-> summarize my issues to https://github.com/HiroIshida/yamaopt/issues/1)
Please correct me if I am wrong.
Sorry for my poor knowledge on optimization...
Sorry, I did not understand skrobot uses not rpy but ypr to create Coordinates. I fixed it.
This PR uses https://github.com/HiroIshida/yamaopt/pull/19 so that @HiroIshida wouldn't have to resolve the conflict. Please merge after https://github.com/HiroIshida/yamaopt/pull/19
In this PR, I show axis of polygons for debugging.
Also, I removed
is_convex
check frompolygon_to_desired_rpy
to show the axis of concave polygons. I think the check is needed only forpolygon_to_trans_constraint
.