Package level pydoc for smartbot_irl.utils
smartbot_irl#
Functions#
Factory that returns a SmartBotReal or SmartBotSim instance. |
Classes#
Container for all SmartBot sensor topics. |
|
High-level command for SmartBot. |
Function Details#
- smartbot_irl.SmartBot(mode: Literal['real'], drawing: bool = False, **kwargs) SmartBotReal[source]#
- smartbot_irl.SmartBot(mode: Literal['sim'], drawing: bool = False, **kwargs) SmartBotSim
Factory that returns a SmartBotReal or SmartBotSim instance.
- Parameters:
mode (str)
drawing (bool)
- Return type:
SmartBotReal | SmartBotSim
Class Details#
- class smartbot_irl.SensorData[source]#
Bases:
objectContainer for all SmartBot sensor topics. Each field starts as
Noneand becomes a populated message object (LaserScan, Odometry, etc.) once that topic is received.
- class smartbot_irl.Command(wheel_vel_left=0.0, wheel_vel_right=0.0, linear_vel=0.0, angular_vel=0.0, gripper_closed=False, manipulator_presets='STOW')[source]#
Bases:
objectHigh-level command for SmartBot.
- Supports both:
Differential drive control (linear + angular velocity)
Direct wheel velocity control (left/right)
Manipulator preset and gripper control
- Parameters:
wheel_vel_left (float)
wheel_vel_right (float)
linear_vel (float)
angular_vel (float)
gripper_closed (bool)
manipulator_presets (str)
- to_ros()[source]#
Convert this Command into a dictionary that rosliby can publish.
- Return type:
dict
- angular_vel: float = 0.0#
- gripper_closed: bool = False#
- linear_vel: float = 0.0#
- manipulator_presets: str = 'STOW'#
- wheel_vel_left: float = 0.0#
- wheel_vel_right: float = 0.0#