Git Product home page Git Product logo

Comments (4)

RussTedrake avatar RussTedrake commented on June 12, 2024

your link points to a repo, not to a piece of source code.

from drake-external-examples.

Islam0mar avatar Islam0mar commented on June 12, 2024

I wanted to put all files
code:
https://github.com/CatchMeFastFat/drake-shambhala-example/blob/master/src/main/demo.cpp#L64

cmakelist:
cmakelist

I didn't change anything only changed include headers when needed.

In doxygen http://drake.mit.edu/doxygen_cxx/namespacedrake_1_1parsers_1_1urdf.html#a614f26cc87dd5b115b152bd33c21af46

This method can only be used with URDF models that either (1) do not use package:// to reference modeling resources like mesh files, or (2) only reference packages that are defined up the directory tree relative to urdf_filename. URDF files that contain package:// references that do not meet these requirements should instead use AddModelInstanceFromUrdfFileSearchingInRosPackages().

and Pendulum.urdfhas

 <gazebo>
    <plugin filename="libgazebo_ros_pub_robot_state.so" name="gazebo_ros_pub_robot_controller">
      <alwaysOn>true</alwaysOn>
      <updateRate>100.0</updateRate>
      <topicName>true_robot_state</topicName>
    </plugin>
</gazebo>

https://github.com/RobotLocomotion/drake/blob/master/examples/pendulum/passive_simulation.cc#L29

Why plugin used then called parsers::urdf::AddModelInstanceFromUrdfFileToWorld?

from drake-external-examples.

Islam0mar avatar Islam0mar commented on June 12, 2024

update:
segfault debug

0x00000000009ced86 in drake::TypeSafeIndexdrake::systems::SystemConstraintTag::AssertValid (this=0x0, source=0xb29389 "Converting to an int.")
at /home/drake/drake-build/include/drake/common/type_safe_index.h:420
420 if (index_ < 0) {
(gdb) where
#0 0x00000000009ced86 in drake::TypeSafeIndexdrake::systems::SystemConstraintTag::AssertValid (this=0x0, source=0xb29389 "Converting to an int.")
at /home/drake/drake-build/include/drake/common/type_safe_index.h:420
#1 0x00000000009c33bd in drake::TypeSafeIndexdrake::systems::SystemConstraintTag::operator int (this=0x0)
at /home/drake/drake-build/include/drake/common/type_safe_index.h:198
#2 0x0000000000a06054 in drake::systems::Systemdrake::symbolic::Expression::get_constraint (this=0xeb8c50,
constraint_index=<error reading variable: Cannot access memory at address 0x0>) at /home/drake/drake-build/include/drake/systems/framework/system.h:1016
#3 0x00007ffff73f1b0a in drake::systems::SystemSymbolicInspector::SystemSymbolicInspector(drake::systems::Systemdrake::symbolic::Expression const&) ()
from /home/drake/drake-build/lib/libdrake.so
#4 0x0000000000b1dba1 in std::make_unique<drake::systems::SystemSymbolicInspector, drake::systems::Systemdrake::symbolic::Expression&> ()
at /usr/include/c++/5/bits/unique_ptr.h:765
#5 0x0000000000b1b9e7 in drake::systems::LeafSystem::MakeSystemSymbolicInspector (this=0xeae170)
at /home/drake/drake-build/include/drake/systems/framework/leaf_system.h:1524

from drake-external-examples.

Islam0mar avatar Islam0mar commented on June 12, 2024

It's now working by reinstalling using cmake.

from drake-external-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.