Skip to content

Service calls fail with "Can not get dev packet! Set failed!" error #6

@boxanm

Description

@boxanm

We have the LS128S1 lidar and use the LS-S1_V1.0 branch. I've been trying to change some parameters using the provided service calls. However, they all fail with the following error:

Can not get dev packet! Set failed!

After some more investigation, I notice that the failure always happens on this if statement:

if (config_data[0] != 0xa5 || config_data[1] != 0xff || config_data[2] != 0x00 || config_data[3] != 0x5a) {
            res->result = 0;
            LS_ERROR << "Can not get dev packet! Set failed!" << LS_END;
            return true;
        }

for example here.
Is there something I'm missing? Do you need to change the lidar's state first to not publish scans in order to modify the parameters?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions