Control of the robotic arm

1 Enable TCP server function

1.1 Log in to RoboFlow operating system

After the robot is powered on, use VNC Viewer to enter the Raspberry Pi and log in to the RoboFlow operating system.

1.2 Start the robot

Enter the configuration center and click the Start Robot button



1.3 Check whether the TCP server is open

Return to the main menu, click Write Program, and then click the blank program. After entering the program editing interface, click the Configuration button, click the Network/Serial Port option, and check whether the TCP server is turned on. Normally, TCP server is turned on by default , if it is not turned on, you need to turn it on manually and set the IP address manually, such as setting it to 192.168.1.159.




2 Slider control

Note: TCP communication needs to ensure that the local virtual machine computer and the MyCobot Pro630 system use the same network and the same network segment.

Open a console terminal and run the command:

roslaunch mycobot_630 mycobot_630_slider.launch

It will open rviz and a slider component, and you will see something like this:

You can then control the movement of the model in rviz by dragging the slider. If you want the real MyCobot Pr630 to move along with it, you need to open another console terminal and run the command:

# The default Socket IP address of MyCobot Pro 630 is 192.168.1.159 and the port number is 5001. If it is inconsistent, it can be modified according to the actual IP address.
rosrun mycobot_630 mycobot_630_slider.py _ip:=192.168.1.159 _port:=5001

Please note: Since the robot arm will move to the current position of the model when the command is entered, please make sure that the model in rviz does not have mold penetration before you use the command. Do not quickly drag the slider after connecting the robotic arm to prevent damage to the robotic arm.

3 Moveit usage

mycobot_630 now has the MoveIt part integrated.

Open a console terminal (shortcut key Ctrl+Alt+T) and run the command:

roslaunch mycobot_630_moveit mycobot630_moveit.launch

The running effect is as follows:

Can be planned and executed to demonstrate the effect:

If you need the real robot arm to execute the plan synchronously, you need to open another console terminal and run the command:

# The default Socket IP address of MyCobot Pro 630 is 192.168.1.159 and the port number is 5001. If it is inconsistent, it can be modified according to the actual IP address.
rosrun mycobot_630_moveit sync_plan.py _ip:=192.168.1.159 _port:=5001

Then plan and execute again to demonstrate the effect:


← Previous page | Next section →

results matching ""

    No results matching ""