Skip to content

added 'kinematics_base_test' package - #1147

Closed
jrgnicho wants to merge 1 commit into
moveit:kinetic-develfrom
jrgnicho:add-kinematics-test-repo
Closed

jrgnicho wants to merge 1 commit into
moveit:kinetic-develfrom
jrgnicho:add-kinematics-test-repo

Conversation

@jrgnicho

@jrgnicho jrgnicho commented Oct 25, 2018 •

Copy link
Copy Markdown
Contributor

Addresses #4
Moves the kinematics_base_test package from the moveit_kinematics_tests repository.
The corresponding resources packages have been moved to moveit_resources in a separate PR

@davetcoleman davetcoleman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really awesome!

@@ -0,0 +1,33 @@
<?xml version="1.0"?>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't have catkin package inside of a catkin package... moveit_kinematics is already a package

I think this subfolder should not be a ROS package but instead just a subfolder of moveit_kinematics

@@ -0,0 +1,41 @@
cmake_minimum_required(VERSION 2.8.3)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't have catkin package inside of a catkin package... moveit_kinematics is already a package

I think this subfolder should not be a ROS package but instead just a subfolder of moveit_kinematics

## Testing ##
#############

add_rostest_gtest(${PROJECT_NAME}_utest launch/test_kinematics_plugin.launch src/test_kinematics_plugin.cpp)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -0,0 +1,23 @@
<?xml version="1.0"?>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be a .rostest file instead of .roslaunch?

@@ -0,0 +1,23 @@
<?xml version="1.0"?>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question

const double DEFAULT_SEARCH_DISCRETIZATION = 0.01f;
const double EXPECTED_SUCCESS_RATE = 0.8;

class KinematicsTest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using

class KinematicsTest : public ::testing::Test


KinematicsTest kinematics_test;

TEST(IKFastPlugin, initialize)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TEST(IKFastPlugin, initialize)
TEST_F(IKFastPlugin, initialize)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do this for all the TESTs

int num_nearest_ik_tests_;
};

KinematicsTest kinematics_test;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the other two changes, you then won't need this global var here.

@rhaschke rhaschke mentioned this pull request Dec 16, 2018
@rhaschke

Copy link
Copy Markdown
Contributor

Closing this in favor of #1272.

@rhaschke rhaschke closed this Jan 14, 2019
sjahr pushed a commit to sjahr/moveit that referenced this pull request Jun 21, 2024
Return an `ExecutionStatus` from `MoveItCpp::execute()`, which is
convertible to a bool in the caller code.
This change is forward compatible.

Signed-off-by: Gaël Écorchard <[email protected]>
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

Successfully merging this pull request may close these issues.

3 participants