rospy - copied from $HOME/ros/ros_comm/clients/rospy/src/.roslib - copied from $HOME/ros/ros/core/roslib/src/.Ideally, you'll have a folder containing the following python packages Also set PYTHONPATH variable to the folder containing the copied packages You will need to set your ROS_MASTER_URI and ROS_ROOT environment variables. Note the "1 or" on the second-to-last line. Update the Python sys.path with package's package_name: name of the package that load_manifest() is being called package_name: bootstrap_version: (keyword argument) do not use. Here is an example of how to disable this call in roslib/src/roslib/launcher.py: def load_manifest(package_name, bootstrap_version="0.7"): rospack doesn't work on Windows (yet), so you will need to disable these calls and instead configure your Python path manually. Rospy uses the rospack library to dynamically generate the appropriate PYTHONPATH. You can then copy the src/package_name/srv from these packages onto your Windows machine. In order to figure out which packages have services, you can run: You can then copy the src/package_name/msg from these packages onto your Windows machine. In order to figure out which packages have messages, you can run: The easiest way to do this is to compile your packages on a non-Windows setup, then copy these files over. You will need the auto-generated Python files for the messages and services you plan to use. ROS: in particular, you will be using the rospy and roslib packagesĬopying generated message and service files There are some extra things you will have to do that, while cumbersome, will get you off the ground. Higher-level tools, like roslaunch, are not expected to work on Windows, though they can be ported. This will enable you to run Python-based ROS nodes. If you have Python code on Windows you wish to interface with ROS, you can use the rospy client library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |