forked from ros-industrial/industrial_core
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
robot_simulator: add GetRobotInfo svc server.
Users can override the information returned by the get_robot_info service server. This can be useful if multiple instances of the simulator are used in a ROS application, and each needs to be uniquely identified. Additionally, this makes it possible to return information taken from real controllers and manipulators, in order to provide a more 'real' simulation. Users can enable the override by setting the private parameter 'robot_info' in a launch file like so: <node .. type="industrial_robot_simulator" name=".." ..> <rosparam param="robot_info"> controller: model: 'My Robot Controller' serial_number: 'ABC-123' sw_version: 'V1.23/ABC' robots: - model: 'My Robot Model' serial_number: '123456' sw_version: 'V4.56/DEF' </rosparam> </node> As the Industrial Robot Simulator currently simulates only a single robot / motion group, specifying multiple robot entries will result in only the first of the list to be used. Fields absent from the rosparam parameter will result in empty strings being assigned to the corresponding fields in the 'controller' and 'robot' parts of the service response.
- Loading branch information
1 parent
9ea9ee4
commit 40a72f3
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters