RobotWebTools / roslibjs

The Standard ROS JavaScript Library
https://robotwebtools.github.io/roslibjs
Other
691 stars 382 forks source link

Is ROSLIB.Param compatible with ROS2? #419

Closed ManuelZ closed 11 months ago

ManuelZ commented 3 years ago

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?

MatthijsBurgh commented 3 years ago

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

trusktr commented 3 years ago

@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.

jastion commented 2 years ago

@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",

mypsybot commented 2 years ago

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.

sea-bass commented 11 months ago

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