Coder Social home page Coder Social logo

dylanwishner / robomaster_ros-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jukindle/robomaster_ros

0.0 0.0 0.0 1.48 MB

ROS1 driver for the Robomaster S1 and Robomaster EP through the official SDK.

License: Apache License 2.0

Python 95.16% CMake 4.84%

robomaster_ros-1's Introduction

robomaster_ros

ROS1 driver for the Robomaster S1 and Robomaster EP through the official SDK. This driver was developed on ROS Noetic.

robomaster_ros_demo.mp4

Preparation

Robomaster EP

Connect the robot to the same WiFi as your PC. As far as I know, the SDK should be enabled by default.

Robomaster S1

On the S1, you need to have the device rooted. This is a fairly simple process for which you can find the tutorial on this Reddit post. Just follow the instructions in the README file in the provided folder.

Installation

Install the robomaster python sdk by

pip3 install robomaster

Install catkin tools by executing

sudo apt install python3-catkin-tools

Then, create a catkin workspace and clone this repo into it, together with its dependency catkin_simple

mkdir catkin_ws && cd catkin_ws && mkdir src
catkin init
git clone https://github.com/catkin/catkin_simple.git src/catkin_simple
git clone https://github.com/jukindle/robomaster_ros.git src/robomaster_ros

Then, install the ROS dependencies by

rosdep install --from-paths src --ignore-src -r -y

Finally, build the workspace

catkin build
source devel/setup.bash

Usage

As soon as the robot and the PC are connected to the same WiFi, you should be able to run the driver by

roslaunch robomaster_driver robomaster_driver.launch

In a second terminal, you can launch the teleoperation and visualizazion

roslaunch robomaster_driver teleop.launch

This will allow you to control the robot with an attached XBOX controller and see the state in rviz (together with the camera image!). Hold LB and control the linear velocities with the left and the angular velocity with the right stick.

robomaster_ros-1's People

Contributors

jukindle 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.