How to Install rospy Locally to Create an Amazon AWS Lambda Function?

asked 2017-05-01 18:27:19 -0600

sradmard gravatar image

Hi everyone,

I am trying to use Amazon alexa to communicate with ROS so that I can publish voice commands. This requires writing an Amazon AWS Lambda function, and I would like to write it in Python. After the code is written, all of the necessary libraries (in this case rospy) have to be included in one directory and get zipped with the main function. This zip file can then be uploaded into Amazon web services to connect with ROS.

My question is, how can I install rospy package under a specific directory. It looks like the command to install a python package locally is: $ pip install "package name" -t "local directory" However, it does not work for rospy for me.

This problem is solved in java script by typing the following command under a specific directory: $ npm install roslib and I am trying to figure out what the python equivalent of it is.

I would really appreciate any help.

edit retag flag offensive close merge delete