roslibjs icon indicating copy to clipboard operation
roslibjs copied to clipboard

Is ROSLIB.Param compatible with ROS2?

Open ManuelZ opened this issue 4 years ago • 4 comments

In the examples that I've seen the name parameter of ROSLIB.Param never considers the node name. Is it possible to get/set parameters with ROS2?

ManuelZ avatar Apr 08 '21 18:04 ManuelZ

I don't know anything about integration/compatibility of ROS2. Maybe @RobotWebTools/ros2-0 can help you out.

MatthijsBurgh avatar Aug 26 '21 15:08 MatthijsBurgh

@ManuelZ Hello! If you can provide an example of any limitation you hit, please do. I've used roslib with ROS2, but not the params.

trusktr avatar Sep 18 '21 01:09 trusktr

@trusktr @ManuelZ Just wanted to leave a comment for future users interested in this. I am able to get/set ROS2 parameters using roslibjs System: Ubuntu 20.04LTS running Foxy roslibjs on ros2 branch

Followed the example shown in simple.html format for naming for ros parameter in code as name : "/{NODE_NAME}:{PARAM_NAME}", ie: name: "/simple_node:param",

jastion avatar May 03 '22 22:05 jastion

For me, I am using roslibjs on ROS2. I have not explored it entirely but the basics seem to work okay. Ubuntu 20.04 running Foxy

I was using develop branch.

mypsybot avatar Jun 21 '22 09:06 mypsybot

Yes, it should be. See here for an example: https://github.com/RobotWebTools/roslibjs/blob/develop/examples/ros2_simple.html#L129

sea-bass avatar Dec 20 '23 08:12 sea-bass