Giter VIP home page Giter VIP logo

cybergear_m5_ros2's Introduction

cybergear_m5_ros2

ROS2 package for Xiaomi Cybergear.

Warning

Xiaomi Cybergear can generate high torque, so please make control parameter adjustments at your own risk.

Dev Environments

  • Host OS

    • ubuntu 20.04
  • Applciations

    • Docker : docker-ce 24.0.6
    • Container OS : Ubuntu 22.04
    • Middleware : ROS2 (humble)

How to build dev-environments

Create dev-environment on docker using follow commands. docker compose up command launch terminator (blue color) that develop with ros2 humble. This docker container contains ros2-humble and necessary software to launch samples.

cd docker

# please check and modify follow env vairables at this script.
# WORKSPACE_DIR ... mount diretory
# SERIAL_DEVICE ... serial device name
bash generate_env.bash

# build docker container
docker compose build

# launch container
docker compose up

Build from source

source /opt/ros/humble/setup.bash

# make ros2 workspace
export COLCON_WS=~/ws
mkdir -p $COLCON_WS/src

# clone cybergear_m5 source
cd $COLCON_WS/src
git clone [email protected]:project-sternbergia/cybergear_m5_ros2.git
cd ../

# build ros2 package
colcon build

Prepare M5 stack

Before launch sample, please write cybergear_m5_bridge.ino to m5 stack. Please refer cyberger_m5 repository.

How to run sample bridge node

rviz2 samples (joint_state_publisher_gui samples)

Please test simple sample code.

cd $COLCON_WS
source install/setup.bash

# 1dof cybergear position control sample
# you control cybergear via joint_state_publisher_gui
# cybergear can id : 0x7F
ros2 launch cybergear_m5_bringup 1dof_position_sample.launch.xml

# 2dof cybergear position control sample
# you control cybergear via joint_state_publisher_gui
# cybergear_1 can id : 0x7F
# cybergear_2 can id : 0x7E
ros2 launch cybergear_m5_bringup 2dof_position_sample.launch.xml

If you want to change control parameter, please check config file at cybergear_m5_description/config directory.

2dof_position_sample.launch.xml

cybergear_ros2_bridge_example

LICENSE

  • MIT

References

cybergear_m5_ros2's People

Contributors

chikuta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.