Open
Conversation
I added a new ROS2 C++ package, navigator_thrust_mapper, and implemented a preliminary node that converts high-level wrench commands into per‑thruster outputs. I also added a simple placeholder mapping (a basic 4‑thruster formula) and updated the build files so the package builds cleanly. This is an initial scaffold for testing and iteration — it’s functional but still preliminary. Next steps are to port the full Python mapping logic, replace the placeholder with a URDF‑based allocator, and add safety and hardware integration.
- Implement complete ThrusterMap class in C++ with all Python logic - Add VRX force-to-command conversion functions (scalar and vectorized) - Implement least-squares thrust allocation using Eigen SVD pseudoinverse - Create linear force-to-command generator for custom scaling ratios - Add comprehensive unit tests (thruster_map_test) verifying all conversions - Build succeeds with no errors or warnings - All 4 core test cases pass: * VRX force conversion across full range (-150 to 300 N) * Vectorized force processing * Linear force-to-command generation * Wrench-to-thrusts allocation with correct pseudoinverse computation - ROS2 package properly configured with ament_cmake and Eigen3 dependency - Executables: thruster_mapper_node (ROS2 node) and thruster_map_test (standalone)
Port thrust_mapper.py to C++ with full feature parity. Implements VRX inverse dynamics, SVD-based thrust allocation, kill alarm handling, and comprehensive unit tests. All tests passing, clean build.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I believe this is the finalized and working code for Thrust Mapper with ROS2 and C++.