yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
myCobot 320 Arm📖
1.Product Feature
  • 1.Functional Parameters
  • 2.Controller Parameters
  • 3.Structural Parameters
  • 4.Electronic Parameters
  • 5.Coordinate System
  • 6.Introduction of Adaptive Gripper
  • 7.Introduction of force-controlled gripper
2.Common Problem
  • 1.how to ask
  • 2.driver
  • 3.software
  • 4.hardware
3.First Install and Use
  • 1.Product Standard List
  • 2.Product Unboxing Guide
  • 3.Power-on Test Guide
4.Basic Application
1. miniRoboFLow
  • 1. miniRoboFLow
  • 2. Drag & Play
  • 3. Joint Calibration
  • 4. Computer Connect
  • 5. Robot Information
2.1 myblockly
  • 1. What is myBlockly
  • 2. Preparations before using myBlockly
  • 3. myBlockly download and install
  • 4. myBlockly interface display and use of basic functions
  • 5. Control RGB light panel
  • 6. Control the robotic arm to return to the origin
  • 7. Control single joint movement
  • 8. Control multiple joints
  • 9. Use of adaptive grippers
  • 10. Use of force-controlled grippers
  • 11. Q&A
  • 12. API
3. Firmware Description
  • 1.Firmware Description
  • 2.Burn Firmware
2.2 myStudio
  • 1. myStudio
  • 2. myStudio environment setup
  • 3. Install driver
  • 4. Burn and update firmware
5.Mobile APP control
  • Mobile APP control
6.SDK Development
1.Development Environment Construction
  • 1.Development Environment Construction
2.Python
  • 1.What is Python
  • 2.Environment Building
  • 3.Python API usage instaructions
  • 4.TCP IP
  • 5.Drag to teach
  • 6.Use Cases
  • 7.Use of adaptive grippers
  • 8.Use of force-controlled grippers
3.ROS1
  • 1.ROS
  • 2.Environment Building
  • 3.ROS basics
  • 4.Rviz use
  • 5.Basic function case
  • 6.Use of adaptive grippers
  • 7.Use of force-controlled grippers
4.ROS2
  • 1.ROS2 introduction
  • 2.Environment Building
  • 3.ROS2 basics
  • 4.Rviz2 use
  • 5.Basic function case
