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

Build Faliure #3

Closed
vidurvij opened this issue Apr 8, 2019 · 5 comments
Closed

Build Faliure #3

vidurvij opened this issue Apr 8, 2019 · 5 comments

Comments

@vidurvij
Copy link

vidurvij commented Apr 8, 2019

Getting this error when trying to build project from github clone:

In file included from /media/vidur/DATA/ambf/ambf_ros_modules/ambf_comm/include/ambf_comm/Object.h:49:0,
from /media/vidur/DATA/ambf/external/chai3d-bullet/src/CBulletGenericObject.h:56,
from /media/vidur/DATA/ambf/ambf_framework/afGripper.h:51,
from /media/vidur/DATA/ambf/ambf_framework/afGripper.cpp:46:
/media/vidur/DATA/ambf/ambf_ros_modules/ambf_comm/include/ambf_comm/ObjectRosCom.h:49:10: fatal error: ambf_msgs/ObjectState.h: No such file or directory
#include "ambf_msgs/ObjectState.h"
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/ambf_framework.dir/build.make:62: recipe for target 'CMakeFiles/ambf_framework.dir/ambf_framework/afGripper.cpp.o' failed
make[2]: *** [CMakeFiles/ambf_framework.dir/ambf_framework/afGripper.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ambf_framework.dir/all' failed
make[1]: *** [CMakeFiles/ambf_framework.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

@adnanmunawar
Copy link
Member

Can you please clear your build folder by running cd ~/ambf/build/ && rm -rf * and then rerun cmake as cmake .. and finally use make -j8 rather than make in the build folder. This should hopefully be a temporary fix while I am still looking to fix it properly.

@vidurvij
Copy link
Author

vidurvij commented Apr 8, 2019

I tried the above instruction but the build error persists although at a different completion percentage.

[ 32%] Building C object CMakeFiles/ambf_framework.dir/external/openal/Alc/backends/mmdevapi.c.o
/home/vidur/Desktop/ambf/external/openal/Alc/backends/alsa.c:34:10: fatal error: alsa/asoundlib.h: No such file or directory
#include <alsa/asoundlib.h>
^~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/ambf_framework.dir/build.make:2918: recipe for target 'CMakeFiles/ambf_framework.dir/external/openal/Alc/backends/alsa.c.o' failed
make[2]: *** [CMakeFiles/ambf_framework.dir/external/openal/Alc/backends/alsa.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 32%] Building C object CMakeFiles/ambf_framework.dir/external/openal/Alc/backends/null.c.o
CMakeFiles/Makefile2:71: recipe for target 'CMakeFiles/ambf_framework.dir/all' failed
make[1]: *** [CMakeFiles/ambf_framework.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

@adnanmunawar
Copy link
Member

That is an external library, not part of the AMBF. Try sudo apt-get install libasound2-dev and then remake

@vidurvij
Copy link
Author

vidurvij commented Apr 8, 2019

It worked. Thanks for the help.

@cshreyastech
Copy link
Contributor

Came across the same issue. Can this be added to the setup/prerequisite process

adnanmunawar added a commit that referenced this issue Feb 17, 2021
* calculates the joint velcoty and dt

* added smoother to joint vel

* working on accel

* calculates the joint velcoty and dt

* added smoother to joint vel

* working on accel

* removed accel stuff

* fixed merge

* enlarged vel window size

* added joint vel

* fixed the models

* fixed errors with accessing

* added func to set all joint torques

* switched to sim_time

* reverted files

* removed blocking call in the callback and added in window size

* fixed small things

* reset object file

* Added Dockerfiles and Actions (#70)

* Update README.md

Added line to installation steps to pull submodules for blender plugins and other submodules.

* defined getters and setters to get/set ObjectCmd children and joint state publish flags

* Corrected formatting differences

* Added tf_utils, testing

* Temporarily moved tf_utils to dvrk package

* Start replacing ambf_controller/dvrk/scripts/utilities.py with tf_utils functions. First step is to replace convert_mat_to_frame line 82 to Frame.make_Frame() since it breaks at that point.

* made changes to tf_utils

* Delete frames.py

Removing old file

* Checked out tf utils to new branch

* reverting all formatting changes

* Added Dockerfile and requirements.txt

* Added pip requirements

* added ros-catkin packages

* Added ros-tf libraries

* added libusb dependency

* Added entrypoint.sh

* Modified apt requirements and entrypoint

* modified entrypoint

* Added workflow also

* Updated dockerfile .gitignore

* Modified README

* Added action to build on pull request

* Corrected DockerFile

* Added dockerfiles for training to dockerhub.

Co-authored-by: Shreyas Chandra Sekhar <cshreyastech@gmail.com>

* first commit of cpp client

* implementing cpp client

* fixed memory leak during subscription

* added nested map for ros handles

* implemented destructor for handlers

* interchaning publish and subscriber

* interchanged publishers and subscribers for Light and RigidBody classes

* Got rid of BastObject class and corrected license version

* checks to see if there is a  node

Checks to see if there is already a node. If there is it does not create anothe ronde

* cpp client support can handle multiple object types

* implemented cpp client for all object types

* removing BaseObject Class from repo

* fixed version number

* cleaned up the code

* Added submodule ambf_utilities/ambf_addon

* fixed the fnc name

* fixed method of checking node

* added set_all_* functions

added fucntions to set all the joint cmds

* implementing RigidBody getters and setters

* implemented RigidbodBody Client getters and setters

* implemented Object Client getters and setters partially

* implemented getters and setters for all object types

* final commit before folder restructuring

* issolated package for cpp client

* clean up directory

* implementing RigidBody support functions

* Completed support methods for Rigid body class. Matched naming convensions with python implementation

* fixed position and velocity control in RigidBody Client class

* Implemented FK code in c++

* working on rbdl node

working on a rbdl node for the controller

* working on Cmake

* Implemented PSM FK and IK

* added distructors for FK and IK classes

* fixed Ridid Body setpose methods

* implemented gtest

* dont know

* compiles now

* added some fnc

started to add some functions to do rbdl

* working on rbdl intergratrion

not working throughing rbdl Model error

* small changes

* found the problem

The main file is causing conflicts with the includes in the rbdl server. Started to write the services in the rbdl server

* removed white space

* moved to new package

moved the rbdl server to a new package

* added function

added function to convert std vect to eigen

* working on FK

started to work on Fk server

* working on jacobian

started to work on the jacobian function

* need to find a way 

need to find a way to convert eigen matrix to a vectror

* working on createmodel to generate test

* working on main file

trying to get main file to compile

* fixed RBDL linking problem

fixed problem with linking RBDL

* debuging server

Debuging the server

* ID working

ID server working

* working on jac

jac server is being called now

* working on the responce message 

trying to get the responce message working for Jacobian.

* cna print jac

Cna know print the jacobian

* FK working

built server for Fk

* updated messages

* added some checks

working on adding checks for the inputs.

* working on doc strings

* adding rbdl

* cleaning up rbdl

* adding rbdl repo

* removed rbdl folder

* adding rbdl

* removing rbdl folder

* clean up rbdl

* added Body class for creating RBDL Model

* Handling Body Class for RBDL

* added check to parse YAML file in ambf-rbdl model. Enabled gtest and updated README

* updated README

* updated README

* disabled gtest

* completed Body and Joint classes

* modified joint map structure to handle RBDL model creation

* Modified Body and Joint class names as they overlaps with that of RBDL

* comment out things

* changed object type to handle position and rotational methods in RBDL service

* Trimmed body and joint names

* Created RBDL model using AMBF yaml files

* Updated RBDL body Inertia from AMBF client

* Updated RBDL body Inertia from AMBF client

* fixed error

* merged shreyas code into Nathaniels

reorganized files in to a single directory and ensured that it complied

* integrating the parser into the service call 

integrating the parser into the service call

* Modified folder structure of ambf control system

* defined folder structure for ambf_control_system

* defined folder structure for ambf_control_system

* fixed compile errors 

Fixed the RBDL problem in the server. moved the server back into the dir.fixed Cmakelist to compile.

* working on controller node

Created a PD controller and a controller node to run the controller.
The controller needs to be tested.  The threading needs to be examined in much greater detail on how it works.

* working on control node

the controller node needs to be tested

* working on unit testing the PD controller

unit test the PD controller. Need to find way to test the expception handling

* Generated Inertia and body rotation for PSM

* working on controller

* fixed things

* fixed broken model

something broke, dont  know why or how but it fixed now

* control node debuged

* added files for new controller

added some files for conroller. also added function to get the RBDL model out of the server

* Parse inertia and body rotation from YAML

* removed cpp client dependencies in rbdl_model

* working on control manager

created a map to handle the controller

* working on control manager

added a control manager and starting to test

* there is a seg fault

there is a seg fault error, dont know why

* fixed build issues in rbdl_server_test module

* the control manager server is working

the service is calling the Control Manager and returning the correct tau

* fixed Rigid body methods for c++ client

* Implemented Rigid body Client APIs

* Added all joint control setters to RigidBody class

* generated KUKA model files

* added depth camera

* Updated KUKA model YAML with body rotation and Inertia

* Working on fixin c++ client issues

* Need debugging in client cleanup

* Testing Rigidbody handler methods

* fixed set command on Rigid bodies

* Fixed enable publishing joint_child_names

* Updated PSM model with latst blunder addon

* Removed controller module out of this repo

* Fixed thread lock during clean up #3

* Fixed set_pos and set_rpy

* Fixed set_pos and set_rpy

* Fixed Client body commands in RigidBody class

* Fixed Client body commands in RigidBody class

* Code clean up in c++ client

* added exoskeleton model

* Implemented FK and IK for ECM

* Commented Gtest implemenatation as github validation fails. Seems Github dosent support gtest

* code cleanup

* Code clean up

* Implemented PSM FK and IK in C++

* fixed the function of setting multiple joint torques

updated the init of the cmd arrays

* modified:   ambf_controller/ambf_client_app/include/ambf_client_app/ecm_fk.h
	modified:   ambf_controller/ambf_client_app/include/ambf_client_app/psm_fk.h
	modified:   ambf_controller/ambf_client_app/include/ambf_client_app/psm_ik_test.h
	modified:   ambf_controller/ambf_client_app/src/ecm_ik_test.cpp
	modified:   ambf_controller/ambf_client_app/src/psm_ik.cpp
	modified:   ambf_controller/ambf_client_app/src/psm_ik_test.cpp

* changes to the PSM

* Fixed README.md conflicts with main branch

* Removed gtest from AMBF cpp client

* Made file naming convension of ambf_client_app to ambf_client

* Removed redundant files for ECM Kinematics implementation with cpp client

* Removed redundant files for PSM Kinematics implementation with cpp client

* Moved ambf_client and cpp_controller packages to the right place in the module hierarchy

* Modified handler api name for cpp client

* Removed CMakeList.txt and package.xml from cpp_client folder

* reset the blender and mesh files of the robots

* fixed the kuka to have interia tag

* reset more files

* removed some commented code

* removed exo

* added contributor file

* fixed the world file error

removed a } when clearing comments

* fixed the python ros modulares

* reset more files

* reset python files

* reseting more files

* reset the main.yml file

* updated sim to upstream

* reseting sensors to upstream

* reseting more files

* added space

* reset the space in aframwor

* more fixes

* Delete package.xml

* Readded the package.xml

* Renamed ambf_client to ambf_client_cpp and cleaned up CMake files

* Adding an optional name parameter in the client constructor to allow multiple instances.

* Renamed files to better reflect their purpose.

Co-authored-by: Nathaniel Goldfarb <nathanielgoldfarb@pop-os.localdomain>
Co-authored-by: nathaniel <nagoldfarn@wpi.edu>
Co-authored-by: Dhruv Kool Rajamani <35770744+DhruvKoolRajamani@users.noreply.github.com>
Co-authored-by: Shreyas Chandra Sekhar <cshreyastech@gmail.com>
Co-authored-by: Adnan Munawar <adnanmunawar@users.noreply.github.com>
Co-authored-by: Adnan Munawar <adnan.munawar@live.com>
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

3 participants