Code Monkey home page Code Monkey logo

Comments (7)

ooeygui avatar ooeygui commented on May 18, 2024 1

Hi @Timple,
I'd love to know more about how you are intending to use this ROS node. Is there anything you can share?
Sorry about that - I was a little over zealous when changing the docs over. The Azure IoT SDK currently doesn't support 20.04, so it won't currently work on noetic.

from ros_azure_iothub.

ooeygui avatar ooeygui commented on May 18, 2024

I changed the doc to reflect this scenario. However, we do want to support noetic when the iot sdk supports 20.04

from ros_azure_iothub.

Timple avatar Timple commented on May 18, 2024

Well, since it's all Microsoft. Any chance you can give your colleagues a nudge? 😉

from ros_azure_iothub.

ooeygui avatar ooeygui commented on May 18, 2024

:-)
Yes, this is an ongoing conversation.
I'd love to connect with you to discuss how you are using this ROS node, feel free to reach out to me - https://www.linkedin.com/in/louamadio/

from ros_azure_iothub.

Timple avatar Timple commented on May 18, 2024

Thanks for the quick replies! We're still in the investigating phase. I only stumbled upon this package after figuring out that the sdk doesn't have a 20.04 target.
So I was curious how this package solved that, but unfortunately it doesn't.

I know catkin can compile standard cmake targets. So something like this should be possible I guess?

Dockerfile:

FROM ros:noetic-robot
RUN apt-get update -qq && apt-get install -qqy python3-catkin-tools python3-osrf-pycommon git

# Install azure-iot-sdk-c
RUN git clone https://github.com/Azure/azure-iot-sdk-c.git src/azure-iot-sdk-c
RUN git -C src/azure-iot-sdk-c submodule update --init
COPY azure-iot-sdk-c-package.xml src/azure-iot-sdk-c/package.xml
# Maybe this:?
# RUN bash -c 'source /opt/ros/noetic/setup.bash && catkin config --append-args -Dbuild_as_dynamic=ON'

# Copy harvey_msgs as dependency (default to master branch if unspecified)
RUN git clone https://github.com/microsoft/ros_azure_iothub.git src/ros_azure_iothub

# Install dependencies used by packages
RUN rosdep update && rosdep install -y -i --from-paths src

# Compile ROS package
RUN bash -c 'source /opt/ros/noetic/setup.bash && catkin build'

azure-iot-sdk-c-package.xml:

<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="2">
  <name>libazure-iot-sdk-c</name>
  <version>1.2021.1</version>
  <description>Azure IoT C SDKs and Libraries</description>

  <maintainer email="[email protected]"></maintainer>
  <license>MIT</license>

  <buildtool_depend>cmake</buildtool_depend>
  <depend>curl</depend>

  <export>
    <build_type>cmake</build_type>
  </export>
</package>

from ros_azure_iothub.

ooeygui avatar ooeygui commented on May 18, 2024

The Azure IoT SDK team recommended that for 20.04 it be built from source and installs it into the local image.

To support another project, we did the following from our Azure DevOps pipeline:

      source /opt/ros/melodic/setup.bash \
      && sudo apt-get update \
      && sudo apt-get install -y git cmake build-essential curl libcurl4-openssl-dev libssl-dev uuid-dev \
      && git clone https://github.com/Azure/azure-iot-sdk-c.git \
      && cd azure-iot-sdk-c/ \
      && git submodule update --init \
      && mkdir cmake \
      && cd cmake \
      && cmake .. \
      && cmake --build . \
      && sudo make install \

Which builds the sdk and installs it. It's not really catkin friendly, I'll look into adapting this to the noetic branch.

from ros_azure_iothub.

Timple avatar Timple commented on May 18, 2024

Ah yes, that would be the obvious way to do it. But these steps need to be repeated in every CI build, on every robot and all user pcs. And for ROS and apt packages there are systems in place to resolve these issues. Thus reducing the maintenance burden.
That's why a ppa release or a catkin build would be preferable 🙂

from ros_azure_iothub.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.