Giter Club home page Giter Club logo

Comments (9)

ssw03270 avatar ssw03270 commented on August 26, 2024 2

tdw_mat/transport_challenge_multi_agent/reach_for_transport_challenge.py
line 25,

super().__init__(targets=[target],

from co-llm-agents.

ssw03270 avatar ssw03270 commented on August 26, 2024 1

tdw_mat/transport_challenge_multi_agent/reach_for_transport_challenge.py line 25,
super().__init__(targets=[target],

Thank you for your answer. I would like to ask how long demo_scene.py takes to run

The program took about 1 minute to execute

from co-llm-agents.

xiaohai-AI avatar xiaohai-AI commented on August 26, 2024

after execute python demo/demo_scene.py
got the following same error:
Traceback (most recent call last):
File "/home/dan/proj2024_2/Co-LLM-Agents/tdw_mat/demo/demo_scene.py", line 147, in
data = c.communicate([])
File "/home/dan/anaconda3/envs/mamba/envs/tdw_mat/lib/python3.9/site-packages/tdw/controller.py", line 160, in communicate
m.on_send(resp=resp)
File "/home/dan/anaconda3/envs/mamba/envs/tdw_mat/lib/python3.9/site-packages/tdw/add_ons/replicant.py", line 170, in on_send
initialization_commands = self.action.get_initialization_commands(resp=resp,
File "/home/dan/proj2024_2/Co-LLM-Agents/tdw_mat/transport_challenge_multi_agent/put_in.py", line 94, in get_initialization_commands
return self._move_object_arm_away(resp=resp, static=static, dynamic=dynamic)
File "/home/dan/proj2024_2/Co-LLM-Agents/tdw_mat/transport_challenge_multi_agent/put_in.py", line 158, in _move_object_arm_away
self._sub_action = ReachForTransportChallenge(target={k: v for k, v in target.items()},
File "/home/dan/proj2024_2/Co-LLM-Agents/tdw_mat/transport_challenge_multi_agent/reach_for_transport_challenge.py", line 25, in init
super().init(target=target,
TypeError: init() got an unexpected keyword argument 'target'

from co-llm-agents.

Icefoxzhx avatar Icefoxzhx commented on August 26, 2024

Which tdw version are you using?
It's recommended to use the same version as in tdw_mat/requirements.txt tdw==1.11.23.5
With a different version, there may be conflicts regarding replicants' actions.

from co-llm-agents.

311706029 avatar 311706029 commented on August 26, 2024

Following are the output after executing python demo/demo_scene.py
Which is the same version as the requirements.txt but still have the TypeError

You are using TDW 1.11.23.5 but version 1.12.24.1 is available.
Consider upgrading to the latest version of TDW (1.12.24):
pip3 install tdw -U
Build version 1.11.23
Unity Engine 2020.3.24f1
Python tdw module version 1.11.23
{<Arm.left: 0>: 13013409, <Arm.right: 1>: 6753020}
[13013409]
[6753020, 2540002, 11266758, 8676814, 4546869, 3843252]
Arm.left Arm.right
Traceback (most recent call last):
File "/home/eclab/projects/hermit/collm/Co-LLM-Agents(base1)/tdw_mat/demo/demo_scene.py", line 147, in
data = c.communicate([])
File "/home/eclab/anaconda3/envs/tdw_mat/lib/python3.9/site-packages/tdw/controller.py", line 160, in communicate
m.on_send(resp=resp)
File "/home/eclab/anaconda3/envs/tdw_mat/lib/python3.9/site-packages/tdw/add_ons/replicant.py", line 170, in on_send
initialization_commands = self.action.get_initialization_commands(resp=resp,
File "/home/eclab/projects/hermit/collm/Co-LLM-Agents(base1)/tdw_mat/transport_challenge_multi_agent/put_in.py", line 94, in get_initialization_commands
return self._move_object_arm_away(resp=resp, static=static, dynamic=dynamic)
File "/home/eclab/projects/hermit/collm/Co-LLM-Agents(base1)/tdw_mat/transport_challenge_multi_agent/put_in.py", line 158, in _move_object_arm_away
self._sub_action = ReachForTransportChallenge(target={k: v for k, v in target.items()},
File "/home/eclab/projects/hermit/collm/Co-LLM-Agents(base1)/tdw_mat/transport_challenge_multi_agent/reach_for_transport_challenge.py", line 25, in init
super().init(target=target,
TypeError: init() got an unexpected keyword argument 'target'

from co-llm-agents.

bluehyena avatar bluehyena commented on August 26, 2024

I'm experiencing the same error in tdw==1.11.23.5

You are using TDW 1.11.23.5 but version 1.12.24.2 is available.
Consider upgrading to the latest version of TDW (1.12.24):
pip3 install tdw -U
Build version 1.11.23
Unity Engine 2020.3.24f1
Python tdw module version 1.11.23
{<Arm.left: 0>: 6884406, <Arm.right: 1>: 7100798}
[6884406]
[7100798, 4938454, 16761474, 2307674, 6251514, 8346748]
Arm.left Arm.right
Traceback (most recent call last):
File "/data/LeeJH/Co-LLM-Agents/tdw_mat/demo/demo_scene.py", line 147, in
data = c.communicate([])
File "/home/guest1/miniconda3/envs/tdw_mat/lib/python3.9/site-packages/tdw/controller.py", line 160, in communicate
m.on_send(resp=resp)
File "/home/guest1/miniconda3/envs/tdw_mat/lib/python3.9/site-packages/tdw/add_ons/replicant.py", line 170, in on_send
initialization_commands = self.action.get_initialization_commands(resp=resp,
File "/data/LeeJH/Co-LLM-Agents/tdw_mat/transport_challenge_multi_agent/put_in.py", line 94, in get_initialization_commands
return self._move_object_arm_away(resp=resp, static=static, dynamic=dynamic)
File "/data/LeeJH/Co-LLM-Agents/tdw_mat/transport_challenge_multi_agent/put_in.py", line 158, in _move_object_arm_away
self._sub_action = ReachForTransportChallenge(target={k: v for k, v in target.items()},
File "/data/LeeJH/Co-LLM-Agents/tdw_mat/transport_challenge_multi_agent/reach_for_transport_challenge.py", line 25, in init
super().init(target=target,
TypeError: init() got an unexpected keyword argument 'target'

from co-llm-agents.

jliu4ai avatar jliu4ai commented on August 26, 2024

Does this issue also lead to that sometimes the agents goes through the wall and stay out of the all homes?

from co-llm-agents.

hugyu avatar hugyu commented on August 26, 2024

tdw_mat/transport_challenge_multi_agent/reach_for_transport_challenge.py line 25,

super().__init__(targets=[target],

Thank you for your answer. I would like to ask how long demo_scene.py takes to run

from co-llm-agents.

StigLidu avatar StigLidu commented on August 26, 2024

Thank you all for your contributions and patience with this issue.

The problem arose due to an update in the TDW environment in version 1.11.20, where the parameter name was changed from target to targets.

We have addressed this bug in the latest commit by changing target to targets.

from co-llm-agents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.