trajopt | Trajectory optimization algorithms for robotic control | Robotics library

 by   aravindr93 Python Version: Current License: MIT

kandi X-RAY | trajopt Summary

kandi X-RAY | trajopt Summary

trajopt is a Python library typically used in Automation, Robotics applications. trajopt has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

Trajectory optimization algorithms for robotic control.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              trajopt has a low active ecosystem.
              It has 85 star(s) with 18 fork(s). There are 7 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 2 open issues and 0 have been closed. On average issues are closed in 112 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of trajopt is current.

            kandi-Quality Quality

              trajopt has 0 bugs and 0 code smells.

            kandi-Security Security

              trajopt has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              trajopt code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              trajopt is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              trajopt releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              trajopt saves you 303 person hours of effort in developing the same functionality from scratch.
              It has 731 lines of code, 61 functions and 14 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed trajopt and discovered the below as its top functions. This is intended to give you an instant insight into trajopt implemented functionality, and help decide if they suit your requirements.
            • Animation a rollout
            • Set the environment
            • Return the environment state of the experiment
            • Perform a single simulation step
            • Train a single iteration
            • Do rollouts
            • Advance the simulation time
            • Gather paths from parallel
            • Convert two quaternions to velocity
            • Multiply two quaternions
            • Convert a quaternion to velocity
            • Reset the model
            • Resets the site position
            • Generate a sequence of results onscreen
            • Generate a frame
            • Renders the result
            • Get environment object
            Get all kandi verified functions for this library.

            trajopt Key Features

            No Key Features are available at this moment for trajopt.

            trajopt Examples and Code Snippets

            No Code Snippets are available at this moment for trajopt.

            Community Discussions

            QUESTION

            MathematicalProgram with MinimumDistanceConstraint: can you use more general convex shapes with AutoDiff?
            Asked 2020-May-22 at 14:51

            I'm trying to port trajectory optimization code originally written for TrajOpt into Drake. One of the nice things about TrajOpt is that it could solve SQP trajectory optimization problems with a constraint enforcing a minimum distance between the robot and surrounding obstacles, and it supported a pretty broad range of geometries (all the standard convex primitives plus simple convex meshes). For a number of reasons, TrajOpt is no longer the right choice for my project, so I'm porting my trajectory optimization code over to Drake. I think MinimumDistanceConstraint is what I want to replicate this functionality, but it seems that Drake allows AutoDiffXd signed distance queries only for spheres and half-spaces, not for more general convex shapes (like boxes or cylinders).

            All of my other constraints support AutoDiff (I have some custom constraints for "probability of collision," but those provide an analytical derivative that can be used in an AutoDiff). In order to add a MinimumDistanceConstraint that supports more general geometry, would I have to formulate the MathematicalProgram entirely with doubles? Would that slow down the performance of the solver (e.g. by having to do finite differences instead of using the gradient information in AutoDiffXd)?

            In an ideal world, I'd like to avoid resorting to "bubble-wrapping" my robot and environment (replacing all the collision geometry with spheres), since the runtime of the custom constraints I'm using scales with the number of collide-able pairs in the scene (I'm currently using convex geometry to keep this number relatively low).

            Any help would be appreciated!

            ...

            ANSWER

            Answered 2020-May-22 at 14:51

            but it seems that Drake allows AutoDiffXd signed distance queries only for spheres and half-spaces, not for more general convex shapes (like boxes or cylinders)

            1. I think MinimumDistanceConstraint can handle more general geometries (including boxes and cylinders) for MultibodyPlant and SceneGraph. It calls FCL to compute the signed distance between these geometries (including witness points). It is true that these signed distance queries don't support AutodiffXd yet, but only double type. But as you will see later, you don't need the signed distance query with AutoDiffXd to compute the gradient of the distance.
            2. You could try to construct MinimumDistanceConstraint for a MultibodyPlant with this API. Although you use MultibodyPlant not MultibodyPlant, MinimumDistanceConstraint can still evaluate with AutodiffXd. Specifically, it computes the gradient of the signed distance here. To compute the gradient of the signed distance query, the signed distance query doesn't need to support AutoDiffXd. We can compute the gradient using the witness points and the normal vectors as

            Source https://stackoverflow.com/questions/61902028

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install trajopt

            The main package dependencies are MuJoCo and mjrl. See setup-instructions to get a working conda environment and setup dependencies.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/aravindr93/trajopt.git

          • CLI

            gh repo clone aravindr93/trajopt

          • sshUrl

            git@github.com:aravindr93/trajopt.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Robotics Libraries

            openpilot

            by commaai

            apollo

            by ApolloAuto

            PythonRobotics

            by AtsushiSakai

            carla

            by carla-simulator

            ardupilot

            by ArduPilot

            Try Top Libraries by aravindr93

            mjrl

            by aravindr93Python

            hand_dapg

            by aravindr93Python

            robustRL

            by aravindr93Python

            imaml_dev

            by aravindr93Python

            RL-tasks

            by aravindr93Python