Classes | |
| class | FloatArrayListener |
| Listens over ros network. More... | |
| class | GenericListener |
| Takes a normal ROS callback channel and gives it an on demand query style interface. More... | |
| class | RateCaller |
| class | RateListener |
| Class for registering as a subscriber to a specified topic, where the messages are of a given type. More... | |
| class | UnresponsiveServerError |
Functions | |
| def | bag_iter |
| Iterator function for simplified filtered bag reading. | |
| def | bag_sel |
| def | bag_sel_ |
| Select topics from a given bag. | |
| def | call_save_service |
| Calls the service with the given name and given parameters and returns the output of the service. | |
| def | ignore_return |
| def | np_to_colored_pointcloud |
| def | np_to_pointcloud |
| Converts a list of pr2_msgs/PressureState into a matrix. | |
| def | np_to_rgb_pointcloud |
| def | pointcloud_to_np |
| def | ros_to_dict |
| Converts any ros message class into a dictionary (currently used to make PoseStamped messages picklable) | |
| def | wrap |
| Used on ROS server (service provider) side to conveniently declare a function that returns nothing as a service. | |
| def hrl_lib.rutils.bag_iter | ( | file_name, | |
topics = [] |
|||
| ) |
| def hrl_lib.rutils.bag_sel | ( | file_name, | |
topics = [] |
|||
| ) |
| def hrl_lib.rutils.bag_sel_ | ( | file_name, | |
topics = [] |
|||
| ) |
Select topics from a given bag.
Use this only if you're dealing with small messages as not everything will fit into RAM.
| file_name | bag file name |
| topics | list of topics that you care about (leave blank to get everything) |
| def hrl_lib.rutils.call_save_service | ( | service_name, | |
| service_def, | |||
| params, | |||
filename = None |
|||
| ) |
Calls the service with the given name and given parameters and returns the output of the service.
| service_name | the full name of the service to be called |
| params | the list of parameters to be passed into the service name of a pickle object to be created if not None |
| def hrl_lib.rutils.ignore_return | ( | f | ) |
| def hrl_lib.rutils.np_to_colored_pointcloud | ( | points_mat, | |
| intensity, | |||
| frame | |||
| ) |
| def hrl_lib.rutils.np_to_pointcloud | ( | points_mat, | |
| frame | |||
| ) |
Converts a list of pr2_msgs/PressureState into a matrix.
left = np.matrix(left).T right = np.matrix(right).T return left, right, times
| def hrl_lib.rutils.np_to_rgb_pointcloud | ( | points_mat, | |
| intensities, | |||
| frame | |||
| ) |
| def hrl_lib.rutils.pointcloud_to_np | ( | pc | ) |
| def hrl_lib.rutils.ros_to_dict | ( | msg | ) |
| def hrl_lib.rutils.wrap | ( | f, | |
inputs = [], |
|||
response = srv.EmptyResponse, |
|||
verbose = False |
|||
| ) |
Used on ROS server (service provider) side to conveniently declare a function that returns nothing as a service.
ex. obj = YourObject() rospy.Service('your_service', YourSrv, wrap(obj.some_function, # What that function should be given as input from the request ['request_data_field_name1', 'request_data_field_name2'], # Class to use when construction ROS response response=SomeClass ))