Coder Social home page Coder Social logo

build error about ros2_control HOT 10 CLOSED

ros-controls avatar ros-controls commented on May 17, 2024 1
build error

from ros2_control.

Comments (10)

Karsten1987 avatar Karsten1987 commented on May 17, 2024 1

Sorry for being late here. I'll have a look it ASAP. We recently changed the namespaces in rclcpp and rclcpp::node::Node became rclcpp::Node. I'll revise these packages.

from ros2_control.

parthc-rob avatar parthc-rob commented on May 17, 2024

I have the same error when trying to build these packages using ament in a functional ROS2 workspace.
@Karsten1987 please detail steps for a successful build.
EDIT: all other packages in the ros2_control and ros2_controllers repo depend on successfully building controller_parameter_server which is failing here.

from ros2_control.

znstj avatar znstj commented on May 17, 2024

I change something,and build succes.
but this package only a demo about ros_control.
I can't use it do something.

from ros2_control.

parthc-rob avatar parthc-rob commented on May 17, 2024

Thanks for the pointer, please check out EDIT: ros2_control PR
Build still fails but for a different reason. I'm not sure what's going wrong. Sorry, this is my first PR, let me know of any improvements I can make.
EDIT: cleaned ament workspace and rebuilt, now I have build errors caused by rclcpp::Time::now() in -
ros2_controllers PR - WIP

from ros2_control.

znstj avatar znstj commented on May 17, 2024

You can test build only one package,and find bug:
ament build --only-packages hardware_interface.
and next controller_interface,controller_manager,controller_parameter_server,and test_robot_hardware.
if you cann't build that,give me you E-mail,I can send for you the package I fixed the bug.

from ros2_control.

parthc-rob avatar parthc-rob commented on May 17, 2024

@znstj Thanks, but to clarify, I've fixed the issue myself for ros2_control in #8
The current ros2_control + ros2_controllers packages were probably made for rclcpp 0.0.3 based on the timing of the commits. I'm trying to migrate them to work with rclcpp 0.4.0 which is what comes with ros2-ardent.

I change something,and build succes.
but this package only a demo about ros_control.
I can't use it do something.

I'm now trying to debug ros-control/ros2_controllers since that is the package you can use to do something with ros2_control. Check ros-controls/ros2_controllers#3

EDIT: cleaned ament workspace and rebuilt, now I have build errors caused by rclcpp::Time::now() in -
ros2_controllers PR - WIP

from ros2_control.

Karsten1987 avatar Karsten1987 commented on May 17, 2024

@parthc-rob I opened a PR to your PR in order to make it compile with the latest ROS2 master.
You may want to accept them in order to update your top-level PR, so that the one PR make it compile.

from ros2_control.

parthc-rob avatar parthc-rob commented on May 17, 2024

@Karsten1987 Thanks a lot! Updated my PR's.

from ros2_control.

Karsten1987 avatar Karsten1987 commented on May 17, 2024

I just merged the two open PRs. Thanks for contributing.

Please note, that this current master only builds against ROS2 master, built from source.
There is a new ROS2 release coming up soon, from which one I'll start tagging and branching the two repos here as well.

from ros2_control.

parthc-rob avatar parthc-rob commented on May 17, 2024

Thanks for taking the PRs to completion! Hope to make some more soon.

Yeah I tried compiling with Ubuntu 16.04/ros2-ardent but noticed the commits you made were geared towards the 18.04/ros2-bouncy release. Docker containers will do the job for now.

from ros2_control.

Related Issues (20)

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.