[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CXHRQW90HZYS48J6M59N59":3,"skill-same:01M6CXHRQW90HZYS48J6M59N59":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M6CXHRQW90HZYS48J6M59N59","robotics",null,"Robotics design and programming","ffsshhttiikk\u002Fopencode-agents-skills","ffsshhttiikk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226346827?v=4","01M6CWD9RR3Y7VRQX3MXYC8FYH","01M6CWD9WVPYAZW0J82G1VKGHY",3,"MIT","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Frobotics\u002FSKILL.md",[],[5,18,19,20,21],"design","engineering","programming","opencode","2026-11-10 10:12:30",false,"---\nname: robotics\ndescription: Robotics design and programming\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: engineers, programmers, students\n  category: engineering\n---\n\n## What I do\n\n- Design robot kinematics and dynamics\n- Develop motion planning algorithms\n- Program robot controllers\n- Implement perception and localization\n- Create robot simulation environments\n\n## When to use me\n\n- When designing robotic systems\n- When programming robot movements\n- When implementing perception algorithms\n- When working with robot kinematics\n- When simulating robot behavior\n\n## Key Concepts\n\n### Forward Kinematics\n\n```python\nimport numpy as np\n\nclass RobotArm:\n    def __init__(self, dh_params):\n        \"\"\"DH parameters: [theta, d, a, alpha]\"\"\"\n        self.dh = dh_params\n        self.joints = len(dh_params)\n    \n    def forward_kinematics(self, joint_angles):\n        \"\"\"Calculate end-effector pose from joint angles\"\"\"\n        T = np.eye(4)\n        \n        for i, (theta, d, a, alpha) in enumerate(self.dh):\n            # Update theta with joint angle\n            theta += joint_angles[i]\n            \n            # DH transformation matrix\n            ct = np.cos(theta)\n            st = np.sin(theta)\n            ca = np.cos(alpha)\n            sa = np.sin(alpha)\n            \n            T_i = np.array([\n                [ct, -st*ca, st*sa, a*ct],\n                [st, ct*ca, -ct*sa, a*st],\n                [0, sa, ca, d],\n                [0, 0, 0, 1]\n            ])\n            \n            T = T @ T_i\n        \n        return T\n    \n    def jacobian(self, joint_angles):\n        \"\"\"Compute Jacobian matrix\"\"\"\n        # Geometric Jacobian method\n        pass\n```\n\n### Inverse Kinematics\n\n```python\nclass InverseKinematics:\n    @staticmethod\n    def analytical_ik_2link(target, L1, L2):\n        \"\"\"2-link planar arm analytical solution\"\"\"\n        x, y = target\n        \n        # Cosine rule\n        cos_theta2 = (x**2 + y**2 - L1**2 - L2**2) \u002F (2 * L1 * L2)\n        cos_theta2 = np.clip(cos_theta2, -1, 1)\n        \n        theta2 = np.arccos(cos_theta2)\n        theta1 = np.arctan2(y, x) - np.arctan2(\n            L2 * np.sin(theta2), \n            L1 + L2 * np.cos(theta2)\n        )\n        \n        return [theta1, theta2]\n    \n    @staticmethod\n    def numerical_ik(forward_fn, target_pose, initial_joints, max_iter=100):\n        \"\"\"Numerical IK using Jacobian pseudo-inverse\"\"\"\n        joints = np.array(initial_joints)\n        \n        for _ in range(max_iter):\n            current_pose = forward_fn(joints)\n            error = target_pose - current_pose\n            \n            if np.linalg.norm(error) \u003C 1e-6:\n                break\n            \n            J = self.jacobian(joints)\n            delta_joints = J.T @ np.linalg.pinv(J @ J.T + 0.01) @ error\n            joints += delta_joints\n        \n        return joints\n```\n\n### Motion Planning\n\n```python\nclass MotionPlanner:\n    @staticmethod\n    def rrt(start, goal, obstacles, max_iter=1000):\n        \"\"\"Rapidly-exploring Random Tree\"\"\"\n        tree = [start]\n        \n        for _ in range(max_iter):\n            # Random sample\n            if np.random.rand() \u003C 0.1:\n                sample = goal\n            else:\n                sample = random_configuration()\n            \n            # Find nearest\n            nearest = tree[np.argmin([dist(n, sample) for n in tree])]\n            \n            # Steer towards sample\n            new = steer(nearest, sample)\n            \n            if not collision(new, obstacles):\n                tree.append(new)\n                \n                if dist(new, goal) \u003C threshold:\n                    return reconstruct_path(tree, start, goal)\n        \n        return None\n    \n    @staticmethod\n    def trajectory_smooth(waypoints, resolution=0.01):\n        \"\"\"Smooth trajectory using splines\"\"\"\n        from scipy.interpolate import splprep, splev\n        \n        tck, u = splprep(waypoints, s=0)\n        smoothed = splev(np.linspace(0, 1, 100), tck)\n        return smoothed\n```\n\n### Robot Controllers\n\n```python\n# PID joint controller\nclass JointController:\n    def __init__(self, kp, ki, kd):\n        self.kp = kp\n        self.ki = ki\n        self.kd = kd\n        self.integral = 0\n        self.prev_error = 0\n    \n    def compute(self, setpoint, measurement, dt):\n        error = setpoint - measurement\n        self.integral += error * dt\n        derivative = (error - self.prev_error) \u002F dt\n        \n        output = self.kp * error + self.ki * self.integral + self.kd * derivative\n        self.prev_error = error\n        \n        return output\n\n# Impedance control\nclass ImpedanceController:\n    def __init__(self, M, B, K):\n        self.M = M  # Mass matrix\n        self.B = B  # Damping\n        self.K = K  # Stiffness\n    \n    def compute_force(self, desired_pos, actual_pos, velocity):\n        # F = M*acc_d + B*(v_d - v) + K*(x_d - x)\n        error = desired_pos - actual_pos\n        force = -self.B @ velocity - self.K @ error\n        return force\n```\n\n### Perception\n\n```python\n# Object detection basics\nclass PerceptionSystem:\n    def __init__(self):\n        self.camera = None\n        self.lidar = None\n        self.depth_sensor = None\n    \n    def point_cloud_to_image(self, points, camera_matrix):\n        \"\"\"Project 3D points to 2D image\"\"\"\n        # Apply camera extrinsics and intrinsics\n        pass\n    \n    def detect_objects(self, point_cloud):\n        \"\"\"Detect objects in point cloud\"\"\"\n        # Use clustering (DBSCAN, Euclidean)\n        # Classify clusters\n        pass\n    \n    def estimate_pose(self, object_points, image_points, camera_matrix):\n        \"\"\"PnP pose estimation\"\"\"\n        # Perspective-n-Points algorithm\n        pass\n```\n\n### ROS Basics\n\n```python\n# ROS 2 Python node\nclass ROS2Node:\n    def __init__(self, node_name):\n        self.node_name = node_name\n        self.pubs = {}\n        self.subs = {}\n    \n    def create_publisher(self, topic, msg_type):\n        \"\"\"Create publisher\"\"\"\n        pass\n    \n    def create_subscription(self, topic, msg_type, callback):\n        \"\"\"Create subscriber\"\"\"\n        pass\n    \n    def spin(self):\n        \"\"\"Process callbacks\"\"\"\n        pass\n```\n\n### Robot Types\n\n| Type | Characteristics | Applications |\n|------|-----------------|--------------|\n| Articulated | Multiple rotating joints | Manufacturing, welding |\n| SCARA | Horizontal articulated | Pick and place |\n| Delta | Parallel mechanism | High speed assembly |\n| Cartesian | Linear axes | CNC, 3D printing |\n| Mobile | Moving base | Delivery, exploration |\n| Humanoid | Bipedal | Research, assistance |\n","## What I do\n\n- Design robot kinematics and dynamics\n- Develop motion planning algorithms\n- Program robot controllers\n- Implement perception and localization\n- Create robot simulation environments\n\n## When to use me\n\n- When designing robotic systems\n- When programming robot movements\n- When implementing perception algorithms\n- When working with robot kinematics\n- When simulating robot behavior\n\n## Key Concepts\n\n### Forward Kinematics\n\n```python\nimport numpy as np\n\nclass RobotArm:\n    def __init__(self, dh_params):\n        \"\"\"DH parameters: [theta, d, a, alpha]\"\"\"\n        self.dh = dh_params\n        self.joints = len(dh_params)\n    \n    def forward_kinematics(self, joint_angles):\n        \"\"\"Calculate end-effector pose from joint angles\"\"\"\n        T = np.eye(4)\n        \n        for i, (theta, d, a, alpha) in enumerate(self.dh):\n            # Update theta with joint angle\n            theta += joint_angles[i]\n            \n            # DH transformation matrix\n            ct = np.cos(theta)\n            st = np.sin(theta)\n            ca = np.cos(alpha)\n            sa = np.sin(alpha)\n            \n            T_i = np.array([\n                [ct, -st*ca, st*sa, a*ct],\n                [st, ct*ca, -ct*sa, a*st],\n                [0, sa, ca, d],\n                [0, 0, 0, 1]\n            ])\n            \n            T = T @ T_i\n        \n        return T\n    \n    def jacobian(self, joint_angles):\n        \"\"\"Compute Jacobian matrix\"\"\"\n        # Geometric Jacobian method\n        pass\n```\n\n### Inverse Kinematics\n\n```python\nclass InverseKinematics:\n    @staticmethod\n    def analytical_ik_2link(target, L1, L2):\n        \"\"\"2-link planar arm analytical solution\"\"\"\n        x, y = target\n        \n        # Cosine rule\n        cos_theta2 = (x**2 + y**2 - L1**2 - L2**2) \u002F (2 * L1 * L2)\n        cos_theta2 = np.clip(cos_theta2, -1, 1)\n        \n        theta2 = np.arccos(cos_theta2)\n        theta1 = np.arctan2(y, x) - np.arctan2(\n            L2 * np.sin(theta2), \n            L1 + L2 * np.cos(theta2)\n        )\n        \n        return [theta1, theta2]\n    \n    @staticmethod\n    def numerical_ik(forward_fn, target_pose, initial_joints, max_iter=100):\n        \"\"\"Numerical IK using Jacobian pseudo-inverse\"\"\"\n        joints = np.array(initial_joints)\n        \n        for _ in range(max_iter):\n            current_pose = forward_fn(joints)\n            error = target_pose - current_pose\n            \n            if np.linalg.norm(error) \u003C 1e-6:\n                break\n            \n            J = self.jacobian(joints)\n            delta_joints = J.T @ np.linalg.pinv(J @ J.T + 0.01) @ error\n            joints += delta_joints\n        \n        return joints\n```\n\n### Motion Planning\n\n```python\nclass MotionPlanner:\n    @staticmethod\n    def rrt(start, goal, obstacles, max_iter=1000):\n        \"\"\"Rapidly-exploring Random Tree\"\"\"\n        tree = [start]\n        \n        for _ in range(max_iter):\n            # Random sample\n            if np.random.rand() \u003C 0.1:\n                sample = goal\n            else:\n                sample = random_configuration()\n            \n            # Find nearest\n            nearest = tree[np.argmin([dist(n, sample) for n in tree])]\n            \n            # Steer towards sample\n            new = steer(nearest, sample)\n            \n            if not collision(new, obstacles):\n                tree.append(new)\n                \n                if dist(new, goal) \u003C threshold:\n                    return reconstruct_path(tree, start, goal)\n        \n        return None\n    \n    @staticmethod\n    def trajectory_smooth(waypoints, resolution=0.01):\n        \"\"\"Smooth trajectory using splines\"\"\"\n        from scipy.interpolate import splprep, splev\n        \n        tck, u = splprep(waypoints, s=0)\n        smoothed = splev(np.linspace(0, 1, 100), tck)\n        return smoothed\n```\n\n### Robot Controllers\n\n```python\n# PID joint controller\nclass JointController:\n    def __init__(self, kp, ki, kd):\n        self.kp = kp\n        self.ki = ki\n        self.kd = kd\n        self.integral = 0\n        self.prev_error = 0\n    \n    def compute(self, setpoint, measurement, dt):\n        error = setpoint - measurement\n        self.integral += error * dt\n        derivative = (error - self.prev_error) \u002F dt\n        \n        output = self.kp * error + self.ki * self.integral + self.kd * derivative\n        self.prev_error = error\n        \n        return output\n\n# Impedance control\nclass ImpedanceController:\n    def __init__(self, M, B, K):\n        self.M = M  # Mass matrix\n        self.B = B  # Damping\n        self.K = K  # Stiffness\n    \n    def compute_force(self, desired_pos, actual_pos, velocity):\n        # F = M*acc_d + B*(v_d - v) + K*(x_d - x)\n        error = desired_pos - actual_pos\n        force = -self.B @ velocity - self.K @ error\n        return force\n```\n\n### Perception\n\n```python\n# Object detection basics\nclass PerceptionSystem:\n    def __init__(self):\n        self.camera = None\n        self.lidar = None\n        self.depth_sensor = None\n    \n    def point_cloud_to_image(self, points, camera_matrix):\n        \"\"\"Project 3D points to 2D image\"\"\"\n        # Apply camera extrinsics and intrinsics\n        pass\n    \n    def detect_objects(self, point_cloud):\n        \"\"\"Detect objects in point cloud\"\"\"\n        # Use clustering (DBSCAN, Euclidean)\n        # Classify clusters\n        pass\n    \n    def estimate_pose(self, object_points, image_points, camera_matrix):\n        \"\"\"PnP pose estimation\"\"\"\n        # Perspective-n-Points algorithm\n        pass\n```\n\n### ROS Basics\n\n```python\n# ROS 2 Python node\nclass ROS2Node:\n    def __init__(self, node_name):\n        self.node_name = node_name\n        self.pubs = {}\n        self.subs = {}\n    \n    def create_publisher(self, topic, msg_type):\n        \"\"\"Create publisher\"\"\"\n        pass\n    \n    def create_subscription(self, topic, msg_type, callback):\n        \"\"\"Create subscriber\"\"\"\n        pass\n    \n    def spin(self):\n        \"\"\"Process callbacks\"\"\"\n        pass\n```\n\n### Robot Types\n\n| Type | Characteristics | Applications |\n|------|-----------------|--------------|\n| Articulated | Multiple rotating joints | Manufacturing, welding |\n| SCARA | Horizontal articulated | Pick and place |\n| Delta | Parallel mechanism | High speed assembly |\n| Cartesian | Linear axes | CNC, 3D printing |\n| Mobile | Moving base | Delivery, exploration |\n| Humanoid | Bipedal | Research, assistance |\n",{"name":5,"license":14,"metadata":27,"description":7,"compatibility":21},{"audience":28,"category":19},"engineers, programmers, students","main","5f7a3e453c98261f93d19a6a7de44ad8f7b72d41",2,"https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk","2026-03-01 06:55:40",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill robotics",{"tool":41,"command":42},"bunx","bunx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill robotics",{"tool":44,"command":45},"pnpm","pnpm dlx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill robotics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Frobotics\u002FSKILL.md",true,[],[50,61,71,80,90,99],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":22},"01M6CXT9TXDF79BWJTMQAPB49G","xamarin","Xamarin cross-platform development","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fxamarin\u002FSKILL.md",[],[52,57,58,59,21,60],"platform","cross-platform","mobile","development",{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":22},"01M6CXT8AD04MFYDA32VW3FKAG","wrangling","Data wrangling fundamentals","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwrangling\u002FSKILL.md",[],[63,68,21,69,70],"data wrangling","science","data",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":22},"01M6CXT717GCN7SRRNPBDP4508","windows","Windows operating system administration and scripting","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwindows\u002FSKILL.md",[],[73,78,21,79],"system","scripting",{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":22},"01M6CXT54K794NMEM3XAPZZDKT","wide-column","Wide-column data model","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column\u002FSKILL.md",[],[87,88,21,89,70],"wide column","databases","model",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":22},"01M6CXT28FMT2P4V9GZE67WA8E","wide-column-stores","Wide-column database stores","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column-stores\u002FSKILL.md",[],[97,88,21,98],"wide column stores","database",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":22},"01M6CXT0D0M0Q4T2N7C2RX7DSN","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwebsockets\u002FSKILL.md",[],[101,106,107,108,21,109,110],"websocket","real-time","time","best practices","implementation"]