ROS Interface Migration Guide (from 2.0.2 and below to 2.3.4 and Above)
The latest ROS interfaces are only compatible with Mech-Eye SDK 2.3.4 or above. If you wish to keep using the existing ROS program after installing the latest version of Mech-Eye SDK, please modify the ROS program according to this topic. |
Topics
In Mech-Eye SDK 2.3.4 and above, the following changes have been made to the topics of the ROS interfaces:
-
Depth map:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
/mechmind/depth_image
ros/mechmind/depth_image
ros-
ROS 1
-
ROS 2
/mechmind/depth_map
ros/mechmind/depth_map
ros -
-
Textured point cloud:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
/mechmind/color_point_cloud
ros/mechmind/color_point_cloud
ros-
ROS 1
-
ROS 2
/mechmind/textured_point_cloud
ros/mechmind/textured_point_cloud
ros -
Services
In Mech-Eye SDK 2.3.4 and above, the following changes have been made to the services of the ROS interfaces:
Data Acquisition
-
Acquire the 2D image:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /capture_color_map
rosros2 service call /capture_color_map mecheye_ros_interface/srv/CaptureColorMap
ros-
ROS 1
-
ROS 2
rosservice call /capture_color_image
rosros2 service call /capture_color_image mecheye_ros_interface/srv/CaptureColorImage
ros -
-
Acquire the textured point cloud:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /capture_color_point_cloud
rosros2 service call /capture_color_point_cloud mecheye_ros_interface/srv/CaptureColorPointCloud
ros-
ROS 1
-
ROS 2
rosservice call /capture_textured_point_cloud
rosros2 service call /capture_textured_point_cloud mecheye_ros_interface/srv/CaptureTexturedPointCloud
ros -
Adjust Camera Parameters
-
Obtain the value of Scan2DExpectedGrayValue:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_2d_expected_gray_value
rosros2 service call /get_2d_expected_gray_value mecheye_ros_interface/srv/Get2DExpectedGrayValue
ros-
ROS 1
-
ROS 2
rosservice call /get_int_parameter "{name: Scan2DExpectedGrayValue}"
rosros2 service call /get_int_parameter mecheye_ros_interface/srv/GetIntParameter "{name: Scan2DExpectedGrayValue}"
ros -
-
Set the value of Scan2DExpectedGrayValue:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_2d_expected_gray_value "{value: 20}"
rosros2 service call /set_2d_expected_gray_value mecheye_ros_interface/srv/Set2DExpectedGrayValue "{value: 20}"
ros-
ROS 1
-
ROS 2
rosservice call /set_int_parameter "{name: Scan2DExpectedGrayValue, value:20}"
rosros2 service call /set_int_parameter mecheye_ros_interface/srv/SetIntParameter "{name: Scan2DExpectedGrayValue, value:20}"
ros -
-
Obtain the value of Scan2DExposureMode:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_2d_exposure_mode
rosros2 service call /get_2d_exposure_mode mecheye_ros_interface/srv/Get2DExposureMode
ros-
ROS 1
-
ROS 2
rosservice call /get_enum_parameter "{name: Scan2DExposureMode}"
rosros2 service call /get_enum_parameter mecheye_ros_interface/srv/GetEnumParameter "{name: Scan2DExposureMode}"
ros -
-
Set the value of Scan2DExposureMode:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_2d_exposure_mode "{value: HDR}"
rosros2 service call /set_2d_exposure_mode mecheye_ros_interface/srv/Set2DExposureMode "{value: HDR}"
ros-
ROS 1
-
ROS 2
rosservice call /set_enum_parameter "{name: Scan2DExposureMode, value: HDR}"
rosros2 service call /set_enum_parameter mecheye_ros_interface/srv/GetEnumParameter "{name: Scan2DExposureMode, value: HDR}"
ros -
-
Obtain the value of Scan2DHDRExposureSequence:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_2d_exposure_sequence
rosros2 service call /get_2d_exposure_sequence mecheye_ros_interface/srv/Get2DExposureSequence
ros-
ROS 1
-
ROS 2
rosservice call /get_float_array_parameter "{name: Scan2DHDRExposureSequence}"
rosros2 service call /get_float_array_parameter mecheye_ros_interface/srv/GetFloatArrayParameter "{name: Scan2DHDRExposureSequence}"
ros -
-
Set the value of Scan2DHDRExposureSequence:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_2d_exposure_sequence "{sequence: [30.0,35.5,40.0]}"
rosros2 service call /set_2d_exposure_sequence mecheye_ros_interface/srv/Set2DExposureSequence "{sequence: [30.0,35.5,40.0]}"
ros-
ROS 1
-
ROS 2
rosservice call /set_float_array_parameter "{name: Scan2DHDRExposureSequence, array: [30.0, 35.5, 40.0]}"
rosros2 service call /set_float_array_parameter mecheye_ros_interface/srv/SetFloatArrayParameter "{name: Scan2DHDRExposureSequence, array: [30.0, 35.5, 40.0]}"
ros -
-
Obtain the value of Scan2DExposureTime:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_2d_exposure_time
rosros2 service call /get_2d_exposure_time mecheye_ros_interface/srv/Get2DExposureTime
ros-
ROS 1
-
ROS 2
rosservice call /get_float_parameter "{name: Scan2DExposureTime}"
rosros2 service call /get_float_parameter mecheye_ros_interface/srv/GetFloatParameter "{name: Scan2DExposureTime}"
ros -
-
Set the value of Scan2DExposureTime:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_2d_exposure_time "{value: 35.5}"
rosros2 service call /set_2d_exposure_time mecheye_ros_interface/srv/Set2DExposureTime "{value: 35.5}"
ros-
ROS 1
-
ROS 2
rosservice call /set_float_parameter "{name: Scan2DExposureTime, value: 35.5}"
rosros2 service call /set_float_parameter mecheye_ros_interface/srv/SetFloatParameter "{name: Scan2DExposureTime, value: 35.5}"
ros -
-
Obtain the value of Scan2DROI:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_2d_roi
rosros2 service call /get_2d_roi mecheye_ros_interface/srv/Get2DROI
ros-
ROS 1
-
ROS 2
rosservice call /get_roi_parameter "{name: Scan2DROI}"
rosros2 service call /get_roi_parameter mecheye_ros_interface/srv/GetROIParameter "{name: Scan2DROI}"
ros -
-
Set the value of Scan2DROI:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_2d_roi "{x: 20, y: 20, width: 600, height: 800}"
rosros2 service call /set_2d_roi mecheye_ros_interface/srv/Set2DROI "{x: 20, y: 20, width: 600, height: 800}"
ros-
ROS 1
-
ROS 2
rosservice call /set_roi_parameter "{name: Scan2DROI, x: 20, y: 20, width: 600, height: 800}"
rosros2 service call /set_roi_parameter mecheye_ros_interface/srv/SetROIParameter "{name: Scan2DROI, x: 20, y: 20, width: 600, height: 800}"
ros -
-
Obtain the value of Scan2DSharpenFactor:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_2d_sharpen_factor
rosros2 service call /get_2d_sharpen_factor mecheye_ros_interface/srv/Get2DSharpenFactor
ros-
ROS 1
-
ROS 2
rosservice call /get_float_parameter "{name: Scan2DSharpenFactor}"
rosros2 service call /get_float_parameter mecheye_ros_interface/srv/GetFloatParameter "{name: Scan2DSharpenFactor}"
ros -
-
Set the value of Scan2DSharpenFactor:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_2d_sharpen_factor "{value: 0.5}"
rosros2 service call /set_2d_sharpen_factor mecheye_ros_interface/srv/Set2DSharpenFactor "{value: 0.5}"
ros-
ROS 1
-
ROS 2
rosservice call /set_float_parameter "{name: Scan2DSharpenFactor, value: 0.5}"
rosros2 service call /set_float_parameter mecheye_ros_interface/srv/SetFloatParameter "{name: Scan2DSharpenFactor, value: 0.5}"
ros -
-
Obtain the value of Scan2DToneMappingEnable:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_2d_tone_mapping
rosros2 service call /get_2d_tone_mapping mecheye_ros_interface/srv/Get2DToneMappingEnable
ros-
ROS 1
-
ROS 2
rosservice call /get_bool_parameter "{name: Scan2DToneMappingEnable}"
rosros2 service call /get_bool_parameter mecheye_ros_interface/srv/GetBoolParameter "{name: Scan2DToneMappingEnable}"
ros -
-
Set the value of Scan2DToneMappingEnable:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_2d_tone_mapping "{value: True}"
rosros2 service call /set_2d_tone_mapping mecheye_ros_interface/srv/Set2DToneMappingEnable "{value: True}"
ros-
ROS 1
-
ROS 2
rosservice call /set_bool_parameter "{name: Scan2DToneMappingEnable, value: True}"
rosros2 service call /set_bool_parameter mecheye_ros_interface/srv/SetBoolParameter "{name: Scan2DToneMappingEnable, value: True}"
ros -
-
Obtain the value of Scan3DExposureSequence:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_3d_exposure
rosros2 service call /get_3d_exposure mecheye_ros_interface/srv/Get3DExposure
ros-
ROS 1
-
ROS 2
rosservice call /get_float_array_parameter "{name: Scan3DExposureSequence}"
rosros2 service call /get_float_array_parameter mecheye_ros_interface/srv/GetFloatArrayParameter "{name: Scan3DExposureSequence}"
ros -
-
Set the value of Scan3DExposureSequence:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_3d_exposure "{sequence: [30.0,35.5,40.0]}"
rosros2 service call /set_3d_exposure mecheye_ros_interface/srv/Set3DExposure "{sequence: [30.0,35.5,40.0]}"
ros-
ROS 1
-
ROS 2
rosservice call /set_float_array_parameter "{name: Scan3DExposureSequence, array: [30.0, 35.5, 40.0]}"
rosros2 service call /set_float_array_parameter mecheye_ros_interface/srv/SetFloatArrayParameter "{name: Scan3DExposureSequence, array: [30.0, 35.5, 40.0]}"
ros -
-
Obtain the value of Scan3DGain:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_3d_gain
rosros2 service call /get_3d_gain mecheye_ros_interface/srv/Get3DGain
ros-
ROS 1
-
ROS 2
rosservice call /get_float_parameter "{name: Scan3DGain}"
rosros2 service call /get_float_parameter mecheye_ros_interface/srv/GetFloatParameter "{name: Scan3DGain}"
ros -
-
Set the value of Scan3DGain:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_3d_gain "{value: 2.5}"
rosros2 service call /set_3d_gain mecheye_ros_interface/srv/Set3DGain "{value: 2.5}"
ros-
ROS 1
-
ROS 2
rosservice call /set_float_parameter "{name: Scan3DGain, value: 2.5}"
rosros2 service call /set_float_parameter mecheye_ros_interface/srv/SetFloatParameter "{name: Scan3DGain, value: 2.5}"
ros -
-
Obtain the value of Scan3DROI:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_3d_roi
rosros2 service call /get_3d_roi mecheye_ros_interface/srv/Get3DROI
ros-
ROS 1
-
ROS 2
rosservice call /get_roi_parameter "{name: Scan3DROI}"
rosros2 service call /get_roi_parameter mecheye_ros_interface/srv/GetROIParameter "{name: Scan3DROI}"
ros -
-
Set the value of Scan3DROI:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_3d_roi "{x: 20, y: 20, width: 600, height: 800}"
rosros2 service call /set_3d_roi mecheye_ros_interface/srv/Set3DROI "{x: 20, y: 20, width: 600, height: 800}"
ros-
ROS 1
-
ROS 2
rosservice call /set_roi_parameter "{name: Scan3DROI, x: 20, y: 20, width: 600, height: 800}"
rosros2 service call /set_roi_parameter mecheye_ros_interface/srv/SetROIParameter "{name: Scan3DROI, x: 20, y: 20, width: 600, height: 800}"
ros -
-
Obtain the value of PointCloudOutlierRemoval:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_cloud_outlier_filter_mode
rosros2 service call /get_cloud_outlier_filter_mode mecheye_ros_interface/srv/GetCloudOutlierFilterMode
ros-
ROS 1
-
ROS 2
rosservice call /get_enum_parameter "{name: PointCloudOutlierRemoval}"
rosros2 service call /get_enum_parameter mecheye_ros_interface/srv/GetEnumParameter "{name: PointCloudOutlierRemoval}"
ros -
-
Set the value of PointCloudOutlierRemoval:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_cloud_outlier_filter_mode '!!str Off'
rosros2 service call /set_cloud_outlier_filter_mode mecheye_ros_interface/srv/SetCloudOutlierFilterMode "{value: 'Off'}"
ros-
ROS 1
-
ROS 2
rosservice call /set_enum_parameter "{name: PointCloudOutlierRemoval, value: 'Off'}"
rosros2 service call /set_enum_parameter mecheye_ros_interface/srv/SetEnumParameter "{name: PointCloudOutlierRemoval, value: 'Off'}"
rosThe Off option must be surrounded by single quotation marks. -
-
Obtain the value of PointCloudSurfaceSmoothing:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_cloud_smooth_mode
rosros2 service call /get_cloud_smooth_mode mecheye_ros_interface/srv/GetCloudSmoothMode
ros-
ROS 1
-
ROS 2
rosservice call /get_enum_parameter "{name: PointCloudSurfaceSmoothing}"
rosros2 service call /get_enum_parameter mecheye_ros_interface/srv/GetEnumParameter "{name: PointCloudSurfaceSmoothing}"
ros -
-
Set the value of PointCloudSurfaceSmoothing:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_cloud_smooth_mode '!!str Off'
rosros2 service call /set_cloud_smooth_mode mecheye_ros_interface/srv/SetCloudSmoothMode "{value: 'Off'}"
ros-
ROS 1
-
ROS 2
rosservice call /set_enum_parameter "{name: PointCloudSurfaceSmoothing, value: 'Off'}"
rosros2 service call /set_enum_parameter mecheye_ros_interface/srv/SetEnumParameter "{name: PointCloudSurfaceSmoothing, value: 'Off'}"
rosThe Off option must be surrounded by single quotation marks. -
-
Obtain the value of DepthRange:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_depth_range
rosros2 service call /get_depth_range mecheye_ros_interface/srv/GetDepthRange
ros-
ROS 1
-
ROS 2
rosservice call /get_range_parameter "{name: DepthRange}"
rosros2 service call /get_range_parameter mecheye_ros_interface/srv/GetRangeParameter "{name: DepthRange}"
ros -
-
Set the value of DepthRange:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_depth_range "{lower: 300, upper: 1000}"
rosros2 service call /set_depth_range mecheye_ros_interface/srv/SetDepthRange "{lower: 300, upper: 1000}"
ros-
ROS 1
-
ROS 2
rosservice call /set_range_parameter "{name: DepthRange, lower: 300, upper: 1000}"
rosros2 service call /set_range_parameter mecheye_ros_interface/srv/SetRangeParameter "{name: DepthRange, lower: 300, upper: 1000}"
ros -
-
Obtain the value of FringeContrastThreshold:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_fringe_contrast_threshold
rosros2 service call /get_fringe_contrast_threshold mecheye_ros_interface/srv/GetFringeContrastThreshold
ros-
ROS 1
-
ROS 2
rosservice call /get_int_parameter "{name: FringeContrastThreshold}"
rosros2 service call /get_int_parameter mecheye_ros_interface/srv/GetIntParameter "{name: FringeContrastThreshold}"
ros -
-
Set the value of FringeContrastThreshold:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_fringe_contrast_threshold "{value: 3}"
rosros2 service call /set_fringe_contrast_threshold mecheye_ros_interface/srv/SetFringeContrastThreshold "{value: 3}"
ros-
ROS 1
-
ROS 2
rosservice call /set_int_parameter "{name: FringeContrastThreshold, value: 3}"
rosros2 service call /set_int_parameter mecheye_ros_interface/srv/SetIntParameter "{name: FringeContrastThreshold, value: 3}"
ros -
-
Obtain the value of FringeMinThreshold:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_fringe_min_threshold
rosros2 service call /get_fringe_min_threshold mecheye_ros_interface/srv/GetFringeMinThreshold
ros-
ROS 1
-
ROS 2
rosservice call /get_int_parameter "{name: FringeMinThreshold}"
rosros2 service call /get_int_parameter mecheye_ros_interface/srv/GetIntParameter "{name: FringeMinThreshold}"
ros -
-
Set the value of FringeMinThreshold:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_fringe_min_threshold "{value: 3}"
rosros2 service call /set_fringe_min_threshold mecheye_ros_interface/srv/SetFringeMinThreshold "{value: 3}"
ros-
ROS 1
-
ROS 2
rosservice call /set_int_parameter "{name: FringeMinThreshold, value: 3}"
rosros2 service call /set_int_parameter mecheye_ros_interface/srv/SetIntParameter "{name: FringeMinThreshold, value: 3}"
ros -
-
Obtain the value of LaserPowerLevel:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_laser_settings
rosros2 service call /get_laser_settings mecheye_ros_interface/srv/GetLaserSettings
rosThis service sets the values of all the parameters in the Laser category. -
ROS 1
-
ROS 2
rosservice call /get_int_parameter "{name: LaserPowerLevel}"
rosros2 service call /get_int_parameter mecheye_ros_interface/srv/GetIntParameter "{name: LaserPowerLevel}"
ros -
-
Set the value of LaserPowerLevel:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_laser_settings "{fringe_coding_mode: Fast, frame_range_start: 20, frame_range_end: 80, frame_partition_count: 2, power_level: 60}"
rosros2 service call /set_laser_settings mecheye_ros_interface/srv/SetLaserSettings "{fringe_coding_mode: Fast, frame_range_start: 20, frame_range_end: 80, frame_partition_count: 2, power_level: 60}"
rosThis service sets the values of all the parameters in the Laser category. -
ROS 1
-
ROS 2
rosservice call /set_int_parameter "{name: LaserPowerLevel, value: 60}"
rosros2 service call /set_int_parameter mecheye_ros_interface/srv/SetIntParameter "{name: LaserPowerLevel, value: 60}"
ros -
-
Obtain the value of LaserFringeCodingMode:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_laser_settings
rosros2 service call /get_laser_settings mecheye_ros_interface/srv/GetLaserSettings
rosThis service sets the values of all the parameters in the Laser category. -
ROS 1
-
ROS 2
rosservice call /get_enum_parameter "{name: LaserFringeCodingMode}"
rosros2 service call /get_enum_parameter mecheye_ros_interface/srv/GetEnumParameter "{name: LaserFringeCodingMode}"
ros -
-
Set the value of LaserFringeCodingMode:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_laser_settings "{fringe_coding_mode: Fast, frame_range_start: 20, frame_range_end: 80, frame_partition_count: 2, power_level: 60}"
rosros2 service call /set_laser_settings mecheye_ros_interface/srv/SetLaserSettings "{fringe_coding_mode: Fast, frame_range_start: 20, frame_range_end: 80, frame_partition_count: 2, power_level: 60}"
rosThis service sets the values of all the parameters in the Laser category. -
ROS 1
-
ROS 2
rosservice call /set_enum_parameter "{name: LaserFringeCodingMode, value: Fast}"
rosros2 service call /set_enum_parameter mecheye_ros_interface/srv/SetEnumParameter "{name: LaserFringeCodingMode, value: Fast}"
ros -
-
Obtain the value of LaserFrameRange:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_laser_settings
rosros2 service call /get_laser_settings mecheye_ros_interface/srv/GetLaserSettings
rosThis service sets the values of all the parameters in the Laser category. -
ROS 1
-
ROS 2
rosservice call /get_range_parameter "{name: LaserFrameRange}"
rosros2 service call /get_range_parameter mecheye_ros_interface/srv/GetRangeParameter "{name: LaserFrameRange}"
ros -
-
Set the value of LaserFrameRange:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_laser_settings "{fringe_coding_mode: Fast, frame_range_start: 20, frame_range_end: 80, frame_partition_count: 2, power_level: 60}"
rosros2 service call /set_laser_settings mecheye_ros_interface/srv/SetLaserSettings "{fringe_coding_mode: Fast, frame_range_start: 20, frame_range_end: 80, frame_partition_count: 2, power_level: 60}"
rosThis service sets the values of all the parameters in the Laser category. -
ROS 1
-
ROS 2
rosservice call /set_range_parameter "{name: LaserFrameRange, lower: 20, upper: 80}"
rosros2 service call /set_range_parameter mecheye_ros_interface/srv/SetRangeParameter "{name: LaserFrameRange, lower: 20, upper: 80}"
ros -
-
Obtain the value of LaserFramePartitionCount:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_laser_settings
rosros2 service call /get_laser_settings mecheye_ros_interface/srv/GetLaserSettings
rosThis service sets the values of all the parameters in the Laser category. -
ROS 1
-
ROS 2
rosservice call /get_int_parameter "{name: LaserFramePartitionCount}"
rosros2 service call /get_int_parameter mecheye_ros_interface/srv/GetIntParameter "{name: LaserFramePartitionCount}"
ros -
-
Set the value of LaserFramePartitionCount:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_laser_settings "{fringe_coding_mode: Fast, frame_range_start: 20, frame_range_end: 80, frame_partition_count: 2, power_level: 60}"
rosros2 service call /set_laser_settings mecheye_ros_interface/srv/SetLaserSettings "{fringe_coding_mode: Fast, frame_range_start: 20, frame_range_end: 80, frame_partition_count: 2, power_level: 60}"
rosThis service sets the values of all the parameters in the Laser category. -
ROS 1
-
ROS 2
rosservice call /set_int_parameter "{name: LaserFramePartitionCount, value: 2}"
rosros2 service call /set_int_parameter mecheye_ros_interface/srv/SetIntParameter "{name: LaserFramePartitionCount, value: 2}"
ros -
-
Obtain the value of AntiFlickerMode:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_projector_anti_flicker_mode
rosros2 service call /get_projector_anti_flicker_mode mecheye_ros_interface/srv/GetProjectorAntiFlickerMode
ros-
ROS 1
-
ROS 2
rosservice call /get_enum_parameter "{name: AntiFlickerMode}"
rosros2 service call /get_enum_parameter mecheye_ros_interface/srv/GetEnumParameter "{name: AntiFlickerMode}"
ros -
-
Set the value of AntiFlickerMode:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_projector_anti_flicker_mode '!!str Off'
rosros2 service call /set_projector_anti_flicker_mode mecheye_ros_interface/srv/SetProjectorAntiFlickerMode "{value: 'Off'}"
ros-
ROS 1
-
ROS 2
rosservice call /set_enum_parameter "{name: AntiFlickerMode, value: 'Off'}"
rosros2 service call /set_enum_parameter mecheye_ros_interface/srv/SetEnumParameter "{name: AntiFlickerMode, value: 'Off'}"
rosThe Off option must be surrounded by single quotation marks. -
-
Obtain the value of ProjectorFringeCodingMode:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
-
Models other than UHP-140-GL:
rosservice call /get_projector_fringe_coding_mode
ros-
UHP-140-GL:
rosservice call /get_uhp_fringe_coding_mode
ros-
Models other than UHP-140-GL:
ros2 service call /get_projector_fringe_coding_mode mecheye_ros_interface/srv/GetProjectorFringeCodingMode
ros-
UHP-140-GL:
ros2 service call /get_uhp_fringe_coding_mode mecheye_ros_interface/srv/GetUhpFringeCodingMode
ros-
ROS 1
-
ROS 2
rosservice call /get_enum_parameter "{name: ProjectorFringeCodingMode}"
rosros2 service call /get_enum_parameter mecheye_ros_interface/srv/GetEnumParameter "{name: ProjectorFringeCodingMode}"
ros -
-
Set the value of ProjectorFringeCodingMode:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
-
Models other than UHP-140-GL:
rosservice call /set_projector_fringe_coding_mode "{value: Accurate}"
ros-
UHP-140-GL:
rosservice call /set_uhp_fringe_coding_mode "{value: Accurate}"
ros-
Models other than UHP-140-GL:
ros2 service call /set_projector_fringe_coding_mode mecheye_ros_interface/srv/SetProjectorFringeCodingMode "{value: Accurate}"
ros-
UHP-140-GL:
ros2 service call /set_uhp_fringe_coding_mode mecheye_ros_interface/srv/SetUhpFringeCodingMode "{value: Accurate}"
ros-
ROS 1
-
ROS 2
rosservice call /set_enum_parameter "{name: ProjectorFringeCodingMode, value: Accurate}"
rosros2 service call /set_enum_parameter mecheye_ros_interface/srv/SetEnumParameter "{name: ProjectorFringeCodingMode, value: Accurate}"
ros -
-
Obtain the value of ProjectorPowerLevel:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_projector_power_level
rosros2 service call /get_projector_power_level mecheye_ros_interface/srv/GetProjectorPowerLevel
ros-
ROS 1
-
ROS 2
rosservice call /get_enum_parameter "{name: ProjectorPowerLevel}"
rosros2 service call /get_enum_parameter mecheye_ros_interface/srv/GetEnumParameter "{name: ProjectorPowerLevel}"
ros -
-
Set the value of ProjectorPowerLevel:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_projector_power_level "{value: High}"
rosros2 service call /set_projector_power_level mecheye_ros_interface/srv/SetProjectorPowerLevel "{value: High}"
ros-
ROS 1
-
ROS 2
rosservice call /set_enum_parameter "{name: ProjectorPowerLevel, value: High}"
rosros2 service call /set_enum_parameter mecheye_ros_interface/srv/SetEnumParameter "{name: ProjectorPowerLevel, value: High}"
ros -
-
Obtain the value of UhpCaptureMode:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /get_uhp_capture_mode
rosros2 service call /get_uhp_capture_mode mecheye_ros_interface/srv/GetUhpCaptureMode
ros-
ROS 1
-
ROS 2
rosservice call /get_enum_parameter "{name: UhpCaptureMode}"
rosros2 service call /get_enum_parameter mecheye_ros_interface/srv/GetEnumParameter "{name: UhpCaptureMode}"
ros -
-
Set the value of UhpCaptureMode:
2.0.2 and below 2.3.4 and above -
ROS 1
-
ROS 2
rosservice call /set_uhp_capture_mode "{capture_mode: Merge}"
rosros2 service call /set_uhp_capture_mode mecheye_ros_interface/srv/SetUhpCaptureMode "{capture_mode: Merge}"
ros-
ROS 1
-
ROS 2
rosservice call /set_enum_parameter "{name: UhpCaptureMode, value: Merge}"
rosros2 service call /set_enum_parameter mecheye_ros_interface/srv/SetEnumParameter "{name: UhpCaptureMode, value: Merge}"
ros -