Giter Club home page Giter Club logo

Comments (3)

studywolf avatar studywolf commented on May 28, 2024 1

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.

cambel avatar cambel commented on May 28, 2024

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.

studywolf avatar studywolf commented on May 28, 2024

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)

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.