capture_joint_angles.py
Humanoid/fmc3-robotics-main/projects/RoboSkill/fmc3-robotics/lerobot/capture_joint_angles.py
import asyncio
import shutil
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
async with streamablehttp_client("http://127.0.0.1:8000/mcp") as (stdio, write, _):
async with ClientSession(stdio, write) as session:
await session.initialize()
print(await session.call_tool("connect_robot", {}))
print(await session.call_tool("get_observation", {}))
print(await session.call_tool("disconnect_robot", {}))
if __name__ == "__main__":
asyncio.run(main())
Related articles
run.py
run.py — python source code from the Humanoid learning materials (Humanoid/May_12/RoboOS/deploy/run.py).
Read article →utils.py
utils.py — python source code from the Humanoid learning materials (Humanoid/May_12/RoboOS/deploy/utils.py).
Read article →agent.py
agent.py — python source code from the Humanoid learning materials (Humanoid/May_12/RoboOS/master/agents/agent.py).
Read article →planner.py
planner.py — python source code from the Humanoid learning materials (Humanoid/May_12/RoboOS/master/agents/planner.py).
Read article →prompts.py
prompts.py — python source code from the Humanoid learning materials (Humanoid/May_12/RoboOS/master/agents/prompts.py).
Read article →run.py
run.py — python source code from the Humanoid learning materials (Humanoid/May_12/RoboOS/master/run.py).
Read article →