Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

child script for newer version #2

Open
JadBatmobile opened this issue May 5, 2019 · 0 comments
Open

child script for newer version #2

JadBatmobile opened this issue May 5, 2019 · 0 comments

Comments

@JadBatmobile
Copy link

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
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant