Skip to content

Commit

Permalink
sync with previous community fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathy committed Dec 27, 2023
1 parent ec056b2 commit c06bc7b
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 1,080 deletions.
2 changes: 1 addition & 1 deletion pyrcareworld/pyrcareworld/agents/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def setJointTorques(self, joint_torques: list) -> None:
@return:
"""
self.env.instance_channel.set_action(
"AddJointForce", id=self.id, joint_forces=joint_torques
"AddJointTorque", id=self.id, joint_torques=joint_torques
)

def setJointForcesAtPositions(
Expand Down
12 changes: 6 additions & 6 deletions pyrcareworld/pyrcareworld/attributes/controller_attr.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,17 +225,17 @@ def AddJointForceAtPosition(kwargs: dict) -> OutgoingMessage:
utility.CheckKwargs(kwargs, compulsory_params)

msg = OutgoingMessage()
joint_positions = kwargs["joint_forces"]
joint_forces = kwargs["joint_forces"]
forces_position = kwargs["forces_position"]
num_joints = len(joint_positions)
num_joints = len(joint_forces)

msg.write_int32(kwargs["id"])
msg.write_string("AddJointForceAtPosition")
msg.write_int32(num_joints)
for i in range(num_joints):
msg.write_float32(joint_positions[i][0])
msg.write_float32(joint_positions[i][1])
msg.write_float32(joint_positions[i][2])
msg.write_float32(joint_forces[i][0])
msg.write_float32(joint_forces[i][1])
msg.write_float32(joint_forces[i][2])
msg.write_float32(forces_position[i][0])
msg.write_float32(forces_position[i][1])
msg.write_float32(forces_position[i][2])
Expand All @@ -253,7 +253,7 @@ def AddJointTorque(kwargs: dict) -> OutgoingMessage:
num_joints = len(joint_torque)

msg.write_int32(kwargs["id"])
msg.write_string("AddJointTorque")
msg.write_string("AddRelativeTorque")
msg.write_int32(num_joints)
for i in range(num_joints):
msg.write_float32(joint_torque[i][0])
Expand Down
37 changes: 0 additions & 37 deletions pyrcareworld/pyrcareworld/envs/learning_envs/__init__.py

This file was deleted.

162 changes: 0 additions & 162 deletions pyrcareworld/pyrcareworld/envs/learning_envs/bed_bathing_env.py

This file was deleted.

Loading

0 comments on commit c06bc7b

Please sign in to comment.