Base robot_launch.py on config file; document node parameters - #3
Conversation
- launch/robot_launch.py now mirrors the sas_robot_driver_ur launch file: a single driver node parameterized from a config file, with a 'config_file' launch argument (default: installed share config/config.yaml). - Add config/config.yaml with the driver parameters for the R820. - Install config/ into the package share so the default resolves. - Document the sas_robot_driver_kuka_node and its mandatory parameters in README.md.
|
👎 The json is not relevant for the node config so I’ll have to check this. |
The kinematic model .json files under robots/ are not relevant to this package's node parameters; the robot_name parameter is simply the name of the robot (e.g. r820).
|
The
Commit: 5dae58d This comment was posted by an AI agent (OpenHands) on behalf of the user. |
The robot_name parameter was read by the node and stored in RobotDriverKukaConfiguration, but never consumed: the KUKA driver only uses configuration.joint_limits, and the robot is identified by the node name (robot_driver_provider_prefix = node->get_name()), matching the sas_robot_driver_ur convention. - Drop the parameter read from sas_robot_driver_kuka_node.cpp - Drop the unused name field from RobotDriverKukaConfiguration - Remove robot_name from config/config.yaml - Remove robot_name from the README parameter table
|
Removed the Why: The node read What changed:
Commit: 50fec36 This comment was posted by an AI agent (OpenHands) on behalf of the user. |
Summary
Aligns the launch file and README with the sas_robot_driver_ur repository (scoped to the launch file, the configuration file, and the node-parameter documentation, as requested).
Changes
launch/robot_launch.pynow mirrors thesas_robot_driver_urlaunch file: a single driver node parameterized from a config file.config_filelaunch argument (default: installedshare/sas_robot_driver_kuka/config/config.yaml).output='screen'andemulate_tty=True.parameters=[...]dict is replaced byparameters=[config_file].config/config.yaml(new): the driver parameters for the R820 under akuka_1node namespace, matching the R820 joint limits used previously in the launch file.CMakeLists.txt: installsconfig/into the package share so the defaultconfig_fileresolves aftercolcon build.README.md: adds a "ROS 2 Nodes & Parameters" section (same structure as the UR repo) documentingsas_robot_driver_kuka_node, its properties, the launch usage, and each node parameter (type, mandatory/optional, default, purpose).src/sas_robot_driver_kuka_node.cpp,include/.../sas_robot_driver_kuka.hpp: removes the unusedrobot_nameparameter (and thenamefield ofRobotDriverKukaConfiguration). The robot is identified by the node name (robot_driver_provider_prefix = node->get_name()), matching thesas_robot_driver_urconvention.Notes
joint_limits_min,joint_limits_max,thread_sampling_time_sec) are mandatory viasas::get_ros_parameter(...), so all are listed in the config file.sas_robot_driver_kuka; thenamelaunch argument is passed through as before (it becomes the topic-prefix viarobot_driver_provider_prefix).This PR was created by an AI agent (OpenHands) on behalf of the user.