Search found 27 matches

by ravi
16 Nov 2016, 08:52
Forum: General questions
Topic: Returning 2D array from plugin
Replies: 2
Views: 1879

Re: Returning 2D array from plugin

Thanks admin,
One easy alternative is to convert 2d array into 1d array and then use standard data item i.e., CScriptFunctionDataItem(const std::vector<double>& v).

Thank you very much for introducing me to stack functions.
by ravi
15 Nov 2016, 10:43
Forum: General questions
Topic: Returning 2D array from plugin
Replies: 2
Views: 1879

Returning 2D array from plugin

Hi, I want to return 2D double array from CPP plugin. Below is the common way to return data from a function inside plugin- std::string data="this is a string."; D.pushOutData(CScriptFunctionDataItem(data)); D.writeDataToStack(cb->stackID); The current available CScriptFunctionDataItem doe...
by ravi
14 Nov 2016, 04:21
Forum: General questions
Topic: Unable to compile plugin showing error missing separator
Replies: 2
Views: 1958

Re: Unable to compile plugin showing error missing separator

Thank you very much. It is working now.
by ravi
12 Nov 2016, 08:17
Forum: General questions
Topic: Unable to compile plugin showing error missing separator
Replies: 2
Views: 1958

Unable to compile plugin showing error missing separator

Hi, I am trying to write a plugin. So before starting plugin development, I tried to compile the existing plugin ( v_repExtBubbleRob and v_repExtPluginSkeleton ) and tried to see how they work. But it is showing following error- ravi@lab:~/V-REP_PRO_EDU_V3_3_2_64_Linux/programming/v_repExtBubbleRob$...
by ravi
08 Nov 2016, 11:47
Forum: General questions
Topic: Calculating Mass Inertia Matrix from URDF
Replies: 3
Views: 3826

Re: Calculating Mass Inertia Matrix from URDF

Seems feasible, although I haven't checked the references you have given above. Since, I am new to VREP, the plugin isn't clear to me, I need to read the documentation once again. Other than that, in case of CPP code, it is present in form of compiled library .so file. Can you please briefly summari...
by ravi
04 Nov 2016, 13:57
Forum: General questions
Topic: Calculating Mass Inertia Matrix from URDF
Replies: 3
Views: 3826

Calculating Mass Inertia Matrix from URDF

Hi, I want to calculate the Mass Inertia Matrix from URDF in Lua. Earlier, I was using pykdl [1] in ros (python), which has a function for calculating inertia matrix [2,3]. pykdl uses KDL structure internally, which can be initialized from URDF file. The python library pykdl, internally uses Orocos ...
by ravi
04 Nov 2016, 12:16
Forum: General questions
Topic: Torque based control of Baxter Arm using python
Replies: 1
Views: 1517

Torque based control of Baxter Arm using python

Hi, I am trying to control Baxter in torque control mode. The implementation in Lua scripts is getting difficult as I have to write code to calculate Joint Inertia Matrix from URDF. Hence I decided to switch to python remote API. I am looking for an example of controlling robot arm in torque mode. I...