rubu.temas module
- class rubu.temas.Connect(hostname='temas', ip_address='')[source]
Bases:
objectThis class alows the Temas connection.
- class rubu.temas.Socket(port, ip_address='')[source]
Bases:
objectThis class send commands to Temas
- class rubu.temas.Camera(port=8081, ip_address='')[source]
Bases:
objectThis class allows the control of camera using urllib.
- get_frame()[source]
Returns the most recent frame
- Returns:
Frame
- Return type:
numpy.ndarray or None
- set_exposure_time(microseconds)[source]
Set exposure time of visual camera 50-33000µs :return: Exposure time :rtype: String
- set_brightness(brightness_percent)[source]
Set brightness of visual camera 0-100 :return: Brightness :rtype: String
- set_saturation(saturation_percent)[source]
Set saturation of visual camera 0-100 :return: Saturation :rtype: String
- set_contrast(contrast_percent)[source]
Set contrast of visual camera 0-100 :return: Contrast :rtype: String
- class rubu.temas.Control(port=8082, ip_address='')[source]
Bases:
objectThis class alows the control of motors and laser.
- get_pcl(path)[source]
Retrieve the latest point cloud from the laser scan (e.g., located at C:/temp/).
- Returns:
.ply file
- distance()[source]
Laser distance measurment
- Returns:
Value of the distance [cm]
- Return type:
String
- mean_distance()[source]
Mean laser distance measurement
- Returns:
Value of the mean_distance [cm]
- Return type:
String
- move_pos(phi, theta)[source]
Move to the specified pan and tilt angles in degrees (e.g., 12.5, 11) with a step size of 0.5°.
- Returns:
Status message indicating if the move was successful. Returns True if successful.
- Return type:
String
- start_point_cloud_scan(theta1, theta2, phi1, phi2, color=1)[source]
Starts a point cloud scan between the specified pan and tilt angle ranges.
- Parameters:
theta1 – Minimum elevation angle in degrees (-30 to 90, step size 0.5°)
theta2 – Maximum elevation angle in degrees (-30 to 90, step size 0.5°)
phi1 – Minimum azimuth angle in degrees (-60 to 60, step size 0.5°)
phi2 – Maximum azimuth angle in degrees (-60 to 60, step size 0.5°)
color – Color mode (default = 1)
- Returns:
Status message indicating if the scan was started successfully. Returns True if successful.
- Return type:
String
- class rubu.temas.Common(port=8083, ip_address='')[source]
Bases:
objectThis class included the common settings of Temas
- shutdown()[source]
Shutdown Temas
- Returns:
Status message indicating if the shutdown was successful. Returns True if successful.
- Return type:
String
- restart()[source]
Restart Temas
- Returns:
Status message indicating if the restart was successful. Returns True if successful.
- Return type:
String
- get_temperature()[source]
Read Temperature of Temas
- Returns:
Temperature Temas [°C]
- Return type:
String
- get_fw_version()[source]
Get firmware version of Temas
- Returns:
Firmware version is returned
- Return type:
String
- get_port_camera()[source]
Get port of Temas visual camera
- Returns:
Port from visual camera
- Return type:
String
- get_port_tof_camera()[source]
Get port of Temas tof camera
- Returns:
Port from tof camera
- Return type:
String
- get_port_common()[source]
Get port of Temas common settings
- Returns:
Port from Temas common settings
- Return type:
String
- get_port_control()[source]
Get port of control device
- Returns:
Port from control device
- Return type:
String
- get_mac()[source]
Get the mac address of Temas
- Returns:
Returns the mac address
- Return type:
String
- get_laser_x_los()[source]
Get the x value los of Laser in pixels relative to the visual frame.
- Returns:
Returns the x value los (px)
- Return type:
String
- get_laser_y_los()[source]
Get the y value los of Laser in pixels relative to the visual frame.
- Returns:
Returns the y value los
- Return type:
String