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

[jsk_denso_robot] Support COBOTTA OSS type #1509

Merged
merged 18 commits into from
Aug 10, 2022

Conversation

pazeshun
Copy link
Contributor

@pazeshun pazeshun commented Jun 15, 2022

Currently, jsk_cobotta_startup and cobottaeus assume that our COBOTTA is not OSS type.
This PR adds support of COBOTTA OSS type.

TODOs

  • Implement (send *cobotta* :angle-vector (send *ri* :state :potentio-vector)) and (send *ri* :angle-vector (send *cobotta* :angle-vector) 1000)
  • Add cobotta_bringup.launch for COBOTTA OSS type
  • Implement gripper interface to *ri*
  • Add error recovery
  • Update README

Assumes that following commands are executed on COBOTTA:
$ roslaunch denso_cobotta_driver denso_cobotta_driver.launch enable_calset:=false
$ roslaunch denso_cobotta_moveit_config planning_context.launch load_robot_description:=true gripper_type:=parallel
$ roslaunch denso_cobotta_control denso_cobotta_control.launch

https://github.com/DENSORobot/denso_cobotta_ros/blob/bb60e75adb8477ed3402561b4ec3ba687af3f397/denso_cobotta_bringup/launch/denso_cobotta_bringup.launch is exaggerated because it launches MoveIt!
@pazeshun pazeshun force-pushed the support-cobotta-oss branch 2 times, most recently from 6976d71 to 404fcd1 Compare June 17, 2022 02:54
@pazeshun
Copy link
Contributor Author

@k-okada
Could you tell me why

git clone https://github.com/k-okada/cobotta_descriptions.git
(cd src/denso_robot_ros/denso_robot_descriptions; ln -sf ../../../cobotta_descriptions/cobotta_description .)
is required?
My first assumption is that you don't want to place whole denso_cobotta_ros to your workspace only for cobotta_descriptions.
However, denso.rosinstall includes denso_cobotta_ros, so my assumption seems wrong:
- git:
local-name: denso_cobotta_ros
uri: https://github.com/DENSORobot/denso_cobotta_ros

@pazeshun
Copy link
Contributor Author

@k-okada

Could you tell me why

git clone https://github.com/k-okada/cobotta_descriptions.git
(cd src/denso_robot_ros/denso_robot_descriptions; ln -sf ../../../cobotta_descriptions/cobotta_description .)

Sorry, maybe I understand.

<include file="$(find denso_robot_control)/launch/denso_robot_control.launch">
<arg name="robot_name" value="cobotta"/>
<arg name="ip_address" value="$(arg ip_address)"/>
<arg name="send_format" value="0" />
<arg name="recv_format" value="2" />
</include>
calls https://github.com/DENSORobot/denso_robot_ros/blob/3.2.0/denso_robot_control/launch/denso_robot_control.launch#L34, which assumes cobotta.urdf is placed under denso_robot_descriptions/cobotta_description/.

Now 'roslaunch jsk_cobotta_startup cobotta_oss_bringup.launch' is enough for euslisp interface
@pazeshun pazeshun force-pushed the support-cobotta-oss branch 3 times, most recently from 6cd3b65 to 7b49903 Compare June 18, 2022 07:41
@pazeshun pazeshun force-pushed the support-cobotta-oss branch from ffc6b3e to 3b128f1 Compare June 22, 2022 01:38
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.

LGTM

@k-okada
Copy link
Member

k-okada commented Jul 14, 2022

@pazeshun if you're ok with whit PR, please remove [WIP] ? or Draft label? from this PR.

Screenshot from 2022-07-14 17-19-17

@pazeshun
Copy link
Contributor Author

@k-okada
I think noetic test becomes failed due to this PR currently.
This is because Segmentation Fault occurs in euslisp model generation of cobottaeus.
Previously, this generation is skipped because denso_cobotta_descriptions is not included in .travis.rosinstall.*.
I have to debug this before this PR becomes ready for review.
So please wait.

@k-okada
Copy link
Member

k-okada commented Aug 9, 2022

@pazeshun can we remove Draft?

@pazeshun
Copy link
Contributor Author

pazeshun commented Aug 9, 2022

@k-okada No, noetic test failure seems not fixed.
And fixing this has lower priority than some parts of #1544 and RSJ for me.
So please wait (about 1 month?).

@k-okada
Copy link
Member

k-okada commented Aug 10, 2022

I see, please try pazeshun#1
and if this not working, just to skip noetic

if($ENV{ROS_DISTRO} STREQUAL "noetic") # noetic fails to generate cobotta.l (segfaults)
  return()
endif()

@pazeshun pazeshun marked this pull request as ready for review August 10, 2022 04:46
@pazeshun
Copy link
Contributor Author

pazeshun commented Aug 10, 2022

I made this PR ready for review because CI passed thanks to @k-okada , but I'm not confident because current state of this PR ignores

# compile euscollada for installed collada_urdf

@pazeshun pazeshun changed the title [WIP][jsk_denso_robot] Support COBOTTA OSS type [jsk_denso_robot] Support COBOTTA OSS type Aug 10, 2022
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.

LGTM

I made this PR ready for review because CI passed thanks to @k-okada , but I'm not confident because current state of this PR ignores

 # compile euscollada for installed collada_urdf

I think this is ok, because the problems is wrong path in /opt/ros/noetic/share/collada_urdf/cmake/collada_urdfConfig.cmake , so it does not need to recompile euscollada.
(see ros/collada_urdf#43 (comment) )

@k-okada k-okada merged commit 60e85bd into jsk-ros-pkg:master Aug 10, 2022
@pazeshun
Copy link
Contributor Author

I think this is ok, because the problems is wrong path in /opt/ros/noetic/share/collada_urdf/cmake/collada_urdfConfig.cmake , so it does not need to recompile euscollada.
(see ros/collada_urdf#43 (comment) )

Oh, I see.
Thank you very much!

@pazeshun pazeshun deleted the support-cobotta-oss branch August 10, 2022 08:13
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