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

Turtlebot3 is not moving by keyboard

asked 2022-05-26 11:51:02 -0500

SHIVAM gravatar image

updated 2022-05-30 11:22:37 -0500

ljaniec gravatar image

Hello, everyone,

While running the turtlebot3, turtlebot3 is not running by using the keyboard despite teleop is running. and on the terminal:

Control Your TurtleBot3!
---------------------------
Moving around:
        w
   a    s    d
        x

w/x : increase/decrease linear velocity (Burger : ~ 0.22, Waffle and Waffle Pi : ~ 0.26)
a/d : increase/decrease angular velocity (Burger : ~ 2.84, Waffle and Waffle Pi : ~ 1.82)

space key, s : force stop

CTRL-C to quit

currently:  linear vel -0.22     angular vel 2.84 
currently:  linear vel -0.22     angular vel 2.84 
currently:  linear vel -0.22     angular vel 2.84 
currently:  linear vel -0.22     angular vel 2.84 
currently:  linear vel -0.22     angular vel 2.84 
currently:  linear vel -0.22     angular vel 2.84 
currently:  linear vel -0.22     angular vel 2.84

I am using the ip address of my desktop which is 192.168.0.140 and the ip address of turtlebot 3 is 192.168.0.208(using ethernet). I am running the roscore. I have launched turtle_bot_bringup. And both have ROS noetic version.

Kindly help me with this problem.

edit retag flag offensive close merge delete

Comments

is the topic available when run rostopic list ?

Davies Ogunsina gravatar image Davies Ogunsina  ( 2022-05-28 07:55:57 -0500 )edit
1

You need to explain everything in the question. Like what type of network you are using, how you are running rosmaster, did you launched the turtlebot_bring up, are your rosmaster and turtlebot running same version of the ros. etc.. etc.. You can edit your question using small pen like icon at the end of the question.

aarsh_t gravatar image aarsh_t  ( 2022-05-29 14:59:26 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2022-05-30 11:18:58 -0500

ljaniec gravatar image

Did you set ROS_MASTER_URI correctly? E.g. like this.

Can you see TB3 topics on your desktop PC?

edit flag offensive delete link more

Comments

While using the command "rostopic list", I am getting

/battery_state
/cmd_vel
/cmd_vel_rc100
/diagnostics
/firmware_version
/imu
/joint_states
/magnetic_field
/motor_power
/odom
/reset
/rosout
/rosout_agg
/rpms
/scan
/sensor_state
/sound
/tf
/version_info
SHIVAM gravatar image SHIVAM  ( 2022-05-30 11:22:30 -0500 )edit

Ok, it looks fine. Is the kobuki_base turned on? :^) Before executing this command, you have to specify the model name of TurtleBot3. Did you do it? https://emanual.robotis.com/docs/en/p... A RQt graph after connecting the keyboard would be useful as well

ljaniec gravatar image ljaniec  ( 2022-05-30 11:25:55 -0500 )edit
1

Exactly, on your host machine you have to set the ROS_MASTER_URI and ROS_IP correctly..on your host machine your ros master uri ip adress has to be that of your pi and yoir Ros_IP has to be hour local network ip adress and in your pi which is the ros mater ...your the both will be set to that of your pi ip adress ...and also try and ping your ip adress of your pi on the terminal of your host machine and try and ping the ip jade's of your host machine on the terminal of your pi .

Davies Ogunsina gravatar image Davies Ogunsina  ( 2022-05-30 11:26:13 -0500 )edit

I did like I set the export ROS_MASTER_URI= IP address of Pi and ROS_IP=IP address of pi. And on the PI, I set both to IP address of pi, but, still it is not moving...

SHIVAM gravatar image SHIVAM  ( 2022-06-07 08:23:20 -0500 )edit

Can you ping those IP addresses on each computer?

ljaniec gravatar image ljaniec  ( 2022-06-07 15:16:03 -0500 )edit

The export ROS_MASTER_URI = Ip adress of the pi and the ROS_IP = host name ip adress on your host system ...you did ROS_IP as pi adress its meant to be hostname ip adress ..while that of your pi is correct ..correct that

Davies Ogunsina gravatar image Davies Ogunsina  ( 2022-06-09 10:47:20 -0500 )edit
0

answered 2022-05-30 11:27:28 -0500

Davies Ogunsina gravatar image

Try this export TURTLE_MODEL =name of the turtle bot model

Did you do that ?

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-05-26 11:51:02 -0500

Seen: 1,004 times

Last updated: May 30 '22