Skip to content

feat: add Pinocchio model backend for Gazebo simulation support#226

Open
AkshayArjun wants to merge 1 commit into
frankarobotics:humblefrom
AkshayArjun:feature/pinocchio-sim-model-backend
Open

feat: add Pinocchio model backend for Gazebo simulation support#226
AkshayArjun wants to merge 1 commit into
frankarobotics:humblefrom
AkshayArjun:feature/pinocchio-sim-model-backend

Conversation

@AkshayArjun

Copy link
Copy Markdown

Add a RobotModelInterface abstraction that allows model_example_controller to run in both hardware (FCI) and simulation (Pinocchio) modes , toggled via a 'gazebo' parameter in the controller YAML.

New files:

  • robot_model_interface.hpp: abstract base class
  • robot_model_franka.hpp/cpp: FCI backend (wraps FrankaRobotModel)
  • robot_model_pinocchio.hpp/cpp: Pinocchio backend (computes from URDF)

Modified:

  • model_example_controller.hpp/cpp: use RobotModelInterface polymorphism
  • CMakeLists.txt: add new sources and pinocchio dependency
  • franka_gazebo_controllers.yaml: add gazebo param for model_example_controller

Resolves #217

Add a RobotModelInterface abstraction that allows model_example_controller
to run in both hardware (FCI) and simulation (Pinocchio) modes, toggled
via a 'gazebo' parameter in the controller YAML.

New files:
- robot_model_interface.hpp: abstract base class
- robot_model_franka.hpp/cpp: FCI backend (wraps FrankaRobotModel)
- robot_model_pinocchio.hpp/cpp: Pinocchio backend (computes from URDF)

Modified:
- model_example_controller.hpp/cpp: use RobotModelInterface polymorphism
- CMakeLists.txt: add new sources and pinocchio dependency
- franka_gazebo_controllers.yaml: add gazebo param for model_example_controller

Resolves frankarobotics#217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Support simulation (Gazebo) in model_example_controller via URDF with Pinnochio (on humble)

1 participant