You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I found a problem when trying to update the current position of the agent using this:
local PositionTrigger = require 'common.position_trigger'
myTriggers = PositionTrigger.new()
myTriggers:update(currentPosition)
If currentPosition is, for example, equal to {0, 0} (I mean, manually placing any two values and in this way creating an explicit table), then there is not any problem. However, if I try to create a table as {tonumber(cp(1)), tonumber(cp(2))} with cp = tensor.DoubleTensor(game:playerInfo().pos), then I get this error error message:
[deepmind/engine/context.cc:843] Check failed: result.ok()[hasEpisodeFinished] - [deepmind.lab.LuaMazeGeneration.fromWorldPos] - [fromWorldPos] - Must provide x, y
I still do not know how to solve this issue and why both ways to create a table are different. I would appreciate if you can let me know how to solve this problem. Thank you in advance!
The text was updated successfully, but these errors were encountered:
Hi, I found a problem when trying to update the current position of the agent using this:
local PositionTrigger = require 'common.position_trigger'
myTriggers = PositionTrigger.new()
myTriggers:update(currentPosition)
If currentPosition is, for example, equal to {0, 0} (I mean, manually placing any two values and in this way creating an explicit table), then there is not any problem. However, if I try to create a table as {tonumber(cp(1)), tonumber(cp(2))} with cp = tensor.DoubleTensor(game:playerInfo().pos), then I get this error error message:
[deepmind/engine/context.cc:843] Check failed: result.ok()[hasEpisodeFinished] - [deepmind.lab.LuaMazeGeneration.fromWorldPos] - [fromWorldPos] - Must provide x, y
I still do not know how to solve this issue and why both ways to create a table are different. I would appreciate if you can let me know how to solve this problem. Thank you in advance!
The text was updated successfully, but these errors were encountered: