Closed HZhang1003 closed 1 year ago
You can use the getObjective()
method of SnapOpt to get the snap value. For instance in example1/src/example1_node.cpp
after line 138 (snapOpt.getTraj(minSnapTraj);
), you can call snapOpt.getObjective()
to get the snap value of minSnapTraj
Thank you very much. I didn't notice this function before. Now I found it and my problem has been solved.
Very nice work! Thank you for your contributions to the open source. The trajectory with minimum snap can be obtained using the published example, but there does not appear to be a function to obtain the snap value. How can I get the minimum snap value? Looking forward to your reply and thanks a lot.