-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problems when trying to build gazebo_ros2_control #42
Comments
Hi @farbod-new, there are some packages that are not currently available in rosdep for |
Thanks for the reply. As I understand it joint_limits_interface is part of ros2_control (or even ros_control) package and is not an independent package. In other words, how can one install joint_limits_interface from source separately when its source is already included in the ros2_control package? In the line: joint_limits_interface and transmission_interface are copied from another source to ros2_control (ros2_control already includes those folders). While building the package transmission_interface is built with no problem, but joint_limits_interface fails. Why is that? Thanks, |
Hi everyone, I am still having trouble with the joint_limits_interface dependency, although the code is included in the ros2_control package. Do I need a ROS1-Bridge to solve this dependency? Or do I have to compile those dependencies from source with ros2? How do I make this compilation work? Do I need ROS1-Bridge? Any help is appreciated. Thanks, |
I checked the ros2_control repository. It seems that right now I will have a look as soon as possible |
Thank you so much! An extra information that might help is that I successfully built the following repository (with no errors): https://github.com/ros-controls/ros2_control farbod@SavantzDev:~/ros2_control_ws$ colcon build Summary: 14 packages finished [2.48s] |
Finally, I was able to build "joint_limits_interface". But now, a new error comes up in "default_robot_hw_sim.hpp" [fatal error: hardware_interface/joint_state_handle.hpp: No such file or directory] Please see below. Was there any corrections to this file, or the missing ".hpp"? Thanks, farbod@SavantzDev:~/ros2_ws$ colcon build
|
Also, I want to mention that I used the original folder for "ros2_control_transmission_interface" from the original ros2_control repository, rather than "ros2_control_ddengster/transmission_interface" The latter did not build. But I did use "ros2_control_ddengster/joint_limits_interface" rather than "ros2_control/joint_limits_interface". I hope this makes sense. |
Hi @farbod-new, Do you manage to build it? |
Hi @ar0usel , Right now, there are some changes that make imposible to compile the code. In particular this issue ros-controls/ros2_control#279. There is some effort trying to revive this code ros-controls/ros2_control#271 I will update the code when this issue is resolved. |
Thanks for letting us know. I thought I was doing something wrong.
|
I have created this new PR #44. This should fix the issues. |
Building this package with the Foxy deb packages should be fine. |
Hello,
I am trying to follow the directions from the "docker file" in the following link:
https://github.com/ros-simulation/gazebo_ros2_control/pull/34/files
When I use the following line to install ros dependencies:
rosdep install --from-paths ./ -i -y --rosdistro foxy --ignore-src
I get the following:
ERROR: the following packages/stacks could not have their rosdep keys
resolved
to system dependencies:
gazebo_ros2_control: Cannot locate rosdep definition for
[joint_limits_interface]
gazebo_ros2_control_demos: Cannot locate rosdep definition for
[velocity_controllers]
ros2_control: Cannot locate rosdep definition for
[controller_parameter_server]
So, I can't proceed correctly. If I do proceed with the build, I get
Starting >>> hardware_interface
Starting >>> controller_manager_msgs
Starting >>> control_toolbox
Starting >>> transmission_interface
Finished <<< transmission_interface [0.23s]
Finished <<< hardware_interface [0.31s]
Starting >>> controller_interface
Starting >>> test_robot_hardware
Finished <<< control_toolbox [0.31s]
Finished <<< controller_interface [0.21s]
Finished <<< test_robot_hardware [0.23s]
Finished <<< controller_manager_msgs [0.72s]
Starting >>> controller_manager
Finished <<< controller_manager [0.35s]
Starting >>> gazebo_ros2_control
Starting >>> joint_state_controller
Starting >>> joint_trajectory_controller
Finished <<< joint_state_controller [0.27s]
Finished <<< joint_trajectory_controller [0.31s]
--- stderr: gazebo_ros2_control
CMake Error at CMakeLists.txt:11 (find_package):
By not providing "Findjoint_limits_interface.cmake" in CMAKE_MODULE_PATH
this project has asked CMake to find a package configuration file
provided
by "joint_limits_interface", but CMake did not find one.
Could not find a package configuration file provided by
"joint_limits_interface" with any of the following names:
Add the installation prefix of "joint_limits_interface" to
CMAKE_PREFIX_PATH or set "joint_limits_interface_DIR" to a directory
containing one of the above files. If "joint_limits_interface"
provides a
separate development package or SDK, be sure it has been installed.
Failed <<< gazebo_ros2_control [1.99s, exited with code 1]
Summary: 9 packages finished [3.20s]
1 package failed: gazebo_ros2_control
1 package had stderr output: gazebo_ros2_control
1 package not processed
Any help is appreciated.
Thanks so much,
Farbod
The text was updated successfully, but these errors were encountered: