Skip to content

TF static old style arguments  #5

@horverno

Description

@horverno

In launch (py) files, old-style arguments are deprecated, parameters should be used, but the following does not work:

parameters=[{'translation.x': 697237.0, 'translation.y': 5285644.0, 'translation.z': 0.0, 'rotation.x': 0.0, 'rotation.y': 0.0, 'rotation.z': 0.0, 'rotation.w': 1.0, 'frame_id': 'map', 'child_frame_id': 'map_gyor_0'}] 

Arguments work, but are deprecated, example:

Node(
package='tf2_ros',
#namespace='lexus3',
executable='static_transform_publisher',
name='gyor0_tf_publisher',
output='screen',
## Old-style arguments are deprecated, parameters should be used, but this does not work TODO
arguments=['697237.0', '5285644.0', '0.0','0', '0', '0', '1','map','map_gyor_0'],
#parameters=[{'translation.x': 697237.0, 'translation.y': 5285644.0, 'translation.z': 0.0, 'rotation.x': 0.0, 'rotation.y': 0.0, 'rotation.z': 0.0, 'rotation.w': 1.0, 'frame_id': 'map', 'child_frame_id': 'map_gyor_0'}]
),

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions