Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/egm_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ missed_messages_{MISSED_MESSAGES_THRESHOLD}
{
interface_cfg.axes = egm::RobotAxes::Seven;
}
else if(configuration.mech_unit_group.robot().axes_total() == 4)
{
interface_cfg.axes = egm::RobotAxes::Four;
}
else
{
// Default to six axes as defined in the BaseConfiguration constructor
}
}
else
{
Expand Down
9 changes: 8 additions & 1 deletion src/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ void initializeMotionData(MotionData& motion_data, const RobotControllerDescript
motion_unit.name = unit.name();
motion_unit.type = unit.type();
motion_unit.active = unit.mode() == MechanicalUnit_Mode_ACTIVATED;
motion_unit.supported_by_egm = false;

// Set indicator for if the unit is supported by EGM or not.
if(unit.type() == MechanicalUnit_Type_TCP_ROBOT)
Expand All @@ -110,6 +109,14 @@ void initializeMotionData(MotionData& motion_data, const RobotControllerDescript
motion_unit.supported_by_egm = true;
}
}
else if (unit.axes_total() == 4)
{
motion_unit.supported_by_egm = true;
}
else
{
motion_unit.supported_by_egm = false;
}
}
else if(unit.type() == MechanicalUnit_Type_ROBOT || unit.type() == MechanicalUnit_Type_SINGLE)
{
Expand Down