You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I build and install graspit form here https://github.com/jvarley/graspit/wiki/CGDB-Integration to use cgdb. I import the HumanHand16DOF. But when I load grasps for this hand, it failed.
Finaly I fixed the bug. Here is my solution.
1.Go to about line 231 int graspit/src/DBase/DBPlanner/sql_databse_manager.cpp
2.Find this statement if (!database_.Query("SELECT * FROM get_grasps('" + model.ModelName() + "','" + hand_name + "');", &results)) ;
3.The reason is that the hand_name="Human", but in the cgdb hand_name="HUMAN". So transform the hand_name to upper case. Then it works. Here is how I transform the hand_name using transform() function in STL.
Remember you should include the header file: #include <algorithm>
4. Finaly, I load grasps succesfully.
The text was updated successfully, but these errors were encountered:
I build and install graspit form here https://github.com/jvarley/graspit/wiki/CGDB-Integration to use cgdb. I import the HumanHand16DOF. But when I load grasps for this hand, it failed.
Finaly I fixed the bug. Here is my solution.
1.Go to about line 231 int graspit/src/DBase/DBPlanner/sql_databse_manager.cpp
2.Find this statement
if (!database_.Query("SELECT * FROM get_grasps('" + model.ModelName() + "','" + hand_name + "');", &results)) ;
3.The reason is that the hand_name="Human", but in the cgdb hand_name="HUMAN". So transform the hand_name to upper case. Then it works. Here is how I transform the hand_name using transform() function in STL.
Remember you should include the header file:
#include <algorithm>
4. Finaly, I load grasps succesfully.
The text was updated successfully, but these errors were encountered: