sim
variable as a function parameter. What error do you get?If you declare it as
global
I think that's even more convenient, as you don't need to pass it around in all function calls. That should at least work within the same module.sim
variable as a function parameter. What error do you get?global
I think that's even more convenient, as you don't need to pass it around in all function calls. That should at least work within the same module.source /opt/ros/...
)