How to run rosparam_shortcut in noetic

asked 2022-04-05 16:50:55 -0500

Francesco_R gravatar image

Good morning.

I would like to run hardware interface program for a 6 axis robot and I have used MoveIt for the inverse kinematic.

In the src directory there are the following package:

  • aubo_description (where basically it contains URDF of an Aubo robot)
  • aubo_moveit_config: a package created from MoveIt configuration
  • ros_control_boilerplate: this package is provided at this repositories: https://github.com/PickNikRobotics/ro...

I have issues compiling the package ros_control_boilerplate and in particular I think that it is for a dependencies not found: rosparam_shortcuts.

From the terminal, here what I got:

Could NOT find rosparam_shortcuts (missing: rosparam_shortcuts_DIR)
-- Could not find the required component 'rosparam_shortcuts'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by
  "rosparam_shortcuts" with any of the following names:

    rosparam_shortcutsConfig.cmake
    rosparam_shortcuts-config.cmake

  Add the installation prefix of "rosparam_shortcuts" to CMAKE_PREFIX_PATH or
  set "rosparam_shortcuts_DIR" to a directory containing one of the above
  files.  If "rosparam_shortcuts" provides a separate development package or
  SDK, be sure it has been installed.
Call Stack (most recent call first):
  ros_control_boilerplate/CMakeLists.txt:11 (find_package)

When I type from terminal

sudo apt-get install    ros-noetic-rosparam-shortcuts

but I run in error that says that it is impossible to find rosparam-shortcuts

even if I try to build from source

rosdep install -y --from-paths src --ignore-src --rosdistro $noetic

but it still doesn't work.

I think that the problem is due to the fact that rosparam_shortcuts is currently only released for ROS Kinetic and Melodic.

Is there a way to compile and run a package in Noetic even if it is released in Melodic? If it is not the case, could you please suggest me a tutorial to interface Moveit configuration with the hardware? I'm using Ubuntu 20.04.4 LTS (focal), with ROS distro Noetic.

Thank you so much for your help!

edit retag flag offensive close merge delete

Comments

I think that the problem is due to the fact that rosparam_shortcuts is currently only released for ROS Kinetic and Melodic.

according to status_page/ros_noetic_default.html?q=rosparam_shortcuts is available for Noetic.

gvdhoorn gravatar image gvdhoorn  ( 2022-04-06 14:10:19 -0500 )edit

thank you for your reply. Could you please give me some tips to install the package in noetic? I have tried sudo apt-get install ros-noetic-rosparam-shortcuts but it says that it is imposible to install the package.

Then I have tried to buid from source: I have cloned the package in the catkin_ws, then I run in terminal rosdep install -y --from-paths src --ignore-src --rosdistro noetic

it says that it is impossible find the package ros-noetic-rosparam-shortcuts

Should I use a different method to install the package?

Thank you

Francesco_R gravatar image Francesco_R  ( 2022-04-07 03:34:16 -0500 )edit

I would not start building things from source if the package should be available.

I suggest to figure out why you can't install it using apt.

What is the output of uname -a on your system? Have you ran a sudo apt update recently? What is the exact error message you get from apt when running sudo apt install ros-noetic-rosparam-shortcuts? Please do not paraphrase error messages.

gvdhoorn gravatar image gvdhoorn  ( 2022-04-08 02:44:26 -0500 )edit

just tested this in a ros:noetic Docker container, and I see this:

user@machine:~$ docker run -it --rm ros:noetic
root@3452952e1c8b:/# apt update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
...
root@3452952e1c8b:/# apt install ros-noetic-rosparam-shortcuts
...
The following additional packages will be installed:
  libeigen3-dev liborocos-kdl-dev liborocos-kdl1.4 ros-noetic-eigen-conversions
Suggested packages:
  libeigen3-doc libmpfrc++-dev
The following NEW packages will be installed:
  libeigen3-dev liborocos-kdl-dev liborocos-kdl1.4 ros-noetic-eigen-conversions ros-noetic-rosparam-shortcuts
0 upgraded, 5 newly installed, 0 to remove and 97 not upgraded.
Need to get 1165 kB of archives.
After this operation, 8766 kB of additional disk space will be used.
Do you want to continue? [Y/n]

That seems to imply rosparam_shortcuts is available and can be installed on Noetic.

gvdhoorn gravatar image gvdhoorn  ( 2022-04-08 02:48:03 -0500 )edit