Skip to content

child script for newer version #2

@JadBatmobile

Description

@JadBatmobile

For recent versions of V-REP, i had to modify the child script in MyRobot.ttt to:

`
-- Initialization.
if (sim_call_type == sim.syscb_init) then

-- Reset target velocities (which may have been modified at a previous session).
front_left_wheel_joint = sim.getObjectHandle('front_left_wheel_joint')
back_left_wheel_joint = sim.getObjectHandle('back_left_wheel_joint')
back_right_wheel_joint = sim.getObjectHandle('back_right_wheel_joint')
front_right_wheel_joint = sim.getObjectHandle('front_right_wheel_joint')

sim.setJointTargetVelocity(front_left_wheel_joint,  0)
sim.setJointTargetVelocity(back_left_wheel_joint,   0)
sim.setJointTargetVelocity(back_right_wheel_joint,  0)
sim.setJointTargetVelocity(front_right_wheel_joint, 0)

end
`

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