Skip to content

Commit

Permalink
m1 update
Browse files Browse the repository at this point in the history
  • Loading branch information
jhwangbo committed Sep 5, 2022
1 parent 67ed47b commit 2ff1297
Show file tree
Hide file tree
Showing 30 changed files with 1,009 additions and 687 deletions.
11 changes: 11 additions & 0 deletions raisim/m1/include/raisim/RaiSimTinyXmlWriter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@ class RaiSimTinyXmlWriterElement {
return *this;
}

template<typename T>
RaiSimTinyXmlWriterElement& setVectorAttribute(const std::string &name, T attribute, size_t size) {
std::string list;
for(int i=0; i<size-1; i++)
list += std::to_string(attribute[i]) + ", ";

list += std::to_string(attribute[size-1]);
ptr_->SetAttribute(name, list);
return *this;
}

void link() {
for(auto& element : elements_) {
ptr_->LinkEndChild(element.ptr_);
Expand Down
Loading

0 comments on commit 2ff1297

Please sign in to comment.