Skip to content

Commit

Permalink
Expose getRandomConfiguration to Python
Browse files Browse the repository at this point in the history
  • Loading branch information
wxmerkt committed Aug 1, 2016
1 parent 46f60f7 commit 67b404b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drake/bindings/swig/rbtree.i
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,10 @@
Eigen::Matrix<double, SPACE_DIMENSION, Eigen::Dynamic> centerOfMassJacobian(KinematicsCache<double>& cache, const std::set<int>& robotnum = default_robot_num_set, bool in_terms_of_qdot = false) const {
return $self->centerOfMassJacobian(cache, robotnum, in_terms_of_qdot);
}

Eigen::VectorXd getRandomConfiguration() const {
std::default_random_engine generator;
return $self->getRandomConfiguration(generator);
}
}

0 comments on commit 67b404b

Please sign in to comment.