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

Why do I kept getting KeyError:'TURTLEBOT_MODEL' every time I run the teleop command?

asked 2021-12-11 19:57:33 -0500

mgrallos gravatar image

I am trying to do a simple simulation of the Turtlebot3 and I'm currently using ROS2 Foxy. I tried to run this command in the other terminal

ros2 run turtlebot3_teleop teleop_keyboard

but it returns this error

File "/usr/lib/python3.8/os.py", line 675, in __getitem__
raise KeyError(key) from None

KeyError: 'TURTLEBOT3_MODEL'

edit retag flag offensive close merge delete

Comments

Have you done a web search on "TURTLEBOT3_MODEL" ?

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-12-12 13:32:26 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-12-13 04:18:35 -0500

WarTurtle gravatar image

Have you added TURTLEBOT_MODEL to your .bashrc? You can do this by writing in the terminal echo "export TURTLEBOT_MODEL=burger" >> ~/.bashrc if your model is burger.

edit flag offensive delete link more

Comments

agree that's the issue, unless you source it, you need to export TURTLEBOT_MODEL=burger in every terminal.

osilva gravatar image osilva  ( 2021-12-13 11:31:51 -0500 )edit

Question Tools

Stats

Asked: 2021-12-11 19:57:33 -0500

Seen: 546 times

Last updated: Dec 13 '21