5.C Sharp(C#)
  • 1.C#
  • 2.Environmental construction
  • 3.Mechanical control
  • 4.myCobot API
  • 5.Use Cases
  • 6.Use of adaptive grippers
6.c plus plus (C++)
  • 1.C++
  • 2.CPlus Download
  • 3.build
  • 4.API
  • 5.example
7.Arduino
  • 1.Arduino
  • 2.Arduino Download
  • 3.API
  • 4.example
  • 5.Use of adaptive grippers
8.Serial communication
  • 1.Serial communication
  • 2.Use of force-controlled grippers
7.Documents Download
  • 1.Product Brochure
  • 2.Software and Source Code
  • 3.System lnformation
Download
  • 3D_Model_File
  • Android Mobile APP
  • Manual
Download ZIP

Welcome to myCobot 320 Arm repository

2.Environment Building

Install different versions of ubuntu system in Linux

1 Virtual machine installation

Go to Official website to download the virtual machine Virtual Box or go to Official website to download the virtual machine VMware.

Of course, if you already have your virtual machine, you may skip this step.

We chose to download the Virtual box because it is free.

img

img

There are two options for virtual machine creation:

  • ① Using our configured virtual machine ROS1 virtual machine files, imported into the virtual machine software, you can save the time to configure the environment, easy to quickly use the ROS case.

    • ROS1 VM files: http://download-elephantrobotics.oss-cn-shenzhen.aliyuncs.com/system_images/ubuntu20.04_ROS1_V20230731.ova.zip

    • Step-by-step video on how to import VM files into VM software: https://drive.google.com/file/d/1KeYk_CUgDE46rVn7zbd0EhraIbgt3qZt/view?usp=sharing

  • ② Follow the steps below to deploy the ROS environment yourself.

2 Creating a virtual machine

2.1 Creating a virtual machine

Select Create in control

  • Input the name of the virtual machine and the location where it is stored, select the type of virtual machine as Linux, select the ubuntu64-bit version, and go to the next step.

img

  • Configure a memory size according to your own needs, and then go to the next step.

img

  • Choose Create a virtual hard disk now to create it.

img

  • Select the virtual hard disk type as VDI type, and go to the next step.

img

  • Allocate the size of the virtual hard disk. Since an ubuntu system needs to be installed, and the operation will be performed in the system, it is recommended that the size should not be less than 20G.

img

img

2.2 Import ubuntu system

2.2.1 Downloading the ubuntu system

Select the ubuntu version according to your own needs and install it:

  • Version 16.04

  • Version 18.04

  • Version 20.04

The installation method and process of the three versions are the same. Here, we take the version 18.04 version for an example.

img

After the downloading is complete, there will be a file shown in the figure:

img

2.2.2 Importing ubuntu into a visual machine

Find the previously installed virtual machine in the Virtual box, enter Setup, and assign a CD to the controller in Storage:

img

img

img

Then open the virtual machine for ubuntu installation, and click start.

2.2.3 Installing ubuntu

  • Wait for the system to start, enter a welcome interface, select "Chinese (Simplified)", and click the "Install Ubuntu" button;

img

  • Click “Continue” button;

img

  • Select the "Clear entire disk and install Ubuntu" option, and click the "Install Now" button;

img

  • Click the "Continue" button in the pop-up dialog box;

img

  • Set a geographic position and click the “Continue” button;

img

  • Set a user name and password, and click the “Continue” button;

img

  • Enter the system installation interface, and wait patiently;

img

  • After installation is complete, click the "Restart now" button in the pop-up dialog box to complete the installation.

img

3 ROS Environment building

3.1 Installing ROS

Building a basic development environment requires the installation of the robot operating system (short for ROS), MoveIt and a git version manager. The installation methods and procedures are described respectively below.

3.1.1 Selecting a version

There is a one-to-one relationship between ROS and ubuntu. Different versions of ubuntu correspond to different versions of ROS. The reference website is as follows: http://wiki.ros.org/Distributions

  • Here are the ROS versions supported by Ubuntu:

    • Ubuntu 16.04 / ROS Kinetic

    • Ubuntu 18.04 / ROS Melodic

    • Ubuntu 20.04 / ROS Noetic

Install the ROS version corresponding to the Ubuntu version you have installed.

If the versions are different, the downloading will fail. The system we choose here is Ubuntu 18.04, so the corresponding ROS version is ROS Melodic.

NOTE: At present, we do not provide any reference for installing ROS in windows. If necessary, refer to https://www.ros.org/install/

3.1.2 Start installation

1 Adding a software source

There is no ROS software source in the software source list of Ubuntu itself, so you need to Configure the ROS software source into the software list repository first, and then download ROS. Open a console terminal (shortcut key: Ctrl+Alt+T) and input the following command:

  • official source:

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
  • If the download speed is slow, it is recommended to select a nearby mirror source to replace the above command. For example, Tsinghua University is:

xxxxxxxxxx
sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'

Here you will be asked to input a user password. Just input the user password set when Ubuntu is installed.

2 Setting a key

Configuring a public key. This step is to let the system confirm that our path is safe, so that there is no problem in downloading the file. Otherwise it will be deleted immediately after downloading:

xxxxxxxxxx
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

The execution result is displayed as follows:

img

3 Installation

After adding a new software source, you need to update the software source list. Open a console terminal (shortcut key: ++) and input the following command:CtrlAltT

xxxxxxxxxx
sudo apt-get update

Execute Installing ROS. Open a console terminal (shortcut key: ++) and input the following command according to your Ubuntu version:CtrlAltT

xxxxxxxxxx
# Ubuntu 16.04
sudo apt install ros-kinetic-desktop-full
# Ubuntu 18.04
sudo apt install ros-melodic-desktop-full
# Ubuntu 20.04
sudo apt install ros-noetic-desktop-full

It is recommended to install the complete ROS here to prevent the lack of libraries and dependencies.

The installation process takes a long time, so please wait with patience.

  • If the following error message appears on the console terminal during the installation process, you need to replace the software source list in /etc/apt/sources.list.

img

  • Open a console terminal (shortcut key:++),enter the following command:CtrlAltT

xxxxxxxxxx
sudo gedit /etc/apt/sources.list
  • 将sources.list中的官方软件源全部替换成下面的阿里云软件源:

Ubuntu 16.04 version:

​x
deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main

deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main

deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates universe

deb http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security universe

Ubuntu 18.04 version:

xxxxxxxxxx
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

Ubuntu 20.04 version:

xxxxxxxxxx
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

-After the configuration is complete, the contents of the sources.list file are as follows, click Save and Exit.

img

  • To update the list of software sources, enter in the console terminal:

xxxxxxxxxx
sudo apt-get update
  • Enter the instructions to install ROS in the console terminal:

xxxxxxxxxx
# Ubuntu 16.04
sudo apt install ros-kinetic-desktop-full
# Ubuntu 18.04
sudo apt install ros-melodic-desktop-full
# Ubuntu 20.04
sudo apt install ros-noetic-desktop-full

The installation process takes a long time, so please wait with patience.

4 Configuring the ROS environment to the system

rosdep allows you to easily install the source codes you want to compile, or the system dependencies required by some ROS core components. Execute the following commands in sequence in the terminal, and open a console terminal (shortcut key: ++).CtrlAltT

If your system does not have rosdep installed, use the command to install it.sudo apt install python-rosdep

If the system of the Ubuntu installed by you is version 20.04, use the command to it install. After completion, execute the rosdep initialization command.sudo apt install python3-rosdep

img

initialize rosdep:

xxxxxxxxxx
sudo rosdep init

If the following error message appears:

img

Solution: Modify the hosts file and enter the following command in the console terminal:

xxxxxxxxxx
sudo gedit /etc/hosts

At the end of the file content, add the IP addresses of the following two URLs to access:

xxxxxxxxxx
199.232.28.133 raw.githubusercontent.com
151.101.228.133 raw.github.com

img

After the modification is complete, execute in the console terminal:

xxxxxxxxxx
sudo rosdep init
rosdep update

After the initialization is completed, in order to avoid re-validating the ROS function path every time the terminal window is closed, we can set the path to an environment variable, so that each time you open a new terminal, the ROS function path will automatically take effect. Execute the following commands in sequence in the terminal, and open a console terminal (shortcut key: ++):CtrlAltT

3.1.3 Set up the ros environment

1 Bash

Execute the following commands:

xxxxxxxxxx
# Ubuntu 16.04
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
# Ubuntu 18.04
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
# Ubuntu 20.04
echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
2 Install dependencies

Input the following command in the terminal to install a ROS extra dependency, and open a console terminal (shortcut key: ++):CtrlAltT

xxxxxxxxxx
sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential

If your Unbutu system is version 20.04, please execute the following command to install:

xxxxxxxxxx
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
# Ubuntu 16.04
sudo apt install ros-kinetic-joint-state-publisher-gui
# Ubuntu 18.04 
sudo apt install ros-melodic-joint-state-publisher-gui
# Ubuntu 20.04 
sudo apt install ros-noetic-joint-state-publisher-gui

3.1.4 Verify installation

The startup of the ROS system requires a ROS Master, that is, a node manager. We can input the roscore command in the terminal to start the ROS Master.

To verify whether ROS has been installed successfully, open a console terminal (shortcut key: ++) and execute the following command in the terminal:CtrlAltT

xxxxxxxxxx
roscore

When the following interface is displayed, it means that ROS has been installed successfully.

img

The roscore command starts a node manager, which is used for node management. In a ros system, there is and only one node manager, which is the prerequisite for the operation of the ros node, so before executing the start of the ros node, roscore needs to be executed in the first step.

For more detailed installation instructions, you can refer to the official installation instructions by visiting the website:: http://wiki.ros.org/ROS/Installation

3.2 MoveIt Installation

MoveIt is the composition of a series of function packages for movement operations in ros, mainly including motion planning, collision detection, kinematics, 3D perception, operation control and other functions.

1 Updating the software source list

Open a console terminal (shortcut key: ++) and input the following command on the terminal window to update the software source list:CtrlAltT

xxxxxxxxxx
sudo apt-get update

2 Installing MoveIt

Open a console terminal (shortcut key: ++) and input the following command on the terminal window to execute the installation of MoveIt:CtrlAltT

xxxxxxxxxx
# Ubuntu16.04
sudo apt-get install ros-kinetic-moveit
# Ubuntu 18.04
sudo apt-get install ros-melodic-moveit
# Ubuntu20.04
sudo apt-get install ros-noetic-moveit

3.3 Git Installation

1Adding a software source

Add the software source for installing git to the software source list of ubuntu, open a console terminal (shortcut key: ++) and input the following command on the terminal window:CtrlAltT

xxxxxxxxxx
sudo add-apt-repository ppa:git-core/ppa

2 Updating the software source list

Open a console terminal (shortcut key: ++) and input the following command on the terminal window to update the software source list:CtrlAltT

xxxxxxxxxx
sudo apt-get update

3 Installing git

Open a console terminal (shortcut key: ++) and input the following command on the terminal window to execute the installation of git:CtrlAltT

xxxxxxxxxx
sudo apt-get install git

4 Verify installation

Read the git version, open a console terminal (shortcut key: ++) and input the following command on the terminal window:CtrlAltT

xxxxxxxxxx
git --version

The git version number can be displayed in the terminal as follows, that is, the installation is successful.

img

5 Use

During the subsequent downloading of the ros package, you need to use git. For the use of git, refer to the following link:

  • https://git-scm.com/book/zh/v2

  • https://www.runoob.com/git/git-tutorial.html

4.4 mycobot_ros Installation

mycobot_ros is a ROS package launched by Elephant Robotics and applicable to its mycobot series of desktop six-axis robot arms.

Project address: http://github.com/elephantrobotics/mycobot_ros

1 Precondition

Before installing the package, make sure you have a ros workspace.

Here is an example command for creating a workspace. Open a console terminal (shortcut key: ++) and input the following command in the command line:CtrlAltT

xxxxxxxxxx
mkdir -p ~/catkin_ws/src  # Create a folder
cd ~/catkin_ws/src        # Enter the folder
catkin_init_workspace     # Initialize the current directory into a ROS workspace
cd ..                     # Return to the parent directory
catkin_make               # Build the code in the workspace

Add workspace environment

The official default ROS1 workspace is .catkin_ws

xxxxxxxxxx
# Ubuntu 16.04
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
# Ubuntu 18.04
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
# Ubuntu 20.04
echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

2 Installing the package

NOTE:

  • This package depends on ROS and MoveIT. Before using it, make sure that you have installed ROS and MoveIT successfully.

  • The interaction of this package with a real robot arm depends on PythonApi - .pymycobot

  • The Api project location is: https://github.com/elephantrobotics/pymycobot

  • Quick installation: pip install pymycobot --upgrade

    When executing the pip install pymycobot --upgrade command, if the following error message appears:

    img

    Enter the following command to install pip at the prompt

    xxxxxxxxxx
    sudo apt install python-pip
  • If your Ubuntu system is version 20.04, please execute the command to install pipsudo apt install python3-pip

    After the pip installation is complete, the terminal executes again

    xxxxxxxxxx
    pip install pymycobot --upgrade
  • The installation method depends on Git, so make sure that Git have been installed in your computer.

The official default ROS1 workspace is .catkin_ws

xxxxxxxxxx
cd ~/catkin_ws/src  # Enter the src folder of the workspace
# Clone the code on github
git clone https://github.com/elephantrobotics/mycobot_ros.git
cd ..       # return to the workspace
catkin_make # Build the code in the workspace
source devel/setup.bash # add environment variables

So far, the ROS1 environment construction has been completed.You can learn the basics of ROS or ROS use cases

ROS
ROS basics

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文