Skip to content

How is the picked_particles updated for robot_exp case? #7

@CWEzio

Description

@CWEzio

Thank you for open-sourcing your work. In the ClothDataset._find_and_update_picked_point method, it seems that picked_particles has never been updated:

 #line 284
       if robot_exp:
            new_picker_pos = None
            num_picker = 2
            for i in range(num_picker):
                if pick_flag[i]:
                    if picked_particles[i] != -1:
                        old_pos = vox_pc[picked_particles[i]]
                        new_pos = vox_pc[picked_particles[i]] + action[i, :3]
                        new_vel = (new_pos - old_pos) / (self.dt*self.args.pred_time_interval)

                        tmp_vel_history = (velocity_his[picked_particles[i]][:-3]).copy()
                        velocity_his[picked_particles[i], 3:] = tmp_vel_history
                        velocity_his[picked_particles[i], :3] = new_vel
                        vox_pc[picked_particles[i]] = new_pos

                        picked_velocity.append(velocity_his[picked_particles[i]])
                        picked_pos.append(new_pos)
                else:
                    picked_particles[i] = -1

Is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions