Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to thin out trajectories in time #462

Closed
wants to merge 3 commits into from

Conversation

708yamaguchi
Copy link
Member

I am currently running kinova arm with MoveIt!.

Since kinova arm only accepts interpolated trajectories every 1ms, it is necessary to interpolate the trajectories returned by Moveit on the roseus side.

If there are many interpolation points in the trajectory returned by moveit, the interpolation calculation will take a long time, so the thinning option is useful.

Related to jsk-ros-pkg/jsk_robot#1313 (comment)

Copy link
Member

@k-okada k-okada left a comment

Choose a reason for hiding this comment

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

@708yamaguchi could you provide simplest example code which reproduce the problem?

@708yamaguchi
Copy link
Member Author

Here is example code to reproduce this problem (I am sorry that the example code is complicated. This is because I need to use jsk-ros-pkg/jsk_robot#1372 )

However, I found sample_duration param in move_group, which can control the interpolation intervals in MoveIt! trajectory. So actually this PR is no more needed.
Move to jsk-ros-pkg/jsk_robot#1373

# Setup
mkdir -p ~/kinova_ws/src
cd ~/kinova_ws/src
wstool init
wstool merge https://raw.githubusercontent.com/708yamaguchi/jsk_robot/reflect-kinova-upstream/jsk_kinova_robot/kinova.rosinstall
wstool update
cd jsk_robot
git remote add 708yamaguchi https://github.com/708yamaguchi/jsk_robot.git
git fetch 708yamaguchi
git checkout -t 708yamaguchi/reflect-kinova-upstream
cd ../..
source /opt/ros/melodic/setup.bash
rosdep install -y -r --from-paths src --ignore-src
catkin build jsk_kinova_startup kinovaeus
source devel/setup.bash

# Terminal 1
roslaunch kortex_gazebo spawn_kortex_robot.launch arm:=gen3_lite gripper:=gen3_lite_2f robot_name:=arm_gen3

# Terminal 2
roscd kinovaeus
roseus kinova-interface.l
(kinova-init :type :gen3_lite_gen3_lite_2f)
(send *ri* :angle-vector (send *kinova* :init-pose) 20000)

@708yamaguchi
Copy link
Member Author

I am sorry for the confusion.
This PR is no more needed because jsk-ros-pkg/jsk_robot#1373 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants