pycram.ros.ros1#
Submodules#
Attributes#
Classes#
Functions#
|
Wrapper for rospy.Time to create a Time object. |
|
Wrapper for rospy.Duration to create a Duration object. |
|
Wrapper for rospy.Rate to create a Rate object. |
|
|
|
Creates a RosPack instance to search for resources of ros packages. |
|
|
|
|
|
|
|
|
|
|
|
|
Get the name of the method that called the function from which this function is called. It is intended as a helper |
|
Get the line of the method that called the function from which this function is called. It is intended as a helper |
|
Get the file name of the method that called the function from which this function is called. It is intended as a helper |
|
|
Set the logger level for the pycram logger. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Package Contents#
- pycram.ros.ros1.is_master_online()#
- pycram.ros.ros1.Time(time: int = 0.0, nsecs: int = 0) rospy.Time#
Wrapper for rospy.Time to create a Time object.
- Parameters:
time – Time in seconds
nsecs – Time in nanoseconds
- Returns:
Rospy Time object representing the given time
- pycram.ros.ros1.Duration(duration: float = 0.0) rospy.Duration#
Wrapper for rospy.Duration to create a Duration object.
- Parameters:
duration – Duration in seconds
- Returns:
A rospy Duration object representing the given duration
- pycram.ros.ros1.Rate(rate: float) rospy.Rate#
Wrapper for rospy.Rate to create a Rate object.
- Parameters:
rate – Rate in Hz
- Returns:
A rospy Rate object representing the given rate
- pycram.ros.ros1.get_node_names(namespace=None)#
- pycram.ros.ros1.create_ros_pack(ros_paths: typing_extensions.Any = None) rospkg.RosPack#
Creates a RosPack instance to search for resources of ros packages.
- Parameters:
ros_paths – An ordered list of paths to search for resources.
- Returns:
An instance of RosPack
- pycram.ros.ros1.get_ros_package_path(package_name: str) str#
- pycram.ros.ros1.get_parameter(name: str) typing_extensions.Any#
- pycram.ros.ros1.wait_for_message(topic_name: str, msg_type: typing_extensions.Any)#
- pycram.ros.ros1.is_master_online()#
- pycram.ros.ros1.sleep(duration: float)#
- pycram.ros.ros1.get_time()#
- pycram.ros.ros1.create_timer(duration: rospy.Duration, callback, oneshot=False)#
- pycram.ros.ros1.PYCRAM_LOGGER_NAME = 'pycram'#
- pycram.ros.ros1.logger_level_service_caller#
- pycram.ros.ros1._get_caller_method_name()#
Get the name of the method that called the function from which this function is called. It is intended as a helper function for the log functions.
- Returns:
Name of the method that called the function from which this function is called.
- pycram.ros.ros1._get_caller_method_line()#
Get the line of the method that called the function from which this function is called. It is intended as a helper function for the log functions.
- Returns:
Line number of the method that called the function from which this function is called.
- pycram.ros.ros1._get_caller_file_name()#
Get the file name of the method that called the function from which this function is called. It is intended as a helper function for the log functions.
- Returns:
File name of the method that called the function from which this function is called.
- pycram.ros.ros1.set_logger_level(level: pycram.ros.datastructures.enums.LoggerLevel)#
Set the logger level for the pycram logger.
- Parameters:
level – The level to set the logger to, possible values are: rospy.DEBUG, rospy.INFO, rospy.WARN, rospy.ERROR,
rospy.FATAL.
- pycram.ros.ros1.logwarn(message: str)#
- pycram.ros.ros1.loginfo(message: str)#
- pycram.ros.ros1.logerr(message: str)#
- pycram.ros.ros1.logdebug(message: str)#
- pycram.ros.ros1.logwarn_once(message: str)#
- pycram.ros.ros1.loginfo_once(message: str)#
- pycram.ros.ros1.logerr_once(message: str)#
- pycram.ros.ros1.logdebug_once(message: str)#
- pycram.ros.ros1.create_action_client(topic_name: str, action_message) actionlib.SimpleActionClient#
- pycram.ros.ros1.get_service_proxy(topic_name: str, service_message) rospy.ServiceProxy#
- pycram.ros.ros1.wait_for_service(topic_name: str)#
- pycram.ros.ros1.create_publisher(topic, msg_type, queue_size=10, latch: bool = False) rospy.Publisher#
- pycram.ros.ros1.create_subscriber(topic, msg_type, callback, queue_size=10) rospy.Subscriber#
- class pycram.ros.ros1.VizMarkerPublisher#