Commit Graph

11 Commits

Author SHA1 Message Date
Herb Kuta 144a46608d DRAFT ament.bbclass: Don't remove local_setup.*, environment from what's installed 2019-06-22 18:51:18 -07:00
JeongBong Seo a4a7291606 DRAFT ament.bbclass: Use ros2_distro.bbclass settings for FILES, FILES-dev 2019-06-22 18:51:18 -07:00
Andre Rosa a25bb417e5 DRAFT ament.bbclass: Fix PYTHON_SOABI
* Make it conditional on the configured MACHINE. Otherwise needs to be
    reworked to avoid getting the SOABI from python3-native.

  * See:
    4b6bb78633
    https://github.com/ros2/rosidl_python/blob/master/python_cmake_module/cmake/Modules/FindPythonExtra.cmake
    https://discourse.ros.org/t/import-error-no-module-named-rclpy-rclpy-cross-compiling/2463/

  * With the patch ros2 cli works well for all listed MACHINE(s):

    root@qemuarm64:~# ros2 topic list
    /parameter_events
    /rosout

     root@qemuarm64:~# ros2 topic pub /chatter std_msgs/String "data: Hello world"
     publisher: beginning loop
     publishing #1: std_msgs.msg.String(data='Hello world')

     publishing #2: std_msgs.msg.String(data='Hello world')

     ...

     root@qemuarm64:~# ros2 topic echo /chatter
     data: Hello world

     data: Hello world

     ...
2019-06-22 18:51:18 -07:00
Herb Kuta 3e83ff8d7b DRAFT ament.bbclass: Dependencies are correctly generated 2019-06-22 18:51:18 -07:00
Herb Kuta ce93adf9b2 DRAFT *.bbclass: Drop extraneous wildcards in FILES_* assignements 2019-06-22 18:51:18 -07:00
Herb Kuta 7eb01a4e34 DRAFT ament.bbclass: Add comment about AMENT_PREFIX_PATH 2019-06-22 18:51:18 -07:00
Herb Kuta c078c2b972 DRAFT *.bbclass: Drop assignments of S (generated recipes set it correctly) 2019-06-22 18:51:18 -07:00
Herb Kuta f9097a0119 DRAFT ros_component.bbclass: Move ROS_BPN, ROS_SPN, ROS_SP into here from other bbclass-s 2019-06-22 18:51:18 -07:00
Andrey Kozhanov 3f4b9ff102 ros2msg,ros2topic: move msg files to the main package + add ros2-topic
* web-bridge needs msg to generate js bindings on the fly

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-10-01 14:27:58 +00:00
Andre Goddard Rosa 45de857731 ament.bbclass: Fix wrong suffix 'x86_64-linux-gnu' in native python module shared library
* Fix wrong suffix x86_64-linux-gnu in native python module shared library

* Python native module shared library is cross-compiled for correct
  architecture but filename had an incorrect suffix 'x86_64-linux-gnu'.

  As per python_cmake_module, if PYTHON_SOABI environment variable is not
  defined, it'll query it from native's python sysconfig module.
  https://github.com/ros2/rosidl/blob/master/python_cmake_module/cmake/Modules/FindPythonExtra.cmake

  So adopt a solution similar to the one adopted below, where PYTHON_SOABI
  is set explicitly for our specific build.
  https://github.com/erlerobot/meta-ros2/blob/master/classes/ament.bbclass

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-10-01 14:27:58 +00:00
Dmitry Rozhkov 1de025778a ros2: add initial recipes
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2018-10-01 14:27:58 +00:00