7 #ifndef _PLANAR_JOINT_H
8 #define _PLANAR_JOINT_H
10 #include <Ravelin/PlanarJointd.h>
11 #include <Moby/Joint.h>
21 PlanarJoint(boost::weak_ptr<RigidBody> inboard, boost::weak_ptr<RigidBody> outboard);
22 virtual unsigned num_dof()
const {
return PlanarJointd::num_dof(); }
23 virtual bool is_singular_config()
const {
return PlanarJointd::is_singular_config(); }
24 virtual void evaluate_constraints(
double C[]) { PlanarJointd::evaluate_constraints(C); }
25 virtual const std::vector<Ravelin::SVelocityd>& get_spatial_axes_dot() {
return PlanarJointd::get_spatial_axes_dot(); }
26 virtual void determine_q(Ravelin::VectorNd& q) { PlanarJointd::determine_q(q); }
27 virtual boost::shared_ptr<const Ravelin::Pose3d> get_induced_pose() {
return PlanarJointd::get_induced_pose(); }
28 virtual void load_from_xml(boost::shared_ptr<const XMLTree> node, std::map<std::string, BasePtr>& id_map);
29 virtual void save_to_xml(
XMLTreePtr node, std::list<boost::shared_ptr<const Base> >& shared_objects)
const;
virtual void save_to_xml(XMLTreePtr node, std::list< boost::shared_ptr< const Base > > &shared_objects) const
Implements Base::save_to_xml()
Definition: PlanarJoint.cpp:60
boost::shared_ptr< XMLTree > XMLTreePtr
XML tree smart pointer.
Definition: Types.h:104
virtual void load_from_xml(boost::shared_ptr< const XMLTree > node, std::map< std::string, BasePtr > &id_map)
Implements Base::load_from_xml()
Definition: PlanarJoint.cpp:41
PlanarJoint()
Initializes the joint.
Definition: PlanarJoint.cpp:26
Defines a joint used in articulated rigid body dynamics simulation.
Definition: Joint.h:30
Defines an actuated spherical joint.
Definition: PlanarJoint.h:16