Functions | Variables
magical_ros2_conversion_tool.pythonic Namespace Reference

Functions

def update_python (package)
 

Variables

dictionary PYTHON_REPLACEMENTS
 

Function Documentation

def magical_ros2_conversion_tool.pythonic.update_python (   package)

Definition at line 9 of file pythonic.py.

Variable Documentation

dictionary magical_ros2_conversion_tool.pythonic.PYTHON_REPLACEMENTS
Initial value:
1 = {
2  r'\n(\s+)rospy.init_node\((.*)\)': '\n$0rclpy.init()\n$0node = rclpy.create_node($1)',
3  r'rospy.Publisher\(([^\,]+), ([^\)]+)\)': 'node.create_publisher($1, $0)',
4  r'rospy.Subscriber\(([^\,]+), ([^\,]+), ([^\)]+)\)': 'node.create_subscription($1, $0, $2)',
5  r'rospy.Service\(([^\,]+), ([^\,]+), ([^\)]+)\)': 'node.create_service($1, $0, $2)',
6 }

Definition at line 1 of file pythonic.py.



magical_ros2_conversion_tool
Author(s):
autogenerated on Wed Mar 3 2021 03:56:02