ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Dictionary item in yaml in ros2

asked 2018-12-13 13:09:07 -0600

poonam1120 gravatar image

Hi ,

I am aware of simple parameters defining in yaml in ros2 but seeking some help to convert below into ros2 yaml . Please let me know if anyone had handled such type of yaml.

TransferFunction:
  - name: transfer_function
    type: filters/MultiChannelTransferFunctionFilterDouble
    params:
      a: [1.0, -1.760041880343169, 1.182893262037831]
      b: [0.018098933007514, 0.054296799022543, 0.054296799022543, 0.018098933007514]

Thanks.

edit retag flag offensive close merge delete

Comments

Can you clarify what you want to change? yaml syntax hasn't changed. The snippet that you're referencing looks like a nodelet yaml config which has been replaced by the concept of components.

tfoote gravatar image tfoote  ( 2018-12-14 16:25:17 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-20 12:48:18 -0600

poonam1120 gravatar image

its working for me now. I thought the way params declared here will be changed, but its same. Following code snippet is working for me. Thanks.

LowPass:
  name: transferfunction_test
  type: MultiChannelTransferFunctionFilter<double>
  params:
    a: [1.0, -0.509525449494429]
    b: [0.245237275252786, 0.245237275252786]
edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2018-12-13 13:09:07 -0600

Seen: 1,102 times

Last updated: Dec 20 '18