ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
As stated in the docs, Python dependencies should be listed in your package.xml
file
All your Python dependencies should be specified in
package.xml
as e.g.<run_depend>python-numpy</run_depend>
(for older version 1 ofpackage.xml
) or<exec_depend>python-numpy</exec_depend>
(if you use format 2 ofpackage.xml
).
2 | No.2 Revision |
As stated in the docs, Python dependencies should be listed in your package.xml
file
If you have written non-ROS Python packages before, you have probably used the requires field in the distuils setup function. This field, however, has no meaning in ROS.
All your Python dependencies should be specified in
package.xml
as e.g.<run_depend>python-numpy</run_depend>
(for older version 1 ofpackage.xml
) or<exec_depend>python-numpy</exec_depend>
(if you use format 2 ofpackage.xml
).
If you list your dependencies in your package.xml
file, then rosdep
should be able to list them and install them using the user's package manager, if available (as far as I'm aware).
3 | No.3 Revision |
As For your first point, if you need a message from another package, add that package as a dependency.
For the second point, as stated in the docs, Python dependencies should be listed in your package.xml
file
If you have written non-ROS Python packages before, you have probably used the requires field in the distuils setup function. This field, however, has no meaning in ROS.
All your Python dependencies should be specified in
package.xml
as e.g.<run_depend>python-numpy</run_depend>
(for older version 1 ofpackage.xml
) or<exec_depend>python-numpy</exec_depend>
(if you use format 2 ofpackage.xml
).
If you list your dependencies in your package.xml
file, then rosdep
should be able to list them and install them using the user's package manager, if available (as far as I'm aware).
4 | No.4 Revision |
For your first point, if you need a message from another package, add that package as a dependency.
For the second point, as stated in the docs, Python dependencies should be listed in your package.xml
file
If you have written non-ROS Python packages before, you have probably used the
requiresrequires
field in the distuils setup function. This field, however, has no meaning in ROS.All your Python dependencies should be specified in
package.xml
as e.g.<run_depend>python-numpy</run_depend>
(for older version 1 ofpackage.xml
) or<exec_depend>python-numpy</exec_depend>
(if you use format 2 ofpackage.xml
).Not all Python or pip packages are mapped to ROS dependencies. For a quick check, try running
rosdep resolve python-mypackage
orrosdep resolve python-mypackage-pip
if you want to add a dependency on mypackage Python package. If these calls return error, you may want to search through the python.yaml file in rosdep for similar names.
If you list your dependencies in your package.xml
file, then rosdep
should be able to list them and install them using the user's package manager, if available (as far as I'm aware).