gramaziokohler / roslibpy

Python ROS Bridge library
MIT License
273 stars 56 forks source link

Add support for custom ROS API timeout values to Ros#get_param* methods #82

Closed ravikiranj closed 3 years ago

ravikiranj commented 3 years ago

Feature Request

As a developer, I want to set custom timeout values for Ros#get_param* calls so that the ROS API calls made over the wire don't timeout.

Details

Is your feature request related to a problem? Please describe. Ros#get_param* when called synchronously uses the default ROSAPI_TIMEOUT value of 3 seconds which may not be enough for certain scenarios.

Describe the solution you'd like Add support for changing default ROSAPI_TIMEOUT in Ros constructor OR add custom timeout parameter to get_param* API calls. Ability to change default ROSAPI_TIMEOUT values might be useful for other use-cases where developers don't want to pass the custom timeout to all functions.

Describe alternatives you've considered Copy the implementation of get_param and use Param/Service calls which allow custom timeout values

Additional context N/A