跳转至

Pickable object

Historical source, not current validated instructions. Original English content is retained for completeness. For execution use the current Getting Started and current UnrealCV command guide; do not copy historical commands without checking current compatibility.

Original source

This interactive must be incorporated with a human character

vbp {character name} set_pickup

Class Name: BP_GrabMoveDrop_C

vbp {instance_name} {bp_function} {args1} {args2} ...

BP_function input output help
is_picked {
“is_picked”:“0”
}
return the object state, is picked or not (0/1)
set_app {id} set the appearance of the agent object, id: 0~20
### 💡Hint

You could manually spawn pickable objects and set their location by calling the unrealcv api:

self.unrealcv.set_new_obj(self, class_name, obj_name)

self.unrealcv.set_obj_location(self, obj, loc)

Example:

self.unrealcv.set_new_obj(self, BP_GrabMoveDrop_C, pickable_object_1)

self.unrealcv.set_obj_location(self, pickable_object_1, [0,0,100])