Changes naming of add_link_objectives and add_joint_objectives and has them inherit from NonlinearFactorGraph so that they don't need to mutate a passed-in graph. Syntax:
An alternative would be to have a create() function that returns the factor graph, and JointObjectives would no longer inherit from NonlinearFactorGraph. So for example, the calling syntax would then look like
Addresses #183
Changes naming of
add_link_objectives
andadd_joint_objectives
and has them inherit fromNonlinearFactorGraph
so that they don't need to mutate a passed-in graph. Syntax:An alternative would be to have a
create()
function that returns the factor graph, andJointObjectives
would no longer inherit fromNonlinearFactorGraph
. So for example, the calling syntax would then look likeI opted for the former since I believe it to be cleaner.
This PR also changes the names of
add_joint_rest_objectives
andAddPointGoalFactors
similarly, and adds them to the python wrapper.