py_binding_tools package from py_binding_tools repopy_binding_tools |
|
Package Summary
Tags | No category tags. |
Version | 2.0.1 |
License | BSD |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ros-planning/py_binding_tools.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2024-10-13 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Robert Haschke
Authors
- Robert Haschke
Python binding tools for C++
This package provides some tools to facilitate the generation of python bindings for C++ code, based on pybind11.
Automatic type conversion for ROS message types
Conversion between native C++ and python types is performed via ROS message serialization and deserialization, which is implemented via C++ templates. It suffices to include:
#include <py_binding_tools/ros_msg_typecasters.h>
The PoseStamped
message from the geometry_msgs
package also accepts a single string as an argument.
In this case, the string is interpreted as the header.frame_id
field of the message and the pose becomes the identity transform. To use this extension, include the following header instead:
#include <py_binding_tools/geometry_msg_typecasters.h>
C++ ROS initialization
C++ and Python use their own RCL implementations (rclpy
and rclcpp
).
Thus, it is necessary to initialize ROS in the C++ domain additionally to the Python domain before calling any ROS-related functions from wrapped C++ functions or classes.
To this end, the package provides the python function rclcpp.init()
and the C++ class RCLInitializer
. The latter is intended to be used as a base class for your python wrapper classes:
class FooWrapper : protected RCLInitializer, public Foo {
// ...
};
to ensure that the ROS infrastructure is initialized before usage in the wrapped C++ class. Ensure to list RCLInitializer
as the first base class, if ROS functionality is required in the constructor already!
Changelog for package py_binding_tools
2.0.1 (2024-07-12)
- rclcpp.init(None) will resort to sys.argv as with rclpy.init(None)
- Contributors: Robert Haschke
2.0.0 (2024-05-25)
- ROS2 migration
- Contributors: Robert Haschke
1.0.0 (2024-03-05)
- Initial release factored out from https://github.com/ros-planning/moveit/pull/2910
Wiki Tutorials
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_cmake_python | |
std_msgs | |
rclpy | |
ament_cmake_pytest | |
ament_lint_auto | |
ament_lint_common | |
pybind11_vendor | |
geometry_msgs | |
rclcpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged py_binding_tools at Robotics Stack Exchange
py_binding_tools package from py_binding_tools repopy_binding_tools |
|
Package Summary
Tags | No category tags. |
Version | 2.0.1 |
License | BSD |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ros-planning/py_binding_tools.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2024-10-13 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Robert Haschke
Authors
- Robert Haschke
Python binding tools for C++
This package provides some tools to facilitate the generation of python bindings for C++ code, based on pybind11.
Automatic type conversion for ROS message types
Conversion between native C++ and python types is performed via ROS message serialization and deserialization, which is implemented via C++ templates. It suffices to include:
#include <py_binding_tools/ros_msg_typecasters.h>
The PoseStamped
message from the geometry_msgs
package also accepts a single string as an argument.
In this case, the string is interpreted as the header.frame_id
field of the message and the pose becomes the identity transform. To use this extension, include the following header instead:
#include <py_binding_tools/geometry_msg_typecasters.h>
C++ ROS initialization
C++ and Python use their own RCL implementations (rclpy
and rclcpp
).
Thus, it is necessary to initialize ROS in the C++ domain additionally to the Python domain before calling any ROS-related functions from wrapped C++ functions or classes.
To this end, the package provides the python function rclcpp.init()
and the C++ class RCLInitializer
. The latter is intended to be used as a base class for your python wrapper classes:
class FooWrapper : protected RCLInitializer, public Foo {
// ...
};
to ensure that the ROS infrastructure is initialized before usage in the wrapped C++ class. Ensure to list RCLInitializer
as the first base class, if ROS functionality is required in the constructor already!
Changelog for package py_binding_tools
2.0.1 (2024-07-12)
- rclcpp.init(None) will resort to sys.argv as with rclpy.init(None)
- Contributors: Robert Haschke
2.0.0 (2024-05-25)
- ROS2 migration
- Contributors: Robert Haschke
1.0.0 (2024-03-05)
- Initial release factored out from https://github.com/ros-planning/moveit/pull/2910
Wiki Tutorials
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_cmake_python | |
std_msgs | |
rclpy | |
ament_cmake_pytest | |
ament_lint_auto | |
ament_lint_common | |
pybind11_vendor | |
geometry_msgs | |
rclcpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged py_binding_tools at Robotics Stack Exchange
py_binding_tools package from py_binding_tools repopy_binding_tools |
|
Package Summary
Tags | No category tags. |
Version | 2.0.1 |
License | BSD |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ros-planning/py_binding_tools.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2024-10-13 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Robert Haschke
Authors
- Robert Haschke
Python binding tools for C++
This package provides some tools to facilitate the generation of python bindings for C++ code, based on pybind11.
Automatic type conversion for ROS message types
Conversion between native C++ and python types is performed via ROS message serialization and deserialization, which is implemented via C++ templates. It suffices to include:
#include <py_binding_tools/ros_msg_typecasters.h>
The PoseStamped
message from the geometry_msgs
package also accepts a single string as an argument.
In this case, the string is interpreted as the header.frame_id
field of the message and the pose becomes the identity transform. To use this extension, include the following header instead:
#include <py_binding_tools/geometry_msg_typecasters.h>
C++ ROS initialization
C++ and Python use their own RCL implementations (rclpy
and rclcpp
).
Thus, it is necessary to initialize ROS in the C++ domain additionally to the Python domain before calling any ROS-related functions from wrapped C++ functions or classes.
To this end, the package provides the python function rclcpp.init()
and the C++ class RCLInitializer
. The latter is intended to be used as a base class for your python wrapper classes:
class FooWrapper : protected RCLInitializer, public Foo {
// ...
};
to ensure that the ROS infrastructure is initialized before usage in the wrapped C++ class. Ensure to list RCLInitializer
as the first base class, if ROS functionality is required in the constructor already!
Changelog for package py_binding_tools
2.0.1 (2024-07-12)
- rclcpp.init(None) will resort to sys.argv as with rclpy.init(None)
- Contributors: Robert Haschke
2.0.0 (2024-05-25)
- ROS2 migration
- Contributors: Robert Haschke
1.0.0 (2024-03-05)
- Initial release factored out from https://github.com/ros-planning/moveit/pull/2910
Wiki Tutorials
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_cmake_python | |
std_msgs | |
rclpy | |
ament_cmake_pytest | |
ament_lint_auto | |
ament_lint_common | |
pybind11_vendor | |
geometry_msgs | |
rclcpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged py_binding_tools at Robotics Stack Exchange
py_binding_tools package from py_binding_tools repopy_binding_tools |
|
Package Summary
Tags | No category tags. |
Version | 2.0.1 |
License | BSD |
Build type | AMENT_CMAKE |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ros-planning/py_binding_tools.git |
VCS Type | git |
VCS Version | ros2 |
Last Updated | 2024-10-13 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Robert Haschke
Authors
- Robert Haschke
Python binding tools for C++
This package provides some tools to facilitate the generation of python bindings for C++ code, based on pybind11.
Automatic type conversion for ROS message types
Conversion between native C++ and python types is performed via ROS message serialization and deserialization, which is implemented via C++ templates. It suffices to include:
#include <py_binding_tools/ros_msg_typecasters.h>
The PoseStamped
message from the geometry_msgs
package also accepts a single string as an argument.
In this case, the string is interpreted as the header.frame_id
field of the message and the pose becomes the identity transform. To use this extension, include the following header instead:
#include <py_binding_tools/geometry_msg_typecasters.h>
C++ ROS initialization
C++ and Python use their own RCL implementations (rclpy
and rclcpp
).
Thus, it is necessary to initialize ROS in the C++ domain additionally to the Python domain before calling any ROS-related functions from wrapped C++ functions or classes.
To this end, the package provides the python function rclcpp.init()
and the C++ class RCLInitializer
. The latter is intended to be used as a base class for your python wrapper classes:
class FooWrapper : protected RCLInitializer, public Foo {
// ...
};
to ensure that the ROS infrastructure is initialized before usage in the wrapped C++ class. Ensure to list RCLInitializer
as the first base class, if ROS functionality is required in the constructor already!
Changelog for package py_binding_tools
2.0.1 (2024-07-12)
- rclcpp.init(None) will resort to sys.argv as with rclpy.init(None)
- Contributors: Robert Haschke
2.0.0 (2024-05-25)
- ROS2 migration
- Contributors: Robert Haschke
1.0.0 (2024-03-05)
- Initial release factored out from https://github.com/ros-planning/moveit/pull/2910
Wiki Tutorials
Package Dependencies
Deps | Name |
---|---|
ament_cmake | |
ament_cmake_python | |
std_msgs | |
rclpy | |
ament_cmake_pytest | |
ament_lint_auto | |
ament_lint_common | |
pybind11_vendor | |
geometry_msgs | |
rclcpp |
System Dependencies
Dependant Packages
Launch files
Messages
Services
Plugins
Recent questions tagged py_binding_tools at Robotics Stack Exchange
py_binding_tools package from py_binding_tools repopy_binding_tools |
|
Package Summary
Tags | No category tags. |
Version | 1.0.0 |
License | BSD |
Build type | CATKIN |
Use | RECOMMENDED |
Repository Summary
Checkout URI | https://github.com/ros-planning/py_binding_tools.git |
VCS Type | git |
VCS Version | main |
Last Updated | 2024-10-13 |
Dev Status | MAINTAINED |
CI status | No Continuous Integration |
Released | RELEASED |
Tags | No category tags. |
Contributing |
Help Wanted (0)
Good First Issues (0) Pull Requests to Review (0) |
Package Description
Additional Links
Maintainers
- Robert Haschke
Authors
- Robert Haschke
Python binding tools for C++
This package provides some tools to facilitate the generation of python bindings for C++ code, based on pybind11.
Automatic type conversion for ROS message types
Conversion between native C++ and python types is performed via ROS message serialization and deserialization, which is implemented via C++ templates. It suffices to include:
#include <py_binding_tools/ros_msg_typecasters.h>
The PoseStamped
message from the geometry_msgs
package also accepts a single string as an argument.
In this case, the string is interpreted as the header.frame_id
field of the message and the pose becomes the identity transform. To use this extension, include the following header instead:
#include <py_binding_tools/geometry_msg_typecasters.h>
C++ ROS initialization
C++ and Python use their own ROS implementations (rospy
and roscpp
).
Thus, it is necessary to initialize ROS in the C++ domain additionally to the Python domain before calling any ROS-related functions from wrapped C++ functions or classes.
To this end, the package provides the python function roscpp_init()
and the C++ class ROScppInitializer
. The latter is intended to be used as a base class for your python wrapper classes:
class FooWrapper : protected ROScppInitializer, public Foo {
// ...
};
to ensure that the ROS infrastructure is initialized before usage in the wrapped C++ class. Ensure to list ROScppInitializer
as the first base class, if ROS functionality is required in the constructor already!
ROScppInitializer
registers an anonymous C++ ROS node named python_wrapper_xxx
. If you need a specific node name or if you want to pass remappings, use the manual initialization function roscpp_init(name="", remappings={}, options=0)
instead, which effectively calls ros::init
with the given arguments. Note, that an empty name will map to the above-mentioned node name python_wrapper_xxx
.
Changelog for package py_binding_tools
1.0.0 (2024-03-05)
- Initial release factored out from https://github.com/ros-planning/moveit/pull/2910