turtlebot3
turtlebot3 copied to clipboard
Use turtlebot3 robots in a python3 environment
ISSUE TEMPLATE ver. 0.4.0
-
Which TurtleBot3 platform do you use?
- [√ ] Burger
- [ ] Waffle
- [ ] Waffle Pi
-
Which ROS is working with TurtleBot3?
- [ ] ROS 1 Kinetic Kame
- [√ ] ROS 1 Melodic Morenia
- [ ] ROS 1 Noetic Ninjemys
- [ ] ROS 2 Dashing Diademata
- [ ] ROS 2 Eloquent Elusor
- [ ] ROS 2 Foxy Fitzroy
- [ ] etc (Please specify your ROS Version here)
-
Which SBC(Single Board Computer) is working on TurtleBot3?
- [ ] Intel Joule 570x
- [ ] Raspberry Pi 3B+
- [ ] Raspberry Pi 4
- [√ ] etc (Please specify your SBC here)
-
Which OS you installed on SBC?
- [ ] Raspbian distributed by ROBOTIS
- [ ] Ubuntu MATE (16.04/18.04/20.04)
- [√ ] Ubuntu preinstalled server (18.04/20.04)
- [ ] etc (Please specify your OS here)
-
Which OS you installed on Remote PC?
- [ ] Ubuntu 16.04 LTS (Xenial Xerus)
- [√ ] Ubuntu 18.04 LTS (Bionic Beaver)
- [ ] Ubuntu 20.04 LTS (Focal Fossa)
- [ ] Windows 10
- [ ] MAC OS X (Specify version)
- [ ] etc (Please specify your OS here)
-
Please describe the issue in detail. I wanted to use turtlebot3 robots in a python3 virtual environment, but I had the following problem.
Traceback (most recent call last):
File "/opt/ros/melodic/lib/gazebo_ros/spawn_model", line 34, in
Is there any way to make turtlebot3 run in python3?
Hi @qiaoxianfeng
The ROS Melodic by default runs off of Python 2 and unfortunately, we do not provide support for customizing the default system. You may find more relevant information from ROS Answer community and other web pages something like below. https://www.miguelalonsojr.com/blog/robotics/ros/python3/2019/08/20/ros-melodic-python-3-build.html Thanks.