S SmartDocs
시리즈: Robotaxi-OperatingSystem-Hardware-Interfaces python 43 줄 · 업데이트 2026-03-12

skill.py

Robotaxi-OperatingSystem-Hardware-Interfaces/fmc3-robotics-main/projects/RoboOS/slaver/demo_robot_local/skill.py

from mcp.server.fastmcp import FastMCP

# Initialize FastMCP server
mcp = FastMCP("robots")


@mcp.tool()
async def navigate_to_target(target: str) -> tuple[str, dict]:
    """Navigate to target, do not call when Navigation to target has been successfully performed.
    Args:
        target: String, Represents the navigation destination.
    """
    result = f"Navigation to {target} has been successfully performed."
    print(result)
    return result, {"position": f"{target}"}


@mcp.tool()
async def grasp_object(object: str) -> tuple[str, dict]:
    """Pick up the object, do not call when object has been successfully grasped.
    Args:
        object: String, Represents which to grasp.
    """
    result = f"{object} has been successfully grasped."
    print(result)
    return result, {"grasped": f"{object}"}


@mcp.tool()
async def place_to_affordance(affordance: str, object: str = None) -> tuple[str, dict]:
    """Place the grasped object in affordance, do not call when object has been successfully placed on affordance."
    Args:
        affordance: String, Represents where the object to place.
        object: String, Represents the object has been grasped.
    """
    result = f"{object} has been successfully placed on {affordance}."
    print(result)
    return result, {"grasped": f"None"}


if __name__ == "__main__":
    # Initialize and run the server
    mcp.run(transport="stdio")

관련 글

Robotaxi-OperatingSystem-Hardware-Interfaces c 업데이트 2026-02-03

alloc.c

alloc.c — c source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/class001_bundle/alloc.c).

글 읽기 →
Robotaxi-OperatingSystem-Hardware-Interfaces c 업데이트 2026-02-03

hello.c

hello.c — c source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/class001_bundle/hello.c).

글 읽기 →
Robotaxi-OperatingSystem-Hardware-Interfaces c 업데이트 2026-02-03

mlock_demo.c

mlock_demo.c — c source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/class001_bundle/mlock_demo.c).

글 읽기 →
Robotaxi-OperatingSystem-Hardware-Interfaces python 업데이트 2026-03-12

debug_perf.py

debug_perf.py — python source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/fmc3-robotics-main/projects/RoboBrain2.0/debug_perf.py).

글 읽기 →
Robotaxi-OperatingSystem-Hardware-Interfaces python 업데이트 2026-03-12

inference.py

inference.py — python source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/fmc3-robotics-main/projects/RoboBrain2.0/inference.py).

글 읽기 →
Robotaxi-OperatingSystem-Hardware-Interfaces bash 업데이트 2026-03-12

startup.sh

startup.sh — bash source code from the Robotaxi-OperatingSystem-Hardware-Interfaces learning materials (Robotaxi-OperatingSystem-Hardware-Interfaces/fmc3-robotics-main/projects/RoboBrain2.0/startup.sh).

글 읽기 →