ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Miniproject - single instruction

asked 2015-02-02 08:25:52 -0600

pexison gravatar image

Hi, i want to make this instruccion for the turtlebot:

$ turtle_walk with_SPEED with_DIRECTION

turtle_walk allows to move the motors of the turtlebot with certain speed and in certain direction, but i don want to do something like keyboard_teleop that stays in a cicle and waits for the user.

For example:

$ shh turtle@turtlebot

$ turtle_walk foo bar

And the result is that the robot was able to move it self ONE STEP no more and the terminal can receive another diferent instruction.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-02 10:07:14 -0600

Chrimo gravatar image

updated 2015-02-02 10:07:54 -0600


try it this way from bash

You can replace static cmd_vel values by variables ($1,$2...) and customize your script .

Enjoy it :-) Christian

edit flag offensive delete link more


Hi, this solution induces the turtlebot in a loop and the robot still without moving

pexison gravatar image pexison  ( 2015-02-02 11:02:31 -0600 )edit

It shows the basic principle. You'd need this to run in your code for as long as you define a step to be.

dornhege gravatar image dornhege  ( 2015-02-02 11:18:56 -0600 )edit

Question Tools

1 follower


Asked: 2015-02-02 08:25:52 -0600

Seen: 129 times

Last updated: Feb 02 '15