Skip to content

Commit 94bbe6e

Browse files
authored
Merge pull request #642 from robotology/devel
Merge devel in master
2 parents b9c18f4 + fe7a39e commit 94bbe6e

File tree

6 files changed

+433
-99
lines changed

6 files changed

+433
-99
lines changed

.github/workflows/conda-ci.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ jobs:
2323

2424
- uses: conda-incubator/setup-miniconda@v2
2525
with:
26-
mamba-version: "*"
27-
channels: conda-forge,robotology
28-
channel-priority: true
26+
miniforge-variant: Mambaforge
27+
miniforge-version: latest
2928

3029
- uses: rlespinasse/github-slug-action@v3.x
3130

@@ -37,7 +36,7 @@ jobs:
3736
# Compilation related dependencies
3837
mamba install cmake compilers make ninja pkg-config
3938
# Actual dependencies
40-
mamba install -c conda-forge -c robotology yarp gazebo
39+
mamba install -c conda-forge yarp gazebo
4140
4241
# Additional dependencies useful only on Linux
4342
- name: Dependencies [Conda/Linux]

CHANGELOG.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ The format of this document is based on [Keep a Changelog](https://keepachangelo
55

66
## [Unreleased]
77

8+
## [4.6.0] - 2023-01-13
9+
10+
### Added
11+
12+
- In `gazebo_yarp_controlboard` add the `icub_hand_mk5` coupling that models the iCub mk5 hand, that is used also in ergoCub 1 robot (https://github.com/robotology/gazebo-yarp-plugins/pull/641).
13+
814
## [4.5.2] - 2022-11-17
915

1016
### Fixed
@@ -20,7 +26,7 @@ The format of this document is based on [Keep a Changelog](https://keepachangelo
2026
### Added
2127
- The `gazebo_yarp_forcetorque` plugin now exposes also the `yarp::dev::ISixAxisForceTorqueSensors` interface, so it can be used with ` multipleanalogsensorsserver`, `multipleanalogsensorsremapper` and `multipleanalogsensorsclient` devices (https://github.com/robotology/gazebo-yarp-plugins/issues/384, https://github.com/robotology/gazebo-yarp-plugins/pull/628).
2228

23-
### Fixed
29+
### Fixed
2430
- Fix YARP 3.8 compatibility (https://github.com/robotology/gazebo-yarp-plugins/pull/627).
2531

2632
## [4.4.0] - 2022-05-31
@@ -33,12 +39,12 @@ The format of this document is based on [Keep a Changelog](https://keepachangelo
3339

3440
### Added
3541
- In `gazebo_yarp_camera` parse the `yarpDeviceName` option to enable its use with `gazebo_yarp_robotinterface` (https://github.com/robotology/gazebo-yarp-plugins/pull/614).
36-
- In `gazebo_yarp_controlboard` add the `icub_left_hand_mk4` coupling that models the iCub mk4 left hand (https://github.com/robotology/gazebo-yarp-plugins/pull/620).
42+
- In `gazebo_yarp_controlboard` add the `icub_left_hand_mk4` coupling that models the iCub mk4 left hand (https://github.com/robotology/gazebo-yarp-plugins/pull/620).
3743

3844
### Changed
39-
- Migrate the example models under the tutorial directory to avoid the use of implicit network wrapper servers, and use the `gazebo_yarp_robotinterface` plugin to spawn their network wrapper servers (https://github.com/robotology/gazebo-yarp-plugins/pull/615 and https://github.com/robotology/gazebo-yarp-plugins/pull/616).
45+
- Migrate the example models under the tutorial directory to avoid the use of implicit network wrapper servers, and use the `gazebo_yarp_robotinterface` plugin to spawn their network wrapper servers (https://github.com/robotology/gazebo-yarp-plugins/pull/615 and https://github.com/robotology/gazebo-yarp-plugins/pull/616).
4046

41-
### Fixed
47+
### Fixed
4248
- It is now possible to remove and add again to the simulation models that use `gazebo_yarp_robotinterface` without any crash (https://github.com/robotology/gazebo-yarp-plugins/pull/618, https://github.com/robotology/gazebo-yarp-plugins/pull/619).
4349
- Fixed value returned by getDeviceStatus method in `gazebo_yarp_laser` plugin (https://github.com/robotology/gazebo-yarp-plugins/pull/617).
4450

@@ -56,12 +62,12 @@ disable any network wrapper server that the plugin created, by just creating the
5662

5763
## [4.1.2] - 2022-01-19
5864

59-
### Fixed
65+
### Fixed
6066
- Fix compilation against YARP 3.7 (https://github.com/robotology/gazebo-yarp-plugins/pull/607, https://github.com/robotology/gazebo-yarp-plugins/issues/608).
6167

6268
## [4.1.1] - 2022-01-13
6369

64-
### Fixed
70+
### Fixed
6571
- Fix compilation against Gazebo 11.10.0 (https://github.com/robotology/gazebo-yarp-plugins/pull/605, https://github.com/robotology/gazebo-yarp-plugins/issues/606).
6672

6773
## [4.1.0] - 2021-12-23

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ option(GAZEBO_YARP_PLUGINS_DISABLE_IMPLICIT_NETWORK_WRAPPERS "if enabled removes
88

99
# Project version
1010
set(${PROJECT_NAME}_MAJOR_VERSION 4)
11-
set(${PROJECT_NAME}_MINOR_VERSION 5)
12-
set(${PROJECT_NAME}_PATCH_VERSION 2)
11+
set(${PROJECT_NAME}_MINOR_VERSION 6)
12+
set(${PROJECT_NAME}_PATCH_VERSION 0)
1313

1414
set(${PROJECT_NAME}_VERSION
1515
${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}.${${PROJECT_NAME}_PATCH_VERSION})

plugins/controlboard/include/yarp/dev/ControlBoardDriverCoupling.h

+28-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class HandMk3CouplingHandler : public BaseCouplingHandler
187187
yarp::sig::Vector decoupleRefPos (yarp::sig::Vector& pos_ref);
188188
yarp::sig::Vector decoupleRefVel (yarp::sig::Vector& vel_ref);
189189
yarp::sig::Vector decoupleRefTrq (yarp::sig::Vector& trq_ref);
190-
190+
191191
protected:
192192
double decouple (double q2, std::vector<double>& lut);
193193

@@ -212,7 +212,33 @@ class HandMk4CouplingHandler : public BaseCouplingHandler
212212
yarp::sig::Vector decoupleRefPos (yarp::sig::Vector& pos_ref);
213213
yarp::sig::Vector decoupleRefVel (yarp::sig::Vector& vel_ref);
214214
yarp::sig::Vector decoupleRefTrq (yarp::sig::Vector& trq_ref);
215-
215+
216+
protected:
217+
double decouple (double q2, std::vector<double>& lut);
218+
219+
const int LUTSIZE;
220+
221+
std::vector<double> thumb_lut;
222+
std::vector<double> index_lut;
223+
std::vector<double> pinkie_lut;
224+
};
225+
226+
class HandMk5CouplingHandler : public BaseCouplingHandler
227+
{
228+
229+
public:
230+
HandMk5CouplingHandler (gazebo::physics::Model* model, yarp::sig::VectorOf<int> coupled_joints, std::vector<std::string> coupled_joint_names, std::vector<Range> coupled_joint_limits);
231+
232+
public:
233+
bool decouplePos (yarp::sig::Vector& current_pos);
234+
bool decoupleVel (yarp::sig::Vector& current_vel);
235+
bool decoupleAcc (yarp::sig::Vector& current_acc);
236+
bool decoupleTrq (yarp::sig::Vector& current_trq);
237+
238+
yarp::sig::Vector decoupleRefPos (yarp::sig::Vector& pos_ref);
239+
yarp::sig::Vector decoupleRefVel (yarp::sig::Vector& vel_ref);
240+
yarp::sig::Vector decoupleRefTrq (yarp::sig::Vector& trq_ref);
241+
216242
protected:
217243
double decouple (double q2, std::vector<double>& lut);
218244

plugins/controlboard/src/ControlBoardDriver.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,12 @@ bool GazeboYarpControlBoardDriver::gazebo_init()
337337
m_coupling_handler.push_back(cpl);
338338
yCInfo(GAZEBOCONTROLBOARD) << "using icub_left_hand_mk4";
339339
}
340+
else if (coupling_bottle->get(0).asString()=="icub_hand_mk5")
341+
{
342+
BaseCouplingHandler* cpl = new HandMk5CouplingHandler(m_robot,coupled_joints, coupled_joint_names, coupled_joint_limits);
343+
m_coupling_handler.push_back(cpl);
344+
yCInfo(GAZEBOCONTROLBOARD) << "using icub_hand_mk5";
345+
}
340346
else if (coupling_bottle->get(0).asString()=="none")
341347
{
342348
yCDebug(GAZEBOCONTROLBOARD) << "Just for test";

0 commit comments

Comments
 (0)