Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Controllers dev #71

Merged
merged 38 commits into from
Aug 17, 2016
Merged

Controllers dev #71

merged 38 commits into from
Aug 17, 2016

Conversation

gabrielenava
Copy link
Contributor

The balancing controllers have been updated to the last version. Their structure have been changed in order to be more user-friendly. Various bugs in the balancing controller fixed. Some never-used functions have been deleted, while other functions moved into mex-wholebodymodel/matlab/utilities. A new function startupMex.m(copied from the WB Toolbox) have been created, in order to permanently add the installation folders to the matlab path.

Conflicts:
	README.md
	matlab-src/jointSpaceLinearization/README.md
	matlab-src/torqueBalancing_matlab/JointSpace_balancing/forwardDynamics_js.m
	matlab-src/torqueBalancing_matlab/JointSpace_balancing/integrateForwardDynamics_js.m
	matlab-src/torqueBalancing_matlab/JointSpace_balancing/inverseKinematics/ikin_graphics.m
	matlab-src/torqueBalancing_matlab/JointSpace_balancing/visualizer_js.m
	matlab-src/torqueBalancing_matlab/StackOfTask_balancing/forwardDynamics_SoT.m
	matlab-src/torqueBalancing_matlab/StackOfTask_balancing/stackOfTaskController.m
	matlab-src/torqueBalancing_matlab/StackOfTask_balancing/visualizer_SoT.m
	mex-wholebodymodel/matlab/utilities/fromMesh2sortedVector.m
	mex-wholebodymodel/matlab/utilities/plot_set.m
	mex-wholebodymodel/matlab/utilities/roty.m
	mex-wholebodymodel/matlab/utilities/sortedVector2mesh.m
	mex-wholebodymodel/matlab/utilities/stateDemux.m
@@ -0,0 +1,3 @@
## mexTorqueBalancing1.0

This is the implementation of iCub balancing controller using MATLAB. The code is organizaed using different modules.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: organizaed --> organized

xyzpairs(jj,1)+qq2(1) , xyzpairs(jj,3)+qq2(2) , xyzpairs(jj,5)+qq2(3);
xyzpairs(jj,1)+qq3(1) , xyzpairs(jj,3)+qq3(2) , xyzpairs(jj,5)+qq3(3);
xyzpairs(jj,1)+qq4(1) , xyzpairs(jj,3)+qq4(2) , xyzpairs(jj,5)+qq4(3)];

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gabrielenava In the future, please check before blindly trusting automatic tools such as "Smart indent" : in this case for example the old version was much more readable.

# The following line is to properly configure the installation script of the Mex-toolbox
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/startup_Mex.m.in ${CMAKE_BINARY_DIR}/startup_Mex.m)
# Install configuration files
install(FILES ${CMAKE_BINARY_DIR}/startup_Mex.m DESTINATION ${CMAKE_INSTALL_PREFIX}/mex)
Copy link
Contributor

@traversaro traversaro Aug 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can avoid to add explictly ${CMAKE_BINARY_DIR} in the files because this is the directory in which CMake is currently working, and to add ${CMAKE_INSTALL_PREFIX} from the DESTINATION argument due to how the install CMake function works.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Furthermore, startup_Mex.m is a bit confusing name , as mex is a generic suffix. startup_mexwholebodymodel.m perhaps could be a better name.

@gabrielenava gabrielenava merged commit aa6199f into master Aug 17, 2016
@gabrielenava gabrielenava deleted the controllers_dev branch August 25, 2016 10:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants