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

Is there a method to add sci kit learner and tensor flow libraries to ROS

asked 2017-07-12 11:01:58 -0500

Chris Narekattu gravatar image

Sci kit learner and Tensor flow libraries are machine learning algorithms which can work in python .My question is how can we add these libraries to the python code written in ROS

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-07-12 21:43:31 -0500

Ed Venator gravatar image

If you have tensorflow and sci-kit learn installed on your system, you should be able to use them in Python ROS nodes just the same as you would use them in any other Python program. To add tensorflow and scikit-learn as a catkin dependencies, add this to your package.xml:

<run_depend>python-tensorflow-pip</run_depend>
<run_depend>python-sklearn</run_depend>
edit flag offensive delete link more

Comments

Hello,
On this topic, I have seen that Python3 is not supported by ROS (especially rospy), so I guess we must only use the tensorflow for python2.7. Do you confirm ?

mberrada gravatar image mberrada  ( 2018-03-09 04:54:18 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-07-12 11:01:58 -0500

Seen: 417 times

Last updated: Jul 12 '17