Comments (3)
Hello!
In the example script, when you create the robot_config = Config(use_cython=True)
if you change use_cython=False
you should see significantly faster start up (because it won't be generating C functions for each of the calculations), but the execution time may be a bit slower. Probably that's fine though.
I believe that the import error is due to using Python 2.7. If you download and setup Anaconda, then it should be very quick to get set up in Python 3 running conda create -n myenv python=3.5
. From there it should be quick to try running the examples and hopefully when you use use_cython=True
there aren't any issues. Actually, I find that when I'm using Python 2.7 I'm not even able to run the example a first time without an import error. I will make a note that Python 2 isn't supported, thanks!
Regarding building up a config for the UR3, awesome! Would love to get your feedback on the process, and if you have any questions or we can help with it please don't hesitate to write.
So, tl;dr: I think the import errors are cause by Python 2.7, if you switch to Python 3+ those should go away. Alternatively, setting use_cython=False
in the scripts your running when creating robot_config
might also do the trick. Please let me know!
from abr_control.
Yeah, since I was also playing with your blog's sympy example I disable the use_cython
option, and it worked fine, thank you very much. I've been using Python 2.7 since I want to use another library that is working on that version.
Now, I have one comment. I wonder why you didn't just save the lambdify function directly using cloudpickle
. I tried, and it works fine, both in the sympy example and in the abr_control
, it runs faster than loading just the expression and then lambdify it. Not sure if it is quicker or slower in run time than the cython version.
Regarding the building the UR3 model, I had done a couple of things. First, I tried to define joints and links transformations using the DH parameters, and so I implemented some method to computed that on the sympy example. I think it looks kinda simpler to read, and I used the parameter values provided by universal robots for the ur3. After finding the correct offset angles for theta, it worked perfectly with the VREP model. They also provide the values of the CoMs of each link so I also tried to use that in my model and it seems to work fine too.
I haven't tried this in the abr_control library, there I just change the values of the link/joints offsets, the inertia values, and then used the same transformations as the UR5 model.
So, anyway, thank you very much for your blog and your code, it has been really useful to understand a bit more about control. I will keep using it, I actually want to create a torque/force controller with velocity inputs. That's my goal, and then see if it works in the real robot. If you find useful any of my modifications, let me know, I'd be glad to contribute.
from abr_control.
Sorry about the crazy long response time, thanks for the example! We've discussed getting a DH parameters setup going for the repo, but are just short on cycles to develop it. If you are able to make a PR for it we would definitely appreciate it as it's super worthwhile to have!
from abr_control.
Related Issues (20)
- Add a warning when the joint state is ignored by mujoco_config
- AttributeError: 'MjViewer' object has no attribute 'exit' HOT 1
- Question for the hand/gripper control HOT 2
- Can we add AvoidObstacles in inverse kinematics path planner? HOT 1
- Non-linear trajectory issue HOT 6
- config.py file for UR5e
- Control of two robots
- 3D model files missing HOT 2
- AttributeError: 'MjViewer' object has no attribute 'exit' HOT 3
- error occurs when calculation of 'C' HOT 6
- What is the effect of dt in your expressions? HOT 4
- Can I download those mesh and texture files directly? HOT 2
- Other arms with ABR_Control HOT 2
- xyz_offset argument with problems HOT 7
- Inverse kinematic for Mujoco HOT 3
- ask for reference about the controllers HOT 3
- Dynamics Adaptation using hardcoded Tau and dt values HOT 2
- TypeError: 'numpy.ndarray' object is not callable HOT 2
- MujocoConfig Error HOT 3
- Mujoco install issues I encountered. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abr_control.