SkillAgentSearch skills...

Oslsim

A ROS package that provides the necessary interfaces to simulate the Open-source leg (OSL) proposed by the Neurobionics Lab at UMich

Install / Use

/learn @senthurayyappan/Oslsim
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

oslsim

OSL ROS License

<img src="./oslsim_banner.gif" width="840">

A ROS package that provides the necessary interfaces to simulate the Open-source leg (OSL) proposed by the Neurobionics Lab at the University of Michigan to unify the research field of prosthetic leg controls. OSL is a robust and relatively inexpensive system that can be easily manufactured, assembled, and controlled. OSL is licensed under a Creative Commons Attribution 3.0 Unported License. To know more, visit https://opensourceleg.com

Getting Started

<img src="./oslsim.jpg" width="840">

This package requires an installation of ROS and Gazebo.

$ sudo apt-get install ros-<ros-distro>-desktop-full
$ sudo apt-get install ros-<ros-distro>-ros-control
$ sudo apt-get install ros-melodic-effort-controllers

Preferred <ros-distro>: melodic. If you are new to ROS, read more about Configuring your ROS environment.

Build the package along with Gazebo ROS motor plugins in your catkin workspace.

$ cd <catkin-workspace>/src
$ git clone https://github.com/nilseuropa/gazebo_ros_motors
$ git clone https://github.com/homebrew-bionics/oslsim.git
$ cd ../
$ catkin_make
$ source devel/setup.bash

Sensors

<img src="./oslsim_imu.gif" width="840">

The Open-source Leg (OSL) model depicted in this package comprises

  • 2 Inertial Measurement Units (IMU)
  • 2 Actuators (with Rotary encoders, Motor Joint states, Current, and Voltage data)
  • a Load cell
<img src="./motors.gif" width="840">

Configuration

Actuator parameters are loaded from yaml files (osl_knee.yaml and osl_ankle.yaml). They can also be set through dynamic reconfiguration server,

$ rqt

>> Plugins >> Configuration >> Dynamic reconfigure
<img src="./dyn_reconf.gif" width="840">

Topics

<img src="./topics.png" width="840">

Load cells

osl_foot has a bumper plugin that acts as a load cell. The plugin publishes

  • Force (fx, fy, fz)
  • Torque (Tx, Ty, Tz)
  • Contact positions
  • Contact normals
<img src="./oslsim_loadcell.gif" width="840">

A python script is included within this package that subscribes to the above sensor data and publishes the required ones to any desired ROS topic.

Run

<p align="center"> <img src="./rosgraph.png" width="600" class="center"> </p>

To launch the simulation:

$ roslaunch oslsim main.launch control:=true
<img src="./oslsim_walk.gif" width="840">

The oslsim_controller node contains an example PID controller that publishes joint commands to the respective motors (osl_knee and osl_ankle).

<img src="./oslsim_pid.gif" width="840">

Issues and Feature requests

Please report bugs or request features here.

View on GitHub
GitHub Stars18
CategoryDevelopment
Updated3mo ago
Forks6

Languages

Python

Security Score

92/100

Audited on Dec 24, 2025

No findings