--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/f142695d-1c18-4db7-a293-6cc12b022f54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Tue, Jun 26, 2018 at 12:26 PM, Andy Keeling <dr.a.k...@gmail.com> wrote:
Is there a way to constrain a parameter block to unit magnitude?I have a unit 3d vector whose direction needs to be solved. The cost function has readings of magnitude along the vector for multiple observations and I wish to solve for the direction of the vector, and the magnitude (I have many observations for each magnitude).All I can think is to create an arbitrary vector such as 1,0,0 and feed in my initial guess at the real vector position, then calculate a quaternion rotation to bring my x=1 Vector into line with the initial guess. Then use the quaternion plus another value (magnitude) in the cost function. Then after solving, convert the quaternion back into the actual vector (which will be perpendicular to the quaternion axis of rotation)This seems long winded so I was hoping I could have a vector parameter block (x,y,z) with a constraint that magnitude equals 1?Could I use axis-angle but just treat it differently in my cost function (use the direction for my linear motion, and the magnitude as the distance along the axis rather than the rotation around it). I am not sure Ceres will let me have any magnitude though, since in normal use only 0 to 2pi makes sense.I am new to Ceres so any advice greatly received!
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/3ac4a7f0-5d77-4811-b09b-e56835ea5553%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/e025b4f5-215c-4646-a527-3797bad16fa0%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/3ba17509-7aac-4850-9534-20f4aa076a70%40googlegroups.com.
Andy,Sorry for the delay in replying. I have been traveling. My original reply was confusing and I apologize for that.HomogenousVectorParameterization is not the solution for you. Since it treats one coordinate differently than the others.
On Friday, June 29, 2018 at 10:51:56 AM UTC-3, Sameer Agarwal wrote:Andy,Sorry for the delay in replying. I have been traveling. My original reply was confusing and I apologize for that.HomogenousVectorParameterization is not the solution for you. Since it treats one coordinate differently than the others.Hi, sorry for intruding in the thread, but I'm using this parametrization to optimize a gravity direction vector (with a known magnitude which I assume constant). I'm currentlyassuming that this parametrization restricts the vector inside the unit sphere. Is this correct? I'm not sure what you meant by your last sentence.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/c860cf14-d2d8-4c1e-9a13-8c5cd1595a82%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/ea57b319-d900-4d73-a4af-0c5dc010179b%40googlegroups.com.