-
Notifications
You must be signed in to change notification settings - Fork 151
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
open_manipulator_x_controller build issue - colcon fails to build packge #240
Comments
The parameters should be declare with default values. Thus, that code section would be:
Take into account that the parameter type is inferred from the default value. For example, in this case could be:
So sim would be set to a bool type and control_period would be set to a double type, which are the types assing in the yaml file. |
@irenebm, Thanks this solves the issue. |
@irenebm @Aki1608 @ajaysonar Can someone open a pull request to solve this issue ?
I tried to replace
with
and I'm still getting
Should I change something in the parameter file ?
|
Thanks for reviewing this issue. |
Hello,
I am trying to setup Openmanipulator-X (Ubuntu 22.04 + ROS2 Humble). While following the instruction on,
https://emanual.robotis.com/docs/en/platform/openmanipulator_x/quick_start_guide/#install-ubuntu-on-pc
after executing, colcon build --symlink-install, I get the following error...
Starting >>> open_manipulator_x_controller
--- stderr: open_manipulator_x_controller
/home/ros2desk/colcon_ws/src/open_manipulator/open_manipulator_x_controller/src/open_manipulator_x_controller.cpp: In member function ‘void open_manipulator_x_controller::OpenManipulatorXController::init_parameters()’:
/home/ros2desk/colcon_ws/src/open_manipulator/open_manipulator_x_controller/src/open_manipulator_x_controller.cpp:66:26: error: no matching function for call to ‘open_manipulator_x_controller::OpenManipulatorXController::declare_parameter(const char [4])’
66 | this->declare_parameter("sim");
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
AND...
/home/ros2desk/colcon_ws/src/open_manipulator/open_manipulator_x_controller/src/open_manipulator_x_controller.cpp:67:26: error: no matching function for call to ‘open_manipulator_x_controller::OpenManipulatorXController::declare_parameter(const char [15])’
67 | this->declare_parameter("control_period");
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
All I could tell was it has something to do with the "sim" and "control_period" parameters. Any feedback would be appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: