Turtlebot Launching while Anaconda is installed
Hello all,
I am pretty new to ROS and trying to write a Turtlebot simulation. I followed the steps explained in here until the one roslaunch turtlebot3_fake turtlebot3_fake.launch
. I got the following error at that:
Traceback (most recent call last):
> File
> "/opt/ros/kinetic/share/xacro/xacro.py",
> line 55, in <module>
> import xacro File "/opt/ros/kinetic/lib/python2.7/dist-packages/xacro/__init__.py",
> line 35, in <module>
> import glob File "/home/cydonia/anaconda3/lib/python3.6/glob.py",
> line 4, in <module>
> import re ModuleNotFoundError: No module named 're' while processing
> /home/cydonia/turtlebot3_ws/src/turtlebot3/turtlebot3_bringup/launch/includes/description.launch.xml:
> Invalid <param> tag: Cannot load
> command parameter [robot_description]:
> command
> [/opt/ros/kinetic/share/xacro/xacro.py
> '/home/cydonia/turtlebot3_ws/src/turtlebot3/turtlebot3_description/urdf/turtlebot3_burger.urdf.xacro']
> returned with code [1]. Param xml is
> <param command="$(arg urdf_file)"
> name="robot_description"/> The
> traceback for the exception was
> written to the log file
I've already encountered some problems related to the fact that Anaconda is installed, but I somehow managed to overcome these but I'm stuck again. How can I make ROS use Python 2.7 instead of Anaconda? Thanks a lot.
edit:I've already tried the method suggested here, but that won't work either. I tried to edit the .bashrc file. Right now the last 3 lines of my .bashrc file looks like this:
# added by Anaconda3 4.3.1 installer export
PATH="/home/cydonia/anaconda3/bin:$PATH"
source /opt/ros/kinetic/setup.bash
I tried deleting anaconda3/bin part and then the line became: export PATH="/home/cydonia:$PATH"
But nothing changed. I truly appreciate any help.
A similar question from only a few hours before this one: http://answers.ros.org/question/26545...