Commit cb0f1ffd authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Move operator<< for Joint and Device into namespace hpp::model

parent 23cf9c96
......@@ -358,9 +358,9 @@ namespace hpp {
ExtraConfigSpace extraConfigSpace_;
DeviceWkPtr_t weakPtr_;
}; // class Device
std::ostream& operator<< (std::ostream& os, const hpp::model::Device& device);
} // namespace model
} // namespace hpp
std::ostream& operator<< (std::ostream& os, const hpp::model::Device& device);
#endif // HPP_MODEL_DEVICE_HH
......@@ -530,11 +530,11 @@ namespace hpp {
mutable fcl::Vec3f com_;
}; // class JointTranslation
std::ostream& operator<< (std::ostream& os, const hpp::model::Joint& joint);
} // namespace model
} // namespace hpp
namespace fcl {
std::ostream& operator<< (std::ostream& os , const fcl::Transform3f& trans);
}
std::ostream& operator<< (std::ostream& os, const hpp::model::Joint& joint);
#endif // HPP_MODEL_JOINT_HH
......@@ -570,10 +570,10 @@ namespace hpp {
return os;
}
std::ostream& operator<<(std::ostream& os, const hpp::model::Device& device)
{
return device.print (os);
}
} // namespace model
} // namespace hpp
std::ostream& operator<<(std::ostream& os, const hpp::model::Device& device)
{
return device.print (os);
}
......@@ -665,6 +665,11 @@ namespace hpp {
template class JointTranslation <1>;
template class JointTranslation <2>;
template class JointTranslation <3>;
std::ostream& operator<< (std::ostream& os, const hpp::model::Joint& joint)
{
return joint.display (os);
}
} // namespace model
} // namespace hpp
......@@ -682,9 +687,3 @@ namespace fcl {
return os;
}
}
std::ostream& operator<< (std::ostream& os, const hpp::model::Joint& joint)
{
return joint.display (os);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment