Package pydoc for smartbot_irl.data

smartbot_irl.data#

Functions#

Classes#

Function Details#

smartbot_irl.data.list_sensor_columns()[source]#

Return top-level keys from flatten().

Return type:

list[str]

smartbot_irl.data.timestamp()[source]#

Class Details#

class smartbot_irl.data.Command(wheel_vel_left=0.0, wheel_vel_right=0.0, linear_vel=0.0, angular_vel=0.0, gripper_closed=None, manipulator_presets=None, reset_position=False, remove_bias=False)[source]#

Bases: object

High-level command for SmartBot. Twist and indiv whele control.

Parameters:
  • wheel_vel_left (float | None)

  • wheel_vel_right (float | None)

  • linear_vel (float | None)

  • angular_vel (float | None)

  • gripper_closed (bool | None)

  • manipulator_presets (str | None)

  • reset_position (bool)

  • remove_bias (bool)

to_ros()[source]#
Return type:

dict[str, dict[str, Any]]

angular_vel: float | None = 0.0#
gripper_closed: bool | None = None#
linear_vel: float | None = 0.0#
manipulator_presets: str | None = None#
remove_bias: bool = False#
reset_position: bool = False#
wheel_vel_left: float | None = 0.0#
wheel_vel_right: float | None = 0.0#
class smartbot_irl.data.SensorData(raw: 'RawSensorData' = <factory>, odom: 'Odometry' = <factory>, scan: 'LaserScan' = <factory>, joints: 'Joints' = <factory>, seen_hexes: 'PoseArray' = <factory>, imu: 'Imu' = <factory>, gripper_curr_state: 'String' = <factory>, manipulator_curr_preset: 'String' = <factory>, seen_robots: 'PoseArray' = <factory>)[source]#

Bases: object

Parameters:
  • raw (RawSensorData)

  • odom (Odometry)

  • scan (LaserScan)

  • joints (Joints)

  • seen_hexes (PoseArray)

  • imu (Imu)

  • gripper_curr_state (String)

  • manipulator_curr_preset (String)

  • seen_robots (PoseArray)

classmethod initialized()[source]#
Return type:

SensorData

flatten()[source]#
Return type:

dict[str, Any]

get_specs()[source]#
Return type:

List[TopicSpec]

to_ros()[source]#
Return type:

dict

gripper_curr_state: String#
imu: Imu#
joints: Joints#
manipulator_curr_preset: String#
odom: Odometry#
raw: RawSensorData#
scan: LaserScan#
seen_hexes: PoseArray#
seen_robots: PoseArray#
class smartbot_irl.data.SensorSpec(type: 'type[BaseType]', ros_type: 'type[Any]', ros_topic: 'str', timeout: 'float')[source]#

Bases: object

Parameters:
  • type (type[BaseType])

  • ros_type (type[Any])

  • ros_topic (str)

  • timeout (float)

ros_topic: str#
ros_type: type[Any]#
timeout: float#
type: type[BaseType]#
class smartbot_irl.data.State[source]#

Bases: object

append_row(rowdict)[source]#
Parameters:

rowdict (dict)

property last: SimpleNamespace#
next_index: int = 0#
state_vec: DataFrame#