Skip to content

DimSim: toggleable sensor channels (depth, color, lidar) #1738

@Viswa4599

Description

@Viswa4599

Problem

DimSim always publishes all sensor channels (color_image, depth_image, lidar, odom). Real hardware (RealSense, ZED) has enable_depth toggles but DimSim has no equivalent.

Paul reports most bandwidth is consumed by /depth_image at 2 Hz. Some robots don't have depth cameras.

Proposed Solution

  • Add sensor enable/disable flags to DimSim config:

    DimSimConfig(enable_color=True, enable_depth=True, enable_lidar=True)
  • Pass to bridge → browser to skip capture+publish for disabled channels

  • Support runtime toggle via SceneClient

  • Match enable_depth pattern from RealSense/ZED modules

Files to Change

  • dimos/robot/sim/bridge.py — pass config flags to CLI
  • DimSim/dimos-cli/bridge/server.ts — relay enable flags
  • DimSim/src/dimos/dimosBridge.ts — skip disabled sensors in _publishSensors()

Context: dimos team feedback on PR #1390.


Synced from DIM-777 by summer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions