Robot controller for JVRC-1 robot using mc_rtc.
-
The controller relies on the
mc_solverpackage for trajectory optimization and motion planning. -
Position and orientation are provided using
mc_tasks.SurfaceTransformTaskandLookAtTaskare used to specify the desired poses for the hands and the Neck. The QP solver computes joint velocities or torques that move the arm while respecting contacts, dynamics, collisions, and joint limits. -
Non aggressive stiffness values (stiffness value=1) are used to ensure a more compliant behavior of the robot.
- mc_rtc: This controller expects that cmake could find mc_rtc package. It could either be installed using the mc_rtc's installation guide (>>click here to see)
- ROS humble:
- Install
- (If Ubuntu 22.04): ROS Humble using the installation guide
- (If Ubuntu 20.04): ROS Noetic using the installation guide
- Install
Note
The same commands below can also be performed by executing, ./build.sh and ./install.sh
This is done using CMake and your usual tool to run CMake, build the code and install it. Typically, on Linux/MacOS:
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build build
sudo cmake --install buildNote
The same commands below can also be performed by executing, ./launch_sim.sh
Template configuration files could be found in resources directory. They should be copied to $HOME/.config/mc_rtc/ directory or used relative paths with --mc-config option in mc_rtc_ticker.
ros2 launch mc_rtc_ticker display.launch &
mc_rtc_ticker --mc-config ./resources/mc_rtc.yaml