erwincoumans / tiny-differentiable-simulator

Tiny Differentiable Simulator is a header-only C++ and CUDA physics library for reinforcement learning and robotics with zero dependencies.
Apache License 2.0
1.24k stars 130 forks source link

Compilation error: "‘dof_’ was not declared in this scope" #165

Closed kvasios closed 3 years ago

kvasios commented 3 years ago

The following error was thrown during compilation. (Ubuntu 20.04)

/home/kvasios/tiny-differentiable-simulator/examples/../src/urdf/../multibody.hpp:97:17: error: ‘dof’ was not declared in this scope; did you mean ‘dof’? 97 | conv.dof = dof; | ^~~~ | dof /home/kvasios/tiny-differentiable-simulator/examples/../src/urdf/../multi_body.hpp: In constructor ‘tds::MultiBody::MultiBody(const tds::MultiBody&)’: /home/kvasios/tiny-differentiable-simulator/examples/../src/urdf/../multibody.hpp:371:9: error: class ‘tds::MultiBody’ does not have any field named ‘dof’ 371 | dof(mb.dof), | ^~~~ make[2]: [examples/CMakeFiles/tiny_urdf_parser_example.dir/build.make:63: examples/CMakeFiles/tiny_urdf_parser_example.dir/tiny_urdf_parser_example.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:901: examples/CMakeFiles/tiny_urdf_parser_example.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... make: [Makefile:141: all] Error 2

erwincoumans commented 3 years ago

Thanks for the report. This should be fixed now, please try again.

kvasios commented 3 years ago

It works! Thanks!