Skip to content
Back to skills

Development

ASecurity

You can find the MoveLegsSkill example code on our [GitHub](https://github.com/vincross/mind-sdk/blob/master/examples/MoveLegsSkill/robot/src/movelegsskill.go). Here are some annotated notes about the implementation and reference to help you build your own Skills. ```go func ready() { hexabody.Stand() hexabody.MoveHead(0.0, FAST_DURATION) // Using goroutines to make some commands be executed at the same time go hexabody.MoveLeg(2, hexabody.NewLegPosition().SetCoordinates(-100, 50.0, 70.0), SL...

  • 5 stars
  • 0 votes
  • 0 copies
  • 16 views
  • Added February 7, 2026
developmentgogitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add Vincross/mind-documentation --skill Development --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Development?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Development
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vincross-development/badge)](https://www.skillsdirectory.com/skills/vincross-development)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# MoveLegsSkill

You can find the MoveLegsSkill example code on our [GitHub](https://github.com/vincross/mind-sdk/blob/master/examples/MoveLegsSkill/robot/src/movelegsskill.go). Here are some annotated notes about the implementation and reference to help you build your own Skills.

# ready\(\) function

```go
func ready() {
	hexabody.Stand()
	hexabody.MoveHead(0.0, FAST_DURATION)
	// Using goroutines to make some commands be executed at the same time
	go hexabody.MoveLeg(2, hexabody.NewLegPosition().SetCoordinates(-100, 50.0, 70.0), SLOW_DURATION)
	hexabody.MoveLeg(5, hexabody.NewLegPosition().SetCoordinates(100, 50.0, 70.0), SLOW_DURATION)
	go hexabody.MoveJoint(0, 1, 90, SLOW_DURATION)
	hexabody.MoveJoint(0, 2, 45, SLOW_DURATION)
	go hexabody.MoveJoint(1, 1, 90, FAST_DURATION)
	hexabody.MoveJoint(1, 2, 45, FAST_DURATION)
}
```

This `ready()` function tells HEXA to stand, move its head to the default position, and move its legs into a starting position.

```go
go hexabody.MoveLeg(2, hexabody.NewLegPosition().SetCoordinates(-100, 50.0, 70.0), SLOW_DURATION)
hexabody.MoveLeg(5, hexabody.NewLegPosition().SetCoordinates(100, 50.0, 70.0), SLOW_DURATION)
```

Let's go through these lines more in detail. From the API Reference, we see that the format for `MoveLeg` is:

```
func MoveLeg(legNumber int, legPosition *LegPosition, duration int) error
```

So the first argument refers to the leg number. We can tell from the diagram on the [Hardware](/Introduction/hardware.md) page that legs 2 and 5 refer to the left and right legs. Now that we know what legs to move, we tell HEXA to create a new leg position using the coordinates provided. You can find more information about how coordinates are set up on the [Hardware](/Introduction/hardware.md) page as well. 

Next, we need to move the joints in the front two legs to a default position for stability. 

```go
go hexabody.MoveJoint(0, 1, 90, SLOW_DURATION)
hexabody.MoveJoint(0, 2, 45, SLOW_DURATION)
go hexabody.MoveJoint(1, 1, 90, FAST_DURATION)
hexabody.MoveJoint(1, 2, 45, FAST_DURATION)
```

The `MoveJoint` format looks like this:

```go
func MoveJoint(legNumber, jointNumber int, degree float64, duration int) error
```

So that means we are going to move _legs 0 and 1_, and _joints 1 and 2_ of those legs to 90 and 45 degrees, respectively. You can see an example of the joints and their range of motion on the [Hardware](/Introduction/hardware.md) page. 

Files in this skill

  • developerbridge.md2.4 KB
  • diyyourhexa.md931 B
  • exampleskills.md1.3 KB
  • extendingsdk.md431 B
  • hexasim.md4.1 KB
  • installmind.md471 B
  • macandlinux.md2.7 KB
  • movelegsskill.md2.4 KB
  • opencv.md4.4 KB
  • sensorwalktutorial.md7.7 KB
  • windows.md2 KB
  • windowshyperv.md1.9 KB
  • yourfirstskill.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.