How to use python3 in ROS [closed]
I'm trying to use some python3 module in my node program, but ROSRUN can't use python3. So I tried to install python3 catkin command like this:
git clone git://github.com/ros-infrastructure/catkin_pkg.git
cd catkin_pkg
sudo python3 setup.py install
git clone git://github.com/ros/catkin.git
cd catkin
sudo python3 setup.py install
I create a new package now in the available work space, catkin_make the ws, but got the error like this:
CMake Error at compass/
CMakeLists.txt:47 (add_message_files):
`Unknown CMake command "add_message_files"`.
-- Configuring incomplete, errors occurred!
See also "/home/hqu/git/repos/ros/pi/build/CMakeFiles/CMakeOutput.log".
See also "/home/hqu/git/repos/ros/pi/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_sys
tem" failed
Why? I'm sure the CMakeList.txt is right. The old package created before was well. New package always fail, sounds like the new apt-get installation screwed my ROS
Which version of ROS are you using? Which OS version?