Skip to content
Snippets Groups Projects
Commit 465ddf3b authored by Johannes Mey's avatar Johannes Mey
Browse files

update mapping rule

parent 4e5a4f97
Branches
No related tags found
No related merge requests found
Pipeline #7081 passed
......@@ -19,7 +19,7 @@ SerializeRobotConfig maps config.Robotconfig.RobotConfig rc to byte[] {:
LinkStateToIntPosition maps panda.Linkstate.PandaLinkState pls to IntPosition {:
panda.Linkstate.PandaLinkState.Position p = pls.getPos();
return IntPosition.of((int) (p.getPositionX() * 10), (int) (p.getPositionY() * 10), (int) (p.getPositionZ() * 10));
return IntPosition.of((int) (Math.round(p.getPositionX() * 2)), (int) (Math.round(p.getPositionY() * 2)), (int) (Math.round(p.getPositionZ() * 2 + 0.5)));
:}
CreateSpeedMessage maps double speed to config.Robotconfig.RobotConfig {:
......
......@@ -102,7 +102,7 @@ public class StarterMain {
.setEnableOrientation(false)
.setEnableTwistAngular(false)
.setEnableTwistLinear(false)
.setPublishRate(1000)
.setPublishRate(100)
.build();
mainHandler.publish(dataConfigTopic, dataConfig.toByteArray());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment