Skip to content

Commit

Permalink
Cleanup spaces/tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicogene committed Apr 5, 2024
1 parent fb66d20 commit 89a77b1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions src/creo2urdf/src/Creo2Urdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ void Creo2Urdf::OnCommand() {

pfcSession_ptr session_ptr = pfcGetProESession();
if (!session_ptr) {
printToMessageWindow("Failed to get the session", c2uLogLevel::WARN);
return;
}
printToMessageWindow("Failed to get the session", c2uLogLevel::WARN);
return;
}
if (!m_asm_model_ptr) {
m_asm_model_ptr = session_ptr->GetCurrentModel();
if (!m_asm_model_ptr) {
printToMessageWindow("Failed to get the current model", c2uLogLevel::WARN);
return;
}
printToMessageWindow("Failed to get the current model", c2uLogLevel::WARN);
return;
}
}


Expand All @@ -43,19 +43,19 @@ void Creo2Urdf::OnCommand() {

// YAML file path
if (m_yaml_path.empty()) {
m_yaml_path = string(session_ptr->UIOpenFile(yaml_file_open_option));
}
m_yaml_path = string(session_ptr->UIOpenFile(yaml_file_open_option));
}
if (!loadYamlConfig(m_yaml_path))
{
printToMessageWindow("Failed to run Creo2Urdf!", c2uLogLevel::WARN);
return;
}
// CSV file path
if (m_csv_path.empty()) {
auto csv_file_open_option = pfcFileOpenOptions::Create("*.csv");
csv_file_open_option->SetDialogLabel("Select the csv");
m_csv_path = string(session_ptr->UIOpenFile(csv_file_open_option));
}
auto csv_file_open_option = pfcFileOpenOptions::Create("*.csv");
csv_file_open_option->SetDialogLabel("Select the csv");
m_csv_path = string(session_ptr->UIOpenFile(csv_file_open_option));
}
rapidcsv::Document joints_csv_table(m_csv_path, rapidcsv::LabelParams(0, 0));
// Output folder path
if (m_output_path.empty()) {
Expand Down Expand Up @@ -239,7 +239,7 @@ void Creo2Urdf::OnCommand() {
if (joint_info.second.type == JointType::Revolute) {
joint_sh_ptr = std::make_shared<iDynTree::RevoluteJoint>();
dynamic_cast<iDynTree::RevoluteJoint*>(joint_sh_ptr.get())->setAxis(iDynTree::Axis(axis, parent_H_child.getPosition()));
}
}
else if (joint_info.second.type == JointType::Linear) {
joint_sh_ptr = std::make_shared<iDynTree::PrismaticJoint>();
dynamic_cast<iDynTree::PrismaticJoint*>(joint_sh_ptr.get())->setAxis(iDynTree::Axis(axis, parent_H_child.getPosition()));
Expand Down
4 changes: 2 additions & 2 deletions src/creo2urdf/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ ProError evaluateBatchMode(const std::string& asm_path, const std::string& yaml_
pfcBaseSession* session = pfcGetProESession();
if (!session) {
ProTKPrintf("Creo2Urdf: impossible to retrieve the session");
return PRO_TK_GENERAL_ERROR;
}
return PRO_TK_GENERAL_ERROR;
}

pfcModel_ptr asm_model_ptr{ nullptr };

Expand Down

0 comments on commit 89a77b1

Please sign in to comment.