Closed eisoku9618 closed 9 months ago
InitFromKinBodyInfo() updates readable interfaces (i.e. keeps existing readable interfaces unless specified), but I think it should initialize them because the function name contains Init instead of Update.
InitFromKinBodyInfo()
Init
Update
body = RaveCreateKinBody(env, '') kbi = KinBodyInfo() kbi.DeserializeJSON({'readableInterfaces': {'new': 'hoge'}}) body.SetReadableInterface('old', stringreaders.CreateStringReadable('old', 'fuga')) body.InitFromKinBodyInfo(kbi) body.GetReadableInterfaces()
For example, body should have new readable interface only in this case.
body
new
We should initialize readable interfaces not only for InitFromKinBodyInfo() but also for the other InitXXX such as InitFromBoxes().
InitXXX
InitFromBoxes()
Thanks
InitFromKinBodyInfo()
updates readable interfaces (i.e. keeps existing readable interfaces unless specified), but I think it should initialize them because the function name containsInit
instead ofUpdate
.For example,
body
should havenew
readable interface only in this case.We should initialize readable interfaces not only for
InitFromKinBodyInfo()
but also for the otherInitXXX
such asInitFromBoxes()
.