Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.4%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: kpwelsh
  • Language: Rust
  • Default Branch: master
  • Size: 34.2 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 4 years ago · Last pushed almost 4 years ago
Metadata Files
Readme Citation

README.md

Installation

This Rust package is not registered on crates.io. If you want to install this, you will need to install it from this repo with either

cargo install --git https://github.com/kpwelsh/RobotIKBase.git

to install it locally, or by adding

[dependencies] robot_ik_base = {git = "https://github.com/kpwelsh/RobotIKBase.git" }

to your Cargo.toml file to add it as a dependency. (Note that specifying remote git dependencies will prevent you from publishing your package)

Usage

This package exposes a single interface intended to solve the robot arm inverse kinematics problem via non-linear optimization. For details on the mathematical approach and implementation, see RobotIKBase.

The IKSolver interface makes use of both the k library for kinematics and the OptimizationEngine non-linear optimizer to provide a simple interface for determining the necessary joint angles for a robot arm to reach a certain end-effector pose. There is some support for self-collision avoidance, but you may need to modify the cost function code yourself to achieve decent outcomes.

Example

The following example can be found as a library test case.

```rust // Create a solver instance from a URDF file let mut solver = IKSolver::fromurdffp("test/test.urdf"); // Set the desired end-effector frame (k only likes this to be joints) solver.setee("pandajoint8");

// Pick some pose to achieve. // This methods works fine for a generic test pose, // but you will probably have an external pose source. let q = solver.arm.asref().unwrap().jointpositions(); solver.arm.asref().unwrap().setjointpositionsclamped(&q); let pose = solver.arm.asref().unwrap().endtransform(); let mut q = solver.arm.asref().unwrap().jointpositions(); q[1] += 0.5;

// Ask it to solve the IK. let result = solver.solve(&q, &pose); assert!(result.is_ok());

// Here we just double check that it found an OK answer. solver.arm.asref().unwrap().setjointpositions(&result.unwrap()).unwrap(); let foundpose = solver.arm.asref().unwrap().endtransform();

assert!((found_pose.translation.vector - pose.translation.vector).magnitude() <= 1e-4); ```

Owner

  • Name: Kevin Welsh
  • Login: kpwelsh
  • Kind: user

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Welsh"
  given-names: "Kevin"
  orcid: "https://orcid.org/0000-0001-6341-6562"
title: "Real Time Robot Arm IK"
version: 1.1.0
date-released: 5-10-2022
url: "https://github.com/kpwelsh/RobotIKBase"

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels