ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I am not sure if this is the correct process..
$ rosinstall_generator examples_rclpy_minimal_publisher examples_rclpy_minimal_subscriber --rosdistro dashing --deps > minimal_rclpy.repos
$ vcs-import src < minimal_rclpy.repos
// Then i wrote a small python script to copy all the site-packages
$ cp -r ./install/<pkg-name>/lib/python3.6/site-packages/<pkg-name> dst_folder/python3.6/site-packages
// extended PYTHONPATH & LD_LIBRARY_PATH to include the things
$ export PYTHONPATH="<dst_folder>/python3.6/site-package:$PYTHONPATH"
$ export LD_LIBRARY_PATH="<dst_folder>"
// copy demo_node_py into dest_folder
$ cp -r demo_nodes_py <dst_folder>
// try running python script
$ python3 talker.py
As expected it will through "xxx.so" file missing while trying to execute. Again i wrote a small python script to copy the xxx.so file to dst_folder and also run $ ldd xxx.so and copy them as well to dst_folder that are present only in install directory.
$ cp xxxx.so <dst_folder>
$ldd xxxx.so
and repeat. Finally $ python3 talker.py should start executing.
2 | No.2 Revision |
I am not sure if this is the correct process..
$ rosinstall_generator examples_rclpy_minimal_publisher examples_rclpy_minimal_subscriber --rosdistro dashing --deps > minimal_rclpy.repos
$ vcs-import src < minimal_rclpy.repos
$ colcon build --symlink-install
// Then i wrote a small python script to copy **copy all the site-packages
site-packages** to desired folder.
$ cp -r ./install/<pkg-name>/lib/python3.6/site-packages/<pkg-name> dst_folder/python3.6/site-packages
// extended PYTHONPATH & LD_LIBRARY_PATH to include the things
$ export PYTHONPATH="<dst_folder>/python3.6/site-package:$PYTHONPATH"
$ export LD_LIBRARY_PATH="<dst_folder>"
// copy demo_node_py into dest_folder
$ cp -r demo_nodes_py <dst_folder>
// try running python script
$ python3 talker.py
As expected it will through "xxx.so" file missing while trying to execute. Again i wrote a small python script to copy the xxx.so file to dst_folder and also run $ ldd xxx.so and copy them as well to dst_folder that are present only in install directory.
$ cp xxxx.so <dst_folder>
$ldd xxxx.so
and repeat. Finally $ python3 talker.py should start executing.