Using RobotSimulator as a library #4436
Replies: 1 comment
-
Ok, so after a few days of suffering with cmake I got it working. The issue was the following: I tried to use the libraries compiled by bullet extras, speciffically In case I disappear here is more detailed explanation of my solution: |
Beta Was this translation helpful? Give feedback.
-
I have been trying to use RobotSimulator API, wich I think is the c++ equivalent of the pybullet API. The problem is that i doesnt come up as a Bullet library (It is not possible to use it with vcpkg like the bullet base classes) and its has been imposible to compile it from the examples folder.
To clarify I made a new folder for my project and downloaded the Bullet libraries using vcpkg, the copied the
examples
andExtras
folders and made simple c++ script usingb3RobotSimulatorClientAPI
, (I think I copied that script from one of the examples). I have changed some of the CMAKELIST.txt so it doesn't import bullet from the src/ folder and to specify the location of the other libraries. But every time i compile the project a bunch of linking errors come up The last one was thisLINK : fatal error LNK1104: cannot open file 'BulletRobotics.lib'
. It seems to me that this is not the right way to work with the RobotSimulator in C++.Do you think it is more easy just to clone the Bullet Repo and import the headers and files from it. What it is the best way to do it? Should i just add the Bullet folder as a subdirectory in my CMAKE? Do you have any suggestion for working with RobotSimulator.
Note: The purpose of working in C++ and not in python with pybullet is to exploit the parallezation capabilites of c++, to run simulations.
Beta Was this translation helpful? Give feedback.
All reactions