File size: 5,496 Bytes
2b27eab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2b2bc15
2b27eab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
---
language:
  - en
license: other
library_name: pytorch
tags:
  - robotics
  - robot-manipulation
  - robot-control
  - reinforcement-learning
  - embodied-ai
  - robot-learning
  - policy-learning
  - franka-panda
  - panda-robot
  - pybullet
  - robotics-simulation
  - simulation
  - pytorch
  - deep-learning
  - artificial-intelligence
  - machine-learning
  - autonomous-robots
  - manipulation
  - control
  - research
---

# LiberalMind Panda Policy

### Learning to control a robot through artificial intelligence.

**LiberalMind** is an AI research project exploring autonomous robotic control and embodied intelligence.

This repository contains the trained `best.pt` checkpoint for our Panda robot policy, intended for experimentation and evaluation in robotic simulation environments.

Our goal is to bridge the gap between neural network intelligence and physical interaction with the world.

---

## Project Overview

| Component | Details |
|---|---|
| Organization | LiberalMind |
| Robot | Franka Emika Panda |
| Model format | PyTorch `.pt` |
| Checkpoint | `best.pt` |
| Simulation | PyBullet |
| Research area | Embodied AI / Robotics |
| Project status | Research |

## The Robot

The target platform is the **Franka Emika Panda**, a 7-DoF robotic manipulator with a parallel gripper.

The simulation provides an environment for testing robot movements, control policies, and autonomous manipulation.

## Repository Structure

```text
panda-policy/
│
├── README.md
└── best.pt
```

## Quick Start

### 1. Install dependencies

We recommend Python 3.10 or newer.

```bash
python -m venv .venv
source .venv/bin/activate

pip install torch huggingface_hub pybullet
```

### 2. Download the checkpoint

For private repositories, first authenticate with Hugging Face:

```bash
hf auth login
```

Then download the trained weights:

```python
from huggingface_hub import hf_hub_download

checkpoint_path = hf_hub_download(
    repo_id="LiberalMind/robot-policy",
    filename="best.pt",
    token=True
)

print("Checkpoint downloaded:", checkpoint_path)
```

### 3. Load the model checkpoint

```python
import torch

checkpoint = torch.load(
    checkpoint_path,
    map_location="cpu",
    weights_only=False
)

print("Checkpoint loaded successfully.")

if isinstance(checkpoint, dict):
    print("Available keys:", list(checkpoint.keys()))
```

**Note:** The checkpoint is a set of learned weights. To execute the trained policy, the original model architecture, observation preprocessing, and action mapping from the training code must also be available.

### 4. Launch the Panda simulation

The following script launches a Franka Panda robot in PyBullet.

```python
import pybullet as p
import pybullet_data
import time

# Initialize physics
physics_client = p.connect(p.GUI)

p.setAdditionalSearchPath(
    pybullet_data.getDataPath()
)

p.setGravity(0, 0, -9.81)
p.setTimeStep(1 / 240)

# Ground
p.loadURDF("plane.urdf")

# Franka Panda
robot = p.loadURDF(
    "franka_panda/panda.urdf",
    [0, 0, 0],
    useFixedBase=True
)

# Camera
p.resetDebugVisualizerCamera(
    cameraDistance=1.5,
    cameraYaw=45,
    cameraPitch=-30,
    cameraTargetPosition=[0, 0, 0.5]
)

# Default arm pose
joint_indices = list(range(7))

home_positions = [
    0.0,
    -0.215,
    0.0,
    -2.57,
    0.0,
    2.356,
    2.753
]

p.setJointMotorControlArray(
    robot,
    joint_indices,
    p.POSITION_CONTROL,
    targetPositions=home_positions,
    forces=[87] * 7
)

print("LiberalMind Panda simulation started.")

while p.isConnected():
    p.stepSimulation()
    time.sleep(1 / 240)
```

This is a simulation smoke test using a predefined joint pose, not a trained-policy rollout.

---

## Policy Integration

A complete autonomous rollout requires the following pipeline:

```text
         Simulation Environment
                  |
                  v
             Observation
                  |
                  v
          Neural Network Policy
                  |
                  v
           Action Prediction
                  |
                  v
          Robot Joint Control
                  |
                  v
           Physics Simulation
                  |
                  v
             Next State
                  |
                  +----------+
                             |
                        Repeat
```

The policy must use the exact observation format, normalization, output dimensions, and control conventions used during training.

## Research Roadmap

- [x] Train and save a model checkpoint
- [x] Publish model weights on Hugging Face
- [ ] Reconstruct the policy architecture
- [ ] Connect the policy to the Panda simulator
- [ ] Evaluate autonomous manipulation
- [ ] Test generalization across environments
- [ ] Explore transfer from simulation to real robotic hardware

## About LiberalMind

**LiberalMind** is an independent AI research initiative focused on developing intelligent models and exploring the next generation of autonomous systems.

We are interested in the intersection of:

- Artificial Intelligence
- Embodied Intelligence
- Robotics
- Autonomous Agents
- Reinforcement Learning
- Real-World AI Applications

Our long-term vision is to develop AI systems capable of reasoning, learning, and interacting with the physical world.

---

**Organization:** LiberalMind

**Model:** `LiberalMind/panda-policy`

**Framework:** PyTorch

**Repository:** Hugging Face

*Building intelligence beyond the screen.*