Difference between revisions of "SmartRobotinoBatteryChargerDocking4"

From RobotinoWiki
(Docking coordinate system)
Line 1: Line 1:
 
==Docking coordinate system==
 
==Docking coordinate system==
[[Image::irdocking-coords.png]]
+
[[Image:irdocking-coords.png]]
  
 
==Python interface==
 
==Python interface==

Revision as of 13:39, 18 July 2022

Docking coordinate system

Irdocking-coords.png

Python interface

os << " get_bumper             - return an integer with the bumper state. 0 not pressed. 1 pressed." << std::endl;
os << " get_extpower           - return an integer with the ext_power state. 0 not connected. 1 connected." << std::endl;
os << " get_pos                - return (x,y,phi)" << std::endl;
os << " get_dist               - return (d0,...,d8) distance sensor readings in meters" << std::endl;
os << " set_vel(vx, vy, omega) - Set velocity in m/s and rad/s." << std::endl;
os << " iniData                - Get ini file parameters as json encoded string." << std::endl;
os << " get_numMarkers         - Get the number of markers found by the laser scanner. Return type int." << std::endl;
os << " get_marker(i)          - Get x,y coord of marker at index i. Return type (float,float)." << std::endl;
os << " get_markerNumScanPoints(i) - Get num scan points of marker at index i. Return type int." << std::endl;
os << " get_numStations            - Get the number of stations found by the laser scanner. Return type int." << std::endl;
os << " get_stationLeftMarker      - Get x,y coord of first station. Return type (float,float)." << std::endl;
os << " get_stationRightMarker     - Get x,y coord of right marker of first station. Return type (float,float)." << std::endl;
os << " get_stationLeftMarker      - Get x,y coord of left marker of first station. Return type (float,float)." << std::endl;
os << " get_stationPos             - Get x,y coord of first station. Return type (float,float)." << std::endl;
os << " get_stationNormal          - Get x,y coord of normal verctor of first station. Return type (float,float)." << std::endl;
os << " get_stationWidth           - Get distance between left and right marker of first station. Return type float." << std::endl;
os << std::endl;
os << "return code: 0 continue, 1 error, 2 finished docking" << std::endl;