Webots Reference Manual

previous page go up next page

Thanks

1.Introduction

2.Controller API

3.Webots File Format

     

2.2 CustomRobot

custom_robot_move

custom_robot_move

NAME

   custom_robot_move -- control the position of the robot

SYNOPSIS

  #include <device/custom_robot.h>

  void custom_robot_move(gfloat tx, gfloat ty, gfloat tz, gfloat rx, gfloat ry, gfloat tz, gfloat alpha);

DESCRIPTION

This function allows the user to modify the position and orientation of a custom robot. The move will be performed at the beginning of the next simulation step. If the collision detection system detects a collision between the CustomRobot node and any another Solid object, the move will not be performed and the custom robot position and orientation will remain unchanged. The tx, ty and tz values represent the requested translation relative to the current translation value of the robot. The rx, ry, rz and alpha values represent the offsets to be added to the current rotation vector and angle of the robot.

previous page go up next page
^ page top ^

  E-mail to webmaster Last updated: Copyright © 2002 Cyberbotics Ltd.