Tutorial?

If you have any question, please contact yoann.dutel@outlook.fr

Introduction

This sample consist at different function to control a robot in SIGVerse.

You can :

Requirements

Robot controller

Download the source code from GitHub

Download the template from the Github using the link here

Build the project

Build the source code in your working directory.

$ make

Run the program

Chooze your <xml> file for the environment. Include in the package, the <xml> of EGPSR environment.

If you would change the environment, specify the ControlRobot.so and its location within workspace directory.

Starting the simulation

In your working directory :

$ sigserver.sh -w ./house_example.xml 

How use the template

You can use a demonstrator for each function in this template. You must send a specific command for each function.

How use the different function in others task

goTo(Vector3d pos, double rangeToPoint=0, double Robot_speed=3)

This function is to move the robot in his environment. The robot go in straight line and his trajectory is automatically corrected during the movement.

goTo_AvoidObstacle(Vector3d pos, double rangeToPoint=0, double Robot_speed=3)

This function is to move the robot in his environment too but the trajectory is corrected if there is an obstacle in the front of the robot. Caution : this function is not totally finish. There are a bug with the distance sensor.

distance_sensor()

This function return the distance between the camera and an obstacle. For more informations, refer to the tutorial Distance sensor

moveLeftArm() or moveRightArm()

These functions move the arm with a velocity in each joint.

grasp_left_hand(std::string &object) or grasp_left_hand(std::string &object)

These functions grasp an object in the robot hand.

release_left_hand() or release_right_hand()

These functions release an object.

changeBasis_WorldToRobot(Vector3d pos)

This function transform a coordinate in world basis to a coordinate in robot basis.

Counter: 3450, today: 1, yesterday: 0

Front page   New List of pages Search Recent changes   Help   RSS of recent changes