Quantcast

Locking a robot in the vewer

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Locking a robot in the vewer

MattTaylor
Hi All,

I'm working on a quick demo where I have loaded two robots into a scene. One robot is going to be controlled by the user and the other will be controlled by a forward predictor to check for collisions ahead of time.

Is there a way I can 'lock' one robot in the viewer so that the user cannot click on it or change it's values?

Thanks,
Matt
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Locking a robot in the vewer

Rosen Diankov
Administrator
sure, you can temporary set the joint limits to be the exact values you want the robot to have:

robot.SetDOFLimits(lower,upper)

rosen,


2013/8/19 MattTaylor <[hidden email]>
Hi All,

I'm working on a quick demo where I have loaded two robots into a scene. One
robot is going to be controlled by the user and the other will be controlled
by a forward predictor to check for collisions ahead of time.

Is there a way I can 'lock' one robot in the viewer so that the user cannot
click on it or change it's values?

Thanks,
Matt



--
View this message in context: http://openrave-users-list.185357.n3.nabble.com/Locking-a-robot-in-the-vewer-tp4026694.html
Sent from the OpenRAVE Users List mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Locking a robot in the vewer

MattTaylor
Thanks Rosen.

That works great for locking the position.

Is there a way to disable user interaction from the viewer all together for a KinBody or robot? Most of the time the models are aligned together, and I'm finding that sometimes a mouse click selects the locked one instead of the movable one.

It's not a big problem, but if it's possible it would be useful to know.

Thanks,
Matt

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Locking a robot in the vewer

Rosen Diankov
Administrator
you can always draw a silhouette of the robot using the Environment drawtrimesh and plotting functions, and make the robot you don't want users touching invisible (using SetVisible(False))

other than that, it's not possible...


2013/8/19 MattTaylor <[hidden email]>
Thanks Rosen.

That works great for locking the position.

Is there a way to disable user interaction from the viewer all together for
a KinBody or robot? Most of the time the models are aligned together, and
I'm finding that sometimes a mouse click selects the locked one instead of
the movable one.

It's not a big problem, but if it's possible it would be useful to know.

Thanks,
Matt





--
View this message in context: http://openrave-users-list.185357.n3.nabble.com/Locking-a-robot-in-the-vewer-tp4026694p4026696.html
Sent from the OpenRAVE Users List mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Openrave-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openrave-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Locking a robot in the vewer

MattTaylor
Ok, great, I'll keep that in mind for the future.

Right now I'm only using the viewer to quickly demo ideas for myself and the team, so I can live with the viewer as is.

Thanks,
Matt
Loading...