muppirgautham / mobilerobot-openloopcontrol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MobileRobot-Openloopcontrol

Aim:

To develop a python control code to move the mobilerobot along the predefined path.

Equipments Required:

  1. RoboMaster EP core
  2. Python 3.7

Procedure

Step1: Initiate the MobileRobot


Step2: Connect your PC with the MobileRobot.


Step3: Open Python program.


Step4: Program the movements of the robot using python code.

Step5: Execute the python program.

Program:

from robomaster import robot
import time

if __name__ == '__main__':
    ep_robot = robot.Robot()
    ep_robot.initialize(conn_type="ap")

    ep_chassis = ep_robot.chassis

    ## Write your code here
    from robomaster import robot
import time

if name == 'main':
    ep_robot = robot.Robot()
    ep_robot.initialize(conn_type="ap")

    ep_chassis = ep_robot.chassis

   
    x = x-axis movement distance,( meters) [-5,5]
    y = y-axis movement distance,( meters) [-5,5]
    z = rotation about z axis ( degree)[-180,180]
    xy_speed = xy axis movement speed,( unit meter/second) [0.5,2]
   
    ep_chassis.move(x=2.6, y=0, z=0, xy_speed=1).wait_for_completed()
    ep_chassis.move(x=0, y=0, z=45, xy_speed=1).wait_for_completed()
    ep_chassis.move(x=3.5, y=0, z=0, xy_speed=.75).wait_for_completed()
    ep_chassis.move(x=0, y=-0.3, z=0, xy_speed=.75).wait_for_completed()
    ep_chassis.move(x=0, y=0, z=50, xy_speed=.75).wait_for_completed()
    ep_chassis.move(x=.2, y=0, z=0, xy_speed=.75).wait_for_completed()
    ep_robot.close()



    
    ep_robot.close()

MobileRobot Movement Image:

robo

Insert image here: WhatsApp Image 2022-02-21 at 08 58 17 WhatsApp Image 2022-02-21 at 08 58 17 (1)





MobileRobot Movement Video:

Upload your video in Youtube and paste your video-id here: https://youtu.be/Fj4BgwQbgCg





Result:

Thus the python program code is developed to move the mobilerobot in the predefined path.



Mobile Robotics Laboratory Department of Artificial Intelligence and Data Science/ Machine Learning Saveetha Engineering College

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%