guzhaoyuan / drake-tutorial Goto Github PK
View Code? Open in Web Editor NEWLearning Drake from the perspective of a robotics beginner.
Home Page: https://drake.guzhaoyuan.com/
Learning Drake from the perspective of a robotics beginner.
Home Page: https://drake.guzhaoyuan.com/
When I learn the Drake tutorial,I get some trouble.
In the inclined_plane_with_body of Drake github,there is the code below.
bazel build //tools:drake_visualizer //examples/multibody/inclined_plane_with_body
When I run it, the terminal show me:
So,I can't find the gen folder.What should I do? Thank you!
I run this
bazel
run //examples/hello:hello_exe`
I have got this:
dmitriy@dmitriy:~/git/drake$ bazel run //examples/hello:hello_exe
ERROR: /home/dmitriy/git/drake/examples/hello/BUILD.bazel:7:16: no such target '//common:text_logging_gflags': target 'text_logging_gflags' not declared in package 'common' (did you mean 'add_text_logging_gflags'?) defined by /home/dmitriy/git/drake/common/BUILD.bazel and referenced by '//examples/hello:hello_exe'
ERROR: Analysis of target '//examples/hello:hello_exe' failed; build aborted: Analysis failed
INFO: Elapsed time: 2.463s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (4 packages loaded, 1 ta
FAILED: Build did NOT complete successfully (4 packages loaded, 1 ta
rget configured)
https://drake.guzhaoyuan.com/introduction/drake-concept, Section Diagram, "is be nested"
In the file hello.cc of the Hello, Drake! tutorial, the line
#include "drake/common/text_logging_gflags.h"
should instead be
#include "drake/common/text_logging.h"
In the file BUILD.bazel the line
deps = [ "//common:text_logging_gflags", "@gflags", ],
should instead be
deps = [ "//common:add_text_logging_gflags", "@gflags", ],
(as of May 31 2024)
There is error same as in last issue. When I try compile project by typing:
bazel run //examples/double_pendulum_pid:run_double_pendulum_passive_exe
I have got:
bazel run //examples/double_pendulum_pid:run_double_pendulum_passive_exe
ERROR: /home/dmitriy/git/drake/examples/double_pendulum_pid/BUILD.bazel:29:16: no such target '//common:text_logging_gflags': target 'text_logging_gflags' not declared in package 'common' (did you mean 'add_text_logging_gflags'?) defined by /home/dmitriy/git/drake/common/BUILD.bazel and referenced by '//examples/double_pendulum_pid:run_double_pendulum_passive_exe'
ERROR: Analysis of target '//examples/double_pendulum_pid:run_double_pendulum_passive_exe' failed; build aborted: Analysis failed
INFO: Elapsed time: 1.116s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded, 0 ta
FAILED: Build did NOT complete successfully (1 packages loaded, 0 ta
rgets configured)
[2] Done bazel-bin/tools/drake_visualizer
Hello. I have been following your tutorial on page https://drake.guzhaoyuan.com/thing-to-do-in-drake/hello-drake and encountered the error below.
Upon running command "bazel run //examples/hello:hello_exe", the error occurred:
ERROR: /Users/wong_imacpro/Programs/drake/examples/hello/BUILD.bazel:6:16: no such target '//common:text_logging_gflags': target 'text_logging_gflags' not declared in package 'common' (did you mean 'add_text_logging_gflags'?) defined by /Users/wong_imacpro/Programs/drake/common/BUILD.bazel and referenced by '//examples/hello:hello_exe'
ERROR: Analysis of target '//examples/hello:hello_exe' failed; build aborted: Analysis failed
INFO: Elapsed time: 0.234s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets conf
FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets conf
igured)
I built drake from source obtained at [email protected]:RobotLocomotion/drake.git.
My system.. MacOS Big Sur V11.2.3 ... I searched but couldn't find anything relating to this issue. Thanks
I perform one by one items, but on the Then in another terminal we open up a "planner and runner".
nothing happen.
When I Run the trajectory publisher I have got this:
dmitriy@dmitriy:~/git/drake$ bazel run //examples/viz:trajectory_publisher
ERROR: /home/dmitriy/git/drake/examples/viz/BUILD.bazel:1:1: name 'drake_cc_binary' is not defined
ERROR: Skipping '//examples/viz:trajectory_publisher': no such target '//examples/viz:trajectory_publisher': target 'trajectory_publisher' not declared in package 'examples/viz' defined by /home/dmitriy/git/drake/examples/viz/BUILD.bazel
WARNING: Target pattern parsing failed.
ERROR: no such target '//examples/viz:trajectory_publisher': target 'trajectory_publisher' not declared in package 'examples/viz' defined by /home/dmitriy/git/drake/examples/viz/BUILD.bazel
INFO: Elapsed time: 3.689s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)
FAILED: Build did NOT complete successfully (1 packages loaded)
I'm the Drake rookie.Now,I wanna create a environment like that a arm robot grasp the box.I can use URDF to create the arm robot to Drake visualizer.What should I do to create the box in the Drake visualizer? And,I also wanna know how to set the character of the box,like its position,size,weight and so on.Thank you very much!
Looking at the code here, you do
dp->AddJointActuator("a1", dp->GetJointByName("upper_joint"));
dp->AddJointActuator("a1", dp->GetJointByName("lower_joint"));
However every double pendulum I've seen implemented before has one actuator on the lower joint. If the lower joint and upper joint can be independently controlled, it will make the problem a lot easier to solve IIRC
Questions:
TLDR I guess I'm interested in how to leave joints that are completely passive in Drake and wondering how to set that up. Or do I have to set up a Joint Actuator for each joint
In Visualize data in LCM, I can see a window that contains trajectories, how to turn this option on?
I wish you can supplement more tutorials and I think it's difficult to learn drake.
thks!
https://drake.guzhaoyuan.com/q-and-a/faq
If you are a robotics control guy person, drake is for you. Drake has a dedicated team working on multibody dynamics, planning and control. Drake has a whole bunch of tools that help ease the development of robot control.
bazel build //
didn't work for me. Even
bazel build //manipulation/util:geometry_inspector
was causing my machine to crash. Ultimately I found this post and tried
bazel build --jobs=2 //manipulation/util:geometry_inspector
which worked. If I am not the only one who's running into this, it might be worth mentioning in the tutorial.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.