Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit 9b77642

Browse files
committed
Corrected angle shift parameter for LMS-4xxx
1 parent 9f6b85d commit 9b77642

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
Changelog for package sick_scan
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
1.12.1
6+
-------------------
7+
* Corrected angle shift parameter for LMS-4xxx
8+
59
1.12.0
610
-------------------
711
* bugfix #158 (driver terminates)

driver/src/sick_generic_caller.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
// 1.7.7: 2020-07-21: barebone quaterion to euler
122122
#define SICK_GENERIC_MAJOR_VER "1"
123123
#define SICK_GENERIC_MINOR_VER "12"
124-
#define SICK_GENERIC_PATCH_LEVEL "0"
124+
#define SICK_GENERIC_PATCH_LEVEL "1"
125125

126126
#include <algorithm> // for std::min
127127

driver/src/sick_generic_parser.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ namespace sick_scan
346346
{
347347
return this->maxEvalFields;
348348
}
349-
349+
350350
void ScannerBasicParam::setMaxEvalFields(int _maxEvalFields)
351351
{
352352
this->maxEvalFields = _maxEvalFields;
@@ -514,7 +514,7 @@ namespace sick_scan
514514
basicParams[i].setScanMirroredAndShifted(false);
515515
basicParams[i].setUseEvalFields(EVAL_FIELD_UNSUPPORTED);
516516
basicParams[i].setMaxEvalFields(0);
517-
basicParams[i].setScanAngleShift(0);
517+
basicParams[i].setScanAngleShift(-M_PI/2);
518518
}
519519
if (basicParams[i].getScannerName().compare(SICK_SCANNER_TIM_7XX_NAME) == 0) // TIM_7xx - 1 Layer Scanner
520520
{
@@ -848,10 +848,10 @@ namespace sick_scan
848848
sensor_msgs::LaserScan &msg, int &numEchos, int &echoMask)
849849
{
850850
// echoMask introduced to get a workaround for cfg bug using MRS1104
851-
// ros::NodeHandle tmpParam("~");
851+
// ros::NodeHandle tmpParam("~");
852852
bool dumpData = false;
853853
int verboseLevel = 0;
854-
// tmpParam.getParam("verboseLevel", verboseLevel);
854+
// tmpParam.getParam("verboseLevel", verboseLevel);
855855

856856
int HEADER_FIELDS = 32;
857857
char *cur_field;

0 commit comments

Comments
 (0)