11 using PoseVec = StdVectorEigenAligned<Vector3s>;
15 : contact_states_(contact_states), contact_poses_(contact_poses) {
16 if (contact_states.size() != contact_poses.size()) {
18 fmt::format(
"contact_states and contact_poses should have same size, "
19 "currently ({} and {}).",
20 contact_states.size(), contact_poses.size()));
22 size_ = contact_states_.size();
25 void addContact(
const bool state,
const Vector3s &pose) {
26 contact_states_.push_back(state);
27 contact_poses_.push_back(pose);
35 contact_states_.erase(contact_states_.begin() +
long(i));
36 contact_poses_.erase(contact_poses_.begin() +
long(i));
48 return contact_poses_[i];
51 std::size_t
getSize()
const {
return size_; }
54 std::vector<bool> contact_states_;
#define ALIGATOR_RUNTIME_ERROR(msg)
#define ALIGATOR_DOMAIN_ERROR(msg)