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
0 answers

Creating an sdf file with individual link movements

I have created an sdf file in drake with 3 links and 2 joints, which looks similar to a 2R manipulator. The first link is the base while the second and third links are just long box rods. The 2 joints are revolute and are on the same axis. However,…
Yuki
  • 139
  • 6
0
votes
2 answers

Drake: A plant include Muti-body plant and LeafSystem plant

A part of a plant is easily modeled by MutibodyPlant Class, unfortunately, other parts of a plant look like to be modeled by leaf System. Can Drake do such things? Plant A: muti-links arm --> Using SDF and MutibodyPlant class for modeling Plant B:…
Wc Chang
  • 97
  • 6
0
votes
1 answer

Convert Python Drake to C++ Drake

In the 2020 MIT Underactuated Robotics course, there is a simple feedback cancellation example by Python. Because I just learn C++ drake, I want to take this example as a practice by converting it to C++ version. I get some trouble. (1) Do it make…
Wc Chang
  • 97
  • 6
0
votes
1 answer

Switching from Rigidbody plant to Multibody plant

In the old code, there used to be an option to select between inverse_dynamics_controller and kuka_torque_controller. The two are slightly different where the inputs to the kuka_torque_controller has a "Tau input". The inverse_dynamics_controller is…
Yuki
  • 139
  • 6
0
votes
1 answer

Macos Could NOT identify C/C++ compiler because compilation failed

I am getting this error when trying to compile on drake macos 10.14.6. I have ran the setup script. Bazel: 2.0.0 Drake 0.11.0 lawn-143-215-113-3:drake tdogb$ bazel build //... INFO: Call stack for the definition of repository 'cc' which is a…
0
votes
1 answer

the format of argument of pydrake.forwarddiff.jacobian?

This question is originally presented here https://github.com/RobotLocomotion/drake/issues/12484. the question is about how to use the function. the function…
N.Li
  • 47
  • 7
0
votes
2 answers

Segfault when simulating control loop with second order system

Working from the tutorials I wanted to try PID-controlling a second order linear system. I'm running into segfaults when simulating the closed loop. I've put my code over on Gist. It is mostly identical to the example in the dynamical systems…
pgorczak
  • 31
  • 2
0
votes
1 answer

Drake libGL error when starting visualizer for the first time through Docker

I'm running a fresh install of Ubuntu 18.04. I downgraded my NVIDIA driver to 390.129 (even though the instructions only mention that when installing Drake with CUDA support, which I'm not doing). I've installed Docker and built Drake using the…
user12534019
0
votes
1 answer

How to use InverseKinematics to solve IK on MultibodyPlant?

I was trying to use InverseKinematics to solve the IK for a MultibodyPlant. I was trying to add some position constraints to it and then do the solver. drake::multibody::InverseKinematics kinsol(plant); auto world =…
Yingke Li
  • 3
  • 1
0
votes
1 answer

Segmentation fault (core dumped) by the programming solver

This piece of example code: ''' import numpy as np import pydrake.solvers.mathematicalprogram as mp from pydrake.solvers.ipopt import IpoptSolver def foo(x): return np.sign(x) prog = mp.MathematicalProgram() x =…
N.Li
  • 47
  • 7
0
votes
1 answer

DRAKE_RESOURCE_ROOT is unset in Drake Docker

I get the error: because no resource roots of any kind could be found: DRAKE_RESOURCE_ROOT is unset, a bazel::tools::cpp::runfiles::Runfiles could not be created, and there is no Drake CMake install marker.Aborted (core dumped) The fix is as…
0
votes
1 answer

Serializing Drake objects with Python

Is there any way to serialize and de-serialize objects (such as pydrake.trajectories.PiecewisePolynomial, Expression ...) using pickle or some other way? It does not complain when I serialize it, but when trying to load from file it…
GuyS
  • 85
  • 6
0
votes
1 answer

Drake Rigid_body_tree calculating the jacobian question

I am currently trying to calculate the jacobian of a kuka arm using the "rigid_body_tree.cc" file for the equation: Tau = J^T*F, where Tau is the 7 joint torques of the kuka arm, F is the cartesian forces and torques at the end-effector, and J^T is…
Yuki
  • 139
  • 6
0
votes
3 answers

Calling super().__init__() on subclass of ForceElement causes No constructor defined

I am trying to create a custom ForceElement as follows class FrontWheelForce(ForceElement): def __init__(self, plant): front_wheel = plant.GetBodyByName("front_wheel") front_wheel_node_index = front_wheel.index() …
Rufus
  • 5,111
  • 4
  • 28
  • 45
0
votes
0 answers

Constraint force for closed loop MultibodyPlant

Since RigidBodyTree is on its way out, I'm trying to use MultibodyPlant to study my closed loop multibody robot. I'm testing things out using the drake/examples/simple_four_bar/FourBar.sdf my_plant, scene_graph =…
Rufus
  • 5,111
  • 4
  • 28
  • 45