Skip to content

Conversation

@Flova
Copy link
Member

@Flova Flova commented Jun 18, 2025

Summary

It doesn't really change anything, but it could be a bit more reliable for our setup, which does not include many local minima.

I also fixes an vector init that was reported as risky by valgrind during the visit at the WF Wolves.

Proposed changes

Use gradients instead of particle swarm optimization in ik.

Related issues

Checklist

  • Run colcon build
  • Write documentation
  • Test on your machine
  • Test on the robot
  • Create issues for future work
  • Triage this PR and label it

@Flova Flova moved this from 🆕 New to 👀 In review in Software Jun 18, 2025
@Flova Flova added bug Something isn't working motion labels Jun 18, 2025
@Flova Flova changed the title Use gradient bio_ik solver Use gradient bio_ik solver and fix memory issues Jun 18, 2025

This comment was marked as outdated.

@Flova Flova requested a review from Copilot June 18, 2025 12:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR changes the inverse kinematics solver to use a gradient descent approach and simplifies vector initialization in spline functions to address memory concerns.

  • Updated kinematics configuration across multiple groups by adding the "gd_c" mode.
  • Refactored the vector initializations in both position and pose spline functions to inline constructions.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
bitbots_robot/wolfgang_moveit_config/config/kinematics.yaml Added "gd_c" mode to several kinematics groups to enable gradient descent-based IK.
bitbots_motion/bitbots_splines/src/Spline/position_spline.cpp Simplified getPos, getVel, and getAcc functions with inline vector initializations.
bitbots_motion/bitbots_splines/src/Spline/pose_spline.cpp Refactored spline functions for position and orientation to use shorthand vector construction.

@Flova Flova merged commit b5d1b44 into main Jun 18, 2025
1 of 2 checks passed
@Flova Flova deleted the use_gradient_solver branch June 18, 2025 15:11
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Software Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working motion

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants