From e87c3cdaeeb99002ab6be1c5c5eb956279f7a249 Mon Sep 17 00:00:00 2001 From: Pantelis Sopasakis
The launch file is as follows
+ + ```python + # file open_optimizer.launch.py + from launch import LaunchDescription + from launch.substitutions import PathJoinSubstitution + from launch_ros.actions import Node + from launch_ros.substitutions import FindPackageShare + + + def generate_launch_description(): + return LaunchDescription([ + Node( + package="custom_parametric_optimizer_ros2", + executable="custom_open_node_ros2", + name="custom_open_node_ros2", + output="screen", + parameters=[PathJoinSubstitution([ + FindPackageShare("custom_parametric_optimizer_ros2"), + "config", + "open_params.yaml", + ])], + ) + ]) + ``` +The launch file is as follows
- - ```python - # file open_optimizer.launch.py - from launch import LaunchDescription - from launch.substitutions import PathJoinSubstitution - from launch_ros.actions import Node - from launch_ros.substitutions import FindPackageShare - - - def generate_launch_description(): - return LaunchDescription([ - Node( - package="parametric_optimizer_ros2", - executable="open_node_ros2", - name="open_node_ros2", - output="screen", - parameters=[PathJoinSubstitution([ - FindPackageShare("parametric_optimizer_ros2"), - "config", - "open_params.yaml", - ])], - ) - ]) +New in opegen 0.11
++ OpEn can now generate ROS2 packages directly from a parametric + optimizer. The generated package includes ROS2 messages, + configuration files, a launch file, and a node that exposes the + solver through topics. +
++ This makes it easy to connect optimization-based controllers, + estimators, and planning modules into a modern robotics stack + without writing the ROS2 wrapper code by hand. +
+OptimizationResultDocker image
++ OpEn ships with a Docker image that gets you straight into a + working environment with Jupyter, Python, and the tooling needed + to explore examples without local setup friction. +
++ It is a convenient way to try the Python interface, browse the + notebooks, and experiment with the OCP workflows in a clean, + reproducible environment. +
+