Questions tagged [drake]

Drake is an open-source toolbox for planning, control, and analysis of nonlinear systems, developed in C++ with bindings available in Python.

Drake is an open-source toolbox for planning, control, and analysis of nonlinear systems, developed in C++ with bindings available in Python.

Resources

692 questions
0
votes
2 answers

FixInputPort attempts to connect wrong port

I have a custom LeafSystem that has input ports and output ports as follows template MyLeafSystem::MyLeafSystem() : systems::LeafSystem(systems::SystemTypeTag{}), …
Rufus
  • 5,111
  • 4
  • 28
  • 45
0
votes
1 answer

scalar-converting copy constructor for class with type dependent constructor arguments

Situation I realized that I've been writing a lot of LeafSystem classes that do very lightweight manipulation the input data and spits it out as output data. They are all state-less and their only difference is the conversion function. An example…
Rufus
  • 5,111
  • 4
  • 28
  • 45
0
votes
1 answer

After Drake Source installation on macOS, how to run a example?

After using "Source installation on macOS" to install drake, "Bazel built//..." and " Bazel test//..." are done. The question is: how I run an example , for examples/acrobot/run_swing_up ? Should I input a command like:…
Wc Chang
  • 97
  • 6
0
votes
1 answer

Drake Visualizer : Unknown file extension in readPolyData when using .dae file

I am trying to add a custom mesh (a torus) .dae file for collision and visual to my .sdf model. When I run my program, drake visualizer gives the following error File "/opt/drake/lib/python2.7/site-packages/director/lcmUtils.py", line 119, in…
Rufus
  • 5,111
  • 4
  • 28
  • 45
0
votes
0 answers

Colab scratchpad NameError: name 'underactuated' is not defined

Drake on Colab. Installation and setup issue. I used the installation and setup code at the Colab scratchpad link in Appendix A.3 Run an example of the Underactuated Robotics book. I believe Colab executes the code on the cloud so I don't need to do…
Bourbaki
  • 1
  • 1
0
votes
1 answer

How to create LinearQuadraticRegulator for Acrobot system using pydrake

I am trying to create LQR for acrobot system from scratch: file_name = "acrobot.sdf" # from drake/multibody/benchmarks/acrobot/acrobot.sdf acrobot = MultibodyPlant() parser =…
asQue
  • 49
  • 5
0
votes
1 answer

How to prevent gravity from accelerating ground plane?

I currently have a ground plane defined in sdf format with the following tags true false In my source file, I specify plant.AddForceElement(); Question: Is the and…
Rufus
  • 5,111
  • 4
  • 28
  • 45
0
votes
1 answer

drake visualizer not displaying anything

OS: Ubuntu 16.04, NVIDIA Driver I followed the drake installation procedure as described in drake website.(I have also installed nvidia driver)After installation, as per the instructions when I run: $ xhost +local:root; nvidia-docker run -i --rm -e…
0
votes
1 answer

How to debug `InputPort::Eval(): required InputPort[0] is not connected`

Background I am trying to simulate a double pendulum mounted on a cart. I used the examples/multibody/cart_pole/cart_pole_simulation.cc as a starting point. I created a new .sdf based on cart_pole.sdf and added for my double pendulum cart. I've…
Rufus
  • 5,111
  • 4
  • 28
  • 45
0
votes
1 answer

Why do I get linker errors when I build a CMake project using Drake, but I can clearly see the symbols?

I have followed the Installation and Quickstart instructions, and am writing a CMake project to use Drake. I'm looking at a unittest that builds in Drake, run it, and it builds, runs, and passes. However, when I try to use some of that functionality…
Eric Cousineau
  • 1,944
  • 14
  • 23
0
votes
2 answers

How to use minDistanceConstraint in pydrake

In this repo, @Gizatt uses the following command to assemble collision constraints for the kuka iiwa: ik.MinDistanceConstraint(tree, collision_tol, list(), set()) Here, what do list() and set() signify. Both seem to be empty here. Let's just say I…
Rickyduh
  • 1
  • 1
0
votes
2 answers

Setter analogues of `MultibodyTree::get_positions_from_array()` and `MultibodyTree::get_velocities_from_array()`

There do not seem to be analogous setters. If I want to fill in the relevant pieces of an array, is there an interface for doing that?
0
votes
0 answers

Straightforward way to compute the generalized inertia matrix for a model instance in MultibodyTree?

Is there a straightforward way to compute the generalized inertia matrix for a model instance in a MultibodyTree? Meaning, suppose that I've created a MultibodyTree/MultibodyPlant for a robot (one model instance) and a ball that it is to interact…
0
votes
1 answer

Velocity level constraints on the inverse kinematic trajectory

I have a question about inverseKinTraj class. It seems to return qsol as well as qdotsol and qddotsol and I would like to add velocity constraint on the time step. For example, I would like to add A(q(t))*qdot(t) = Constant and…
0
votes
1 answer

Allowing for >1 input on simple continuous time system

I am trying to recreate the pendulum example found in source into binary for practice. To do this, I am modifying the simple_continuous_time_system.cc example that comes with the binary installation. However, when I try to add an input (from 0 to 1)…