Open cgrain opened 4 years ago
I fixed it by using a terrible fix: At the appropiate place in the c++ code of the realsense node, I plugged in:
if (serial_no == "42") {
serial_no = "017322071690"
}
Which obviously only works for me, and I can't update the package now, anymore. So this is still a bug that needs to be fixed, But a small look at the ticket times shows that a workaround like this is probably the best idea.
I tried to launch multiple camera's, and I presumed it would not be much of an hassle. Simply plug in the numbers and it should be all set (Code block 1). However, this string gets silently converted to a double (Note the leading zero's) which is not what was expected, and therefore it crashes. (Code block 2). I tried removing the leading zero's and the quotes (Code block 3), but that resulted in another error, because apparently 00xx != xx (Code block 4). Please note that in Python, leading zero's are not allowed in literals. i.e.
default=00xx
gives an syntax error and will not run at all.I am wondering if anybody encountered a similar problem and has a fix.
I am using ROS2-Foxy and the refactor branch on Ubuntu 20.