Ask Your Question
0

Miniproject - single instruction

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

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
2

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

Chrimo gravatar image

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

Hi,

try it this way from bash

https://github.com/mockbot/MockBot/bl...

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

Enjoy it :-) Christian

edit flag offensive delete link more

Comments

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

pexison gravatar imagepexison ( 2015-02-02 11:02:31 -0500 )edit
1

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 imagedornhege ( 2015-02-02 11:18:56 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 49 times

Last updated: Feb 02 '15