Jetracer Sensors package#
- class ROS_Stack.jetracer_speedway_sensors.src.camera_intel_publish.ImageDepthPublisher(camera: IntelRealSense)[source]#
Bases:
ThreadClass to publish in a topic cam color image and in another topic depth frame
- __handle_request(request: jetracer_speedway_srvs.srv.DepthToPoint) jetracer_speedway_srvs.srv.DepthToPointResponse#
- __publish_frame(pub: rospy.Publisher, img: bool = True) None#
- run() None[source]#
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
- class ROS_Stack.jetracer_speedway_sensors.src.camera_intel_publish.IntelRealSense[source]#
Bases:
Thread- get_color_frame() ndarray[source]#
Function to get the color image save in the buffer
- Returns:
Return the last color image save in the buffer
- Return type:
np.ndarray
- get_depth_frame() ndarray[source]#
Function to get depth frame save in the buffer
- Returns:
Return the last depth frame save in the buffer
- Return type:
np.ndarray
- get_pyrealsense_depth_frame() pyrealsense2.pyrealsense2.depth_frame[source]#
Function to get depth frame save in the buffer in original format
- Returns:
Return the last depth frame save in the buffer
- Return type:
pr.depth_frame
- run()[source]#
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
- ROS_Stack.jetracer_speedway_sensors.src.camera_intel_publish.signal_handler(signal, frame) None[source]#
- class ROS_Stack.jetracer_speedway_sensors.src.camera_publish.Camera_OAK[source]#
Bases:
Thread- __show_specs() None#
- get_frame() ndarray[source]#
Function to get the image save in the buffer
- Returns:
Return the last image save in the buffer
- Return type:
np.ndarray
- run() None[source]#
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
- class ROS_Stack.jetracer_speedway_sensors.src.camera_publish.ImagePublisher(camera: Camera_OAK)[source]#
Bases:
ThreadClass to publish in a topic cam image
- __publish_image() None#
Void to publish image
- run() None[source]#
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.