filmov
tv
[ROS Q&A] 091 - Python variable scope problem

Показать описание
In this video we show how to solve the error "A node that's a subscriber, a publisher and uses dynamic parameters [Python]" This error was reported in the following question:
Q: Suppose I have defined two custom dynamic parameters, gain1 and gain2, in a cfg file. I would like to use these in a node that subscribes and publishes to two topics. Here's what i tried:
A: Another problem you should change: your publishers are being declared as Subscribers.
Q: Suppose I have defined two custom dynamic parameters, gain1 and gain2, in a cfg file. I would like to use these in a node that subscribes and publishes to two topics. Here's what i tried:
A: Another problem you should change: your publishers are being declared as Subscribers.