ros-industrial-attic / ur_modern_driver

(deprecated) ROS 1 driver for CB1 and CB2 controllers with UR5 or UR10 robots from Universal Robots
Apache License 2.0
305 stars 338 forks source link

state: sub package of type 0 was not parsed completely #136

Closed kzhang8850 closed 5 years ago

kzhang8850 commented 7 years ago

Hi All,

Trying to use the updated version of this repository to run my UR5, to no success. It compiles fine, and I can run the launch file, but then get this;

... logging to /home/rooster/.ros/log/02cef73c-a567-11e7-a325-34e6d7875778/roslaunch-bakbak-23511.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

redefining global property: pi
when processing file: /opt/ros/kinetic/share/ur_description/urdf/ur5.urdf.xacro
included from: /opt/ros/kinetic/share/ur_description/urdf/ur5_robot.urdf.xacro
started roslaunch server http://bakbak:41307/

SUMMARY
========

PARAMETERS
 * /robot_description: <?xml version="1....
 * /rosdistro: kinetic
 * /rosversion: 1.12.7
 * /ur_driver/base_frame: base
 * /ur_driver/max_payload: 5.0
 * /ur_driver/max_velocity: 10.0
 * /ur_driver/min_payload: 0.0
 * /ur_driver/prefix: 
 * /ur_driver/require_activation: Never
 * /ur_driver/robot_ip_address: 10.253.0.51
 * /ur_driver/servoj_time: 0.008
 * /ur_driver/tool_frame: tool0_controller

NODES
  /
    robot_state_publisher (robot_state_publisher/robot_state_publisher)
    ur_driver (ur_modern_driver/ur_driver)

auto-starting new master
process[master]: started with pid [23525]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 02cef73c-a567-11e7-a325-34e6d7875778
process[rosout-1]: started with pid [23538]
started core service [/rosout]
process[robot_state_publisher-2]: started with pid [23549]
process[ur_driver-3]: started with pid [23552]
[ INFO] [1506724751.253295153]: Setting up connection: 10.253.0.51:30003
[ INFO] [1506724751.253814337]: Connection established for 10.253.0.51:30003
[ INFO] [1506724751.253859833]: Setting up connection: 10.253.0.51:30001
[ INFO] [1506724751.254040080]: Connection established for 10.253.0.51:30001
[ INFO] [1506724751.329372335]: Got VersionMessage:
[ INFO] [1506724751.329400925]: project name: URControl
[ INFO] [1506724751.329415099]: version: 3.2.20175
[ INFO] [1506724751.329426178]: build date: 29 2016, 10:43:26
[ INFO] [1506724751.329451577]: Disconnecting from 10.253.0.51:30001
[ INFO] [1506724751.337893052]: Setting up connection: :50001
[ INFO] [1506724751.338021093]: Connection established for :50001
[ INFO] [1506724751.338052217]: ActionServer enabled
[ INFO] [1506724751.340201355]: Service 'ur_driver/robot_enable' activation mode: Never
[ INFO] [1506724751.340242393]: Starting main loop
[ INFO] [1506724751.340343816]: Setting up connection: 10.253.0.51:30003
[ INFO] [1506724751.340656763]: Connection established for 10.253.0.51:30003
[ INFO] [1506724751.340789728]: Setting up connection: 10.253.0.51:30002
[ INFO] [1506724751.342178330]: Connection established for 10.253.0.51:30002
[ INFO] [1506724751.344847191]: Starting ActionServer
[ INFO] [1506724751.345115361]: Trajectory thread started
[ERROR] [1506724751.431210327]: Sub-package of type 0 was not parsed completely!
[ INFO] [1506724751.431262596]: Disconnecting from 10.253.0.51:30002

I just run roslaunch ur_modern_driver ur5_bringup.launch robot_ip:=10.253.0.51 when doing this. I followed this link for steps on how to connect and test move the arm, except just replace some of the steps with kinetic versions/ this repository (even Zagitta's version)/etc.

https://github.com/olinrobotics/irl/wiki/Tutorial:-Setting-up-UR5-robot-arm

The UR5 arm's network setup is the same, except its address is 10.253.0.51.

Any ideas on what I'm doing wrong?

gavanderhoorn commented 6 years ago

[ERROR] [..] Sub-package of type 0 was not parsed completely!

This seems to point to some issue with either deserialisation or a network issue.

I followed this link (https://github.com/olinrobotics/irl/wiki/Tutorial:-Setting-up-UR5-robot-arm) for steps on how to connect and test move the arm, except just replace some of the steps with kinetic versions/ this repository (even Zagitta's version)/etc.

Did you also edit the source as instructed in that tutorial? If so, please revert the changes.

gavanderhoorn commented 6 years ago

Closing due to inactivity.

@kzhang8850: if this is still a problem for you, please re-open and provide more information.

Chunting commented 6 years ago

Hi Gavanderhoorn, I met the same problem. Would you please reopen this issue? When I run the command oslaunch ur_modern_driver ur5_bringup.launch robot_ip:=192.168.1.102, the error message shows up as follows: screenshot from 2018-10-05 02-07-24

Thanks, Chunting

gavanderhoorn commented 6 years ago

Just for tracking this: can you tell us which version of ROS, which OS (and version), how you installed ROS, how you built ur_modern_driver, which robot you have, the version of polyscope it is running, etc.

Also: could you please not use screenshots to show me terminal output? Please just copy-paste it into your comment.

Chunting commented 6 years ago

OK, thanks for your quick reply. I'm working Ubuntu 16.04, ROS-Kinetic, ur_modern_driver and Polyscope 3.2.21545. To install ROS, I followed the instructions here.

As for the error message, it comes like:

[ INFO] [1538722053.643268977]: Trajectory thread started [ERROR] [1538722053.672768737]: Sub-package of type 0 was not parsed completely! [ INFO] [1538722053.672891508]: Disconnecting from 192.168.1.102:30002 [ INFO] [1538722053.673016779]: Shutting down on stopped pipeline StatePacket Error in `/home/chunting/catkin_ws/devel/lib/ur_modern_driver/ur_driver': double free or corruption (!prev): 0x0000000000fadf10 [ur_driver-3] process has died [pid 26071, exit code -11, cmd /home/chunting/catkin_ws/devel/lib/ur_modern_driver/ur_driver __name:=ur_driver __log:=/home/chunting/.ros/log/890f3b82-c86a-11e8-9fd8-44850011896a/ur_driver-3.log]. log file: /home/chunting/.ros/log/890f3b82-c86a-11e8-9fd8-44850011896a/ur_driver-3*.log

It seems that the action server didn't run properly, it stopped in the if statement.

void ActionServer::trajectoryThread()
{
  LOG_INFO("Trajectory thread started");

  while (running_)
  {
    LOG_INFO("running_ is true");
    std::unique_lock<std::mutex> lk(tj_mutex_);
    if (!tj_cv_.wait_for(lk, std::chrono::milliseconds(100), [&] { return running_ && has_goal_; })){
        continue;
    }

Thanks, Chunting

gavanderhoorn commented 6 years ago

I don't believe the actionserver is really involved here: parsing the binary stream coming from the controller failed (here), which causes the whole driver to shutdown (instead of ignoring data and plodding on).

Polyscope 3.2.21545

it could be there is an incompatibility between that version and the current deserialisers in the driver.

Do you have a specific reason for staying with 3.2.x?

Chunting commented 6 years ago

No, this version came with the robot and I never updated it. So probably I have two solutions, one is to update the polyscope, the other is to go back to Indigo. Is it?

Thanks, Chunting

gavanderhoorn commented 6 years ago

No, this version came with the robot and I never updated it. So probably I have two solutions, one is to update the polyscope, [..]

It would be interesting to know whether an update of your controller affects the problem, yes.

the other is to go back to Indigo. Is it?

I'm not sure I understand. Why would downgrading to Indigo help?

miguelprada commented 6 years ago

Just a quick note. I remember having the same issue with a UR10 running 3.2.something. That robot has been since updated to 3.5.something and the problem did go away.

Chunting commented 6 years ago

Thank you guys. Since I have another workstation with Indigo, I did the same thing on it and everything goes pretty well. Thus, I think ur_modern_driver is more compatible with Indigo.

Thanks, Chunting

gavanderhoorn commented 6 years ago

Thus, I think ur_modern_driver is more compatible with Indigo.

The issue you reported is internal to ur_modern_driver. It is not influenced (directly) by the ROS release you are using.

The master branch of ur_modern_driver is however only compatible with Indigo.

Also: the code on the master branch is somewhat more forgiving, which may explain why things appeared to work there.

The kinetic-devel branch is more strict in checking whether deserialisation of the incoming data completed successfully and will throw errors if even a single byte was not processed.

Seeing as @miguelprada reports that upgrading from 3.2.x made the error go away, I have the impression that 3.2.x has an incompatibility in the binary datastreams that the kinetic-devel version is picking up and then erroring-out on.

AustinDeric commented 6 years ago

We are running the new e-series UR-10 with controller software version 5.1.0.40195 (Aug 22 2018) and we are seeing an identical error.

gavanderhoorn commented 6 years ago

Which would make sense seeing as the binary protocol was again changed but the deserialisers weren't yet.

wanglong06 commented 5 years ago

I was trying to set up a UR5 this morning, and I encountered the exact same problem. The software version was 3.2.18654

Thanks to @miguelprada and @gavanderhoorn 's advice, I upgraded the software to 3.7.2.40245, then the problem is solved.

Thanks, Long.

brianjzhang commented 5 years ago

Finally achieved success using @AustinDeric's branches that updated PlusOne's universal_robot and PlusOne's ur_modern_driver. Don't be like me either and make sure to catkin_make!

Final final update: due to issues with jerky motion, I gave dniewinski's repos another try from a clean clone and catkin_make. Somehow everything worked perfectly fine this time. I'll have to chalk to up to a character-building experience.

Same error as everyone, on a UR5e. @AustinDeric did you manage to find a workaround? I've been using dniewinski's forks for universal_robot and ur_modern_driver packages with the appropriate branches but am still running into this error.

I was originally running the UR5e on UR software 5.1.1.X and just updated to UR software 5.2.0.61336, and the error is identical. It seems possible that dniewinski's branch worked for 5.0.X versions (and possibly 5.1.0.X versions, according to @AustinDeric successfully working with a UR10e on that version) and not later versions, since that's what he tested with according to his pull request (#216). I'll also be asking this there.

The UR5e I'm working with shipped with URSoftware 5.1.1.X, and their support website specifically says not to downgrade farther than the originally shipped version. I may try re-imaging with 5.1.0.X if nothing else works.

Anastasiamor100 commented 5 years ago

UPDATE: I solved this issue by following this https://github.com/ros-industrial/ur_modern_driver/issues/184#issuecomment-435325436


Hi, I was experiencing this same issue. I have tried implementing the @AustinDeric solution however my robot does not move when I run the test_move.py file or attempt movement using rviz. I am using Ubuntu 18.04, ros melodic and a UR5e robot with ursoftware 5.0.4.x.

I receive the following errors when i use the command: rosrun test_move.py

Waiting for server...
Connected to server
This program makes the robot move between the following three poses:
[126.05071492878113, 0.0, -89.95437383553926, 0.0, 0.0, 0.0]
[85.94366926962348, 0.0, -89.95437383553926, 0.0, 0.0, 0.0]
[85.94366926962348, -11.459155902616464, -89.95437383553926, 0.0, 0.0, 0.0]
Please make sure that your robot can move freely between these poses before proceeding!
Continue? y/n: y

AND

roslaunch ur_modern_driver  ur5e_bringup.launch robot_ip:=192.168.1.100 [reverse_port:=REVERSE_PORT]
... logging to /home/blamboozel/.ros/log/3e4a4e28-2a87-11e9-806d-45b75f9e99eb/roslaunch-dreamcatcher-16161.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

xacro: in-order processing became default in ROS Melodic. You can drop the option.
started roslaunch server http://dreamcatcher:33101/

SUMMARY
========

PARAMETERS
 * /robot_description: <?xml version="1....
 * /rosdistro: melodic
 * /rosversion: 1.14.3
 * /ur_driver/base_frame: base
 * /ur_driver/max_payload: 5.0
 * /ur_driver/max_velocity: 10.0
 * /ur_driver/min_payload: 0.0
 * /ur_driver/prefix: 
 * /ur_driver/require_activation: Never
 * /ur_driver/robot_ip_address: 192.168.1.100
 * /ur_driver/servoj_time: 0.008
 * /ur_driver/shutdown_on_disconnect: True
 * /ur_driver/tool_frame: tool0_controller

NODES
  /
    robot_state_publisher (robot_state_publisher/robot_state_publisher)
    ur_driver (ur_modern_driver/ur_driver)

auto-starting new master
process[master]: started with pid [16174]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 3e4a4e28-2a87-11e9-806d-45b75f9e99eb
process[rosout-1]: started with pid [16185]
started core service [/rosout]
process[robot_state_publisher-2]: started with pid [16192]
process[ur_driver-3]: started with pid [16193]
[ INFO] [1549509597.417524971]: Setting up connection: 192.168.1.100:30003
[ INFO] [1549509597.417891165]: Connection established for 192.168.1.100:30003
[ INFO] [1549509597.417922196]: Setting up connection: 192.168.1.100:30001
[ INFO] [1549509597.418118992]: Connection established for 192.168.1.100:30001
[ INFO] [1549509597.418344500]: Got VersionMessage:
[ INFO] [1549509597.418354535]: project name: URControl
[ INFO] [1549509597.418363897]: version: 5.0.0
[ INFO] [1549509597.418383207]: build date: 01-06-2018, 15:28:58
[ INFO] [1549509597.418393085]: Disconnecting from 192.168.1.100:30001
[ INFO] [1549509597.422056687]: ActionServer enabled
[ INFO] [1549509597.422465573]: Initializing ur_driver/URScript subscriber
[ INFO] [1549509597.424064034]: The ur_driver/URScript initialized
[ INFO] [1549509597.424079495]: Notifier: Pipeline disconnect will shutdown the node
[ INFO] [1549509597.425511349]: Service 'ur_driver/robot_enable' activation mode: Never
[ INFO] [1549509597.425535671]: Starting main loop
[ INFO] [1549509597.425606630]: Setting up connection: 192.168.1.100:30003
[ INFO] [1549509597.425638846]: Starting pipeline RTPacket
[ INFO] [1549509597.425714030]: Setting up connection: 192.168.1.100:30002
[ INFO] [1549509597.425754861]: Starting pipeline StatePacket
[ INFO] [1549509597.425831793]: Connection established for 192.168.1.100:30003
[ INFO] [1549509597.425946273]: Connection established for 192.168.1.100:30002
[ INFO] [1549509597.426361553]: Starting ActionServer
[ INFO] [1549509597.426418142]: Trajectory thread started
[ INFO] [1549509786.684325155]: Received new goal
[ INFO] [1549509786.684470134]: Trajectory received and accepted
[ INFO] [1549509786.684631954]: Translating trajectory
[ INFO] [1549509786.684716824]: Executing trajectory with 10 points and duration of 1.429s
[ INFO] [1549508290.280991948]: Executing trajectory with 31 points and duration of 40.000s
[ERROR] [1549508290.281034607]: 0
[ERROR] [1549508290.281067675]: 2
[ERROR] [1549508290.281096009]: 1
[ERROR] [1549508290.281126558]: 1
[ERROR] [1549508290.281156481]: 2
[ERROR] [1549508290.281200823]: 1
[ERROR] [1549508290.281232549]: 1
[ERROR] [1549508290.281269986]: 2
[ERROR] [1549508290.281299308]: 1
[ERROR] [1549508290.281328145]: 1
[ERROR] [1549508290.281367923]: 2
[ERROR] [1549508290.281397744]: 1
[ERROR] [1549508290.281426806]: 1
[ERROR] [1549508290.281455447]: 2
[ERROR] [1549508290.281483698]: 1
[ERROR] [1549508290.281522978]: 1
[ERROR] [1549508290.281554002]: 2
[ERROR] [1549508290.281582629]: 1
[ERROR] [1549508290.281610956]: 1
[ERROR] [1549508290.281639639]: 2
[ERROR] [1549508290.281667644]: 1
[ERROR] [1549508290.281697027]: 1
[ERROR] [1549508290.281724944]: 2
[ERROR] [1549508290.281752704]: 1
[ERROR] [1549508290.281780510]: 1
[ERROR] [1549508290.281808355]: 2
[ERROR] [1549508290.281836299]: 1
[ERROR] [1549508290.281864367]: 1
[ERROR] [1549508290.281892276]: 2
[ERROR] [1549508290.281924360]: 1
[ERROR] [1549508290.281952532]: 1
[ERROR] [1549508290.282005907]: 
def driverProg():
  socket_open("192.168.1.120", 50001)

  movej([0.000678062, -1.57301, -0.0064497, -1.57429, 0.0101085, -0.00555641], t=0, r=0)
  movej([2.2, 0, -1.57, 0, 0, 0], t=2, r=0)
  movej([1.5, 0, -1.57, 0, 0, 0], t=1, r=0)
  movej([1.5, -0.2, -1.57, 0, 0, 0], t=1, r=0)
  movej([2.2, 0, -1.57, 0, 0, 0], t=2, r=0)
  movej([1.5, 0, -1.57, 0, 0, 0], t=1, r=0)
  movej([1.5, -0.2, -1.57, 0, 0, 0], t=1, r=0)
  movej([2.2, 0, -1.57, 0, 0, 0], t=2, r=0)
  movej([1.5, 0, -1.57, 0, 0, 0], t=1, r=0)
  movej([1.5, -0.2, -1.57, 0, 0, 0], t=1, r=0)
  movej([2.2, 0, -1.57, 0, 0, 0], t=2, r=0)
  movej([1.5, 0, -1.57, 0, 0, 0], t=1, r=0)
  movej([1.5, -0.2, -1.57, 0, 0, 0], t=1, r=0)
  movej([2.2, 0, -1.57, 0, 0, 0], t=2, r=0)
  movej([1.5, 0, -1.57, 0, 0, 0], t=1, r=0)
  movej([1.5, -0.2, -1.57, 0, 0, 0], t=1, r=0)
  movej([2.2, 0, -1.57, 0, 0, 0], t=2, r=0)
  movej([1.5, 0, -1.57, 0, 0, 0], t=1, r=0)
  movej([1.5, -0.2, -1.57, 0, 0, 0], t=1, r=0)
  movej([2.2, 0, -1.57, 0, 0, 0], t=2, r=0)
  movej([1.5, 0, -1.57, 0, 0, 0], t=1, r=0)
  movej([1.5, -0.2, -1.57, 0, 0, 0], t=1, r=0)
  movej([2.2, 0, -1.57, 0, 0, 0], t=2, r=0)
  movej([1.5, 0, -1.57, 0, 0, 0], t=1, r=0)
  movej([1.5, -0.2, -1.57, 0, 0, 0], t=1, r=0)
  movej([2.2, 0, -1.57, 0, 0, 0], t=2, r=0)
  movej([1.5, 0, -1.57, 0, 0, 0], t=1, r=0)
  movej([1.5, -0.2, -1.57, 0, 0, 0], t=1, r=0)
  movej([2.2, 0, -1.57, 0, 0, 0], t=2, r=0)
  movej([1.5, 0, -1.57, 0, 0, 0], t=1, r=0)
  movej([1.5, -0.2, -1.57, 0, 0, 0], t=1, r=0)
  stopj(3.14)

  socket_close()
end

[ INFO] [1549509786.685703607]: Setting up connection: :50001
[ INFO] [1549509786.685950971]: Connection established for :50001

These messages are coming from the trajectory_follower.cpp file. Does anyone know why this is happening? How can I get my ur5e moving?

Jason-Zhou1 commented 5 years ago

Hi Anastasiamor100, I am also using Ubuntu 18.04, ros melodic and a UR5e robot with ursoftware 5.0.2. May I know how you solved the not movable issue at last? Where did you get the "ur5e_bringup.launch" file?

Jason-Zhou1 commented 5 years ago

My current status is: I get the "ur5e_bringup.launch" file by editing "ur5_bringup.launch" (only changing "$(find ur_description)/launch/ur5_uplaod.launch" into "$(find ur_e_description)/launch/ur5e_upload.launch").

I launch the ur5e_bringup file and run the test_move.py file in new terminal. When it displays: Continue: y/n. I key in y. Then nothing happens any more. In the ur5e_bringup command line, it displays: on_goal.

Then I run the Moveit and Rviz. The Rviz can update the display of the state of the real ur5e arm, and the "Plan" button also works smoothly, but the "Execute" button does not take effect.

In summary, my robot state is well updated, but I cannot control the movement of the ur5e real arm through the ROS, even though the PolyScope can still drive the arm.

For the IP setting in PolyScope, I keep "Default gateway","Preferred/Alternative DNS Server" as: 0.0.0.0, and I also Enable the Remote Control.

What should I do next to make the arm move through ROS in my laptop?

Any suggestion is much appreciated.

Jason-Zhou1 commented 5 years ago

Hi Anastasiamor100, I have found that my command lines do not display the following messages as yours displayed:

...
[INFO]...
[ERROR]...
socket open() ...
[MOVEJ ...
socket close() ...

Does that mean my computer has not setup connection with the real robot arm?

Anastasiamor100 commented 5 years ago

Hi Anastasiamor100, I have found that my command lines do not display the following messages as yours displayed:

...
[INFO]...
[ERROR]...
socket open() ...
[MOVEJ ...
socket close() ...

Does that mean my computer has not setup connection with the real robot arm?

Hi Jason Zhou1, I'm was using this version of the code, https://github.com/ros-industrial/ur_modern_driver/issues/136#issuecomment-444709653

Also make sure to select the remote mode key next to the hamburger menu mentioned in https://github.com/ros-industrial/ur_modern_driver/issues/184#issuecomment-435325436

Jason-Zhou1 commented 5 years ago

Hi Anastasiamor100, Ok, I will try it following your advice. By the way, do you have idea about how to setup ur5e ip address? I don't know how to set the gateway, DNS server addresses. Thank you very much for your help! Best regards Jason

On Thu, Mar 21, 2019 at 11:46 AM Anastasiamor100 notifications@github.com wrote:

Hi Anastasiamor100, I have found that my command lines do not display the following messages as yours displayed:

... [INFO]... [ERROR]... socket open() ... [MOVEJ ... socket close() ...

Does that mean my computer has not setup connection with the real robot arm?

Hi Jason Zhou1, I'm was using this version of the code, #136 (comment) https://github.com/ros-industrial/ur_modern_driver/issues/136#issuecomment-444709653

Also make sure to select the remote mode key next to the hamburger menu mentioned in #184 (comment) https://github.com/ros-industrial/ur_modern_driver/issues/184#issuecomment-435325436

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ros-industrial/ur_modern_driver/issues/136#issuecomment-475105308, or mute the thread https://github.com/notifications/unsubscribe-auth/Akqy2W6ou5_KcVpZxtkhphgyih_PrMYBks5vYwB5gaJpZM4PpUWE .

Jason-Zhou1 commented 5 years ago

Hi Anastasiamor100,

When I download the 2 packages (the updated PlusOne's universal_robot https://github.com/plusone-robotics/universal_robot/tree/ur_e_fix and PlusOne's ur_modern_driver https://github.com/plusone-robotics/ur_modern_driver/tree/ur_moderner_driver) and catkin_make the catkin_ws, i got error massages:

CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "industrial_msgs" with any of the following names:

industrial_msgsConfig.cmake
industrial_msgs-config.cmake

Add the installation prefix of "industrial_msgs" to CMAKE_PREFIX_PATH or set "industrial_msgs_DIR" to a directory containing one of the above files. If "industrial_msgs" provides a separate development package or SDK, be sure it has been installed.

Then I downloaded industrial_core (which inlcudes industrial_msgs) to my catkin_ws: git clone https://github.com/ros-industrial/industrial_core.git Then i catkin_make and get messages as:

In file included from /opt/ros/melodic/include/hardware_interface/robot_hw.h:36:0, from /opt/ros/melodic/include/controller_interface/controller_base.h:37, from /opt/ros/melodic/include/controller_manager/controller_spec.h:41, from /opt/ros/melodic/include/controller_manager/controller_manager.h:36, from /home/longjiang/catkin_ws/src/ur_modern_driver/include/ur_modern_driver/ros/hardware_interface.h:2, from /home/longjiang/catkin_ws/src/ur_modern_driver/src/ros/hardware_interface.cpp:1: /opt/ros/melodic/include/hardware_interface/internal/interface_manager.h:69:10: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] static const void callConcatManagers(typename std::vector<T>& managers, T result) ^~~~~ In file included from /opt/ros/melodic/include/hardware_interface/robot_hw.h:36:0, from /opt/ros/melodic/include/controller_interface/controller_base.h:37, from /opt/ros/melodic/include/controller_manager/controller_spec.h:41, from /opt/ros/melodic/include/controller_manager/controller_manager.h:36, from /home/longjiang/catkin_ws/src/ur_modern_driver/include/ur_modern_driver/ros/controller.h:2, from /home/longjiang/catkin_ws/src/ur_modern_driver/src/ros/controller.cpp:1: /opt/ros/melodic/include/hardware_interface/internal/interface_manager.h:69:10: warning: type qualifiers ignored on function return type [-Wignored-qualifiers] static const void callConcatManagers(typename std::vector<T>& managers, T result) ^~~~~ In file included from /home/longjiang/catkin_ws/src/ur_modern_driver/src/ros/hardware_interface.cpp:1:0: /home/longjiang/catkin_ws/src/ur_modern_driver/include/ur_modern_driver/ros/hardware_interface.h: In constructor ‘VelocityInterface::VelocityInterface(URCommander&, hardware_interface::JointStateInterface&, std::vector<std::__cxx11::basic_string >&, double)’: /home/longjiang/catkin_ws/src/ur_modern_driver/include/ur_modern_driver/ros/hardware_interface.h:57:10: warning: ‘VelocityInterface::max_velchange’ will be initialized after [-Wreorder] double max_velchange; ^~~~~~~ /home/longjiang/catkin_ws/src/ur_modern_driver/include/ur_modern_driver/ros/hardware_interface.h:56:40: warning: ‘std::array<double, 6> VelocityInterface::prev_velocitycmd’ [-Wreorder] std::array<double, 6> velocitycmd, prev_velocitycmd; ^~~~~~ /home/longjiang/catkin_ws/src/ur_modern_driver/src/ros/hardware_interface.cpp:32:1: warning: when initialized here [-Wreorder] VelocityInterface::VelocityInterface(URCommander &commander, hardware_interface::JointStateInterface &js_interface, ^~~~~ [ 2%] Linking CXX shared library /home/longjiang/catkin_ws/devel/lib/libur_hardware_interface.so [ 2%] Built target ur_hardware_interface Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j12 -l12" failed

Later I used the industrial_msgs instead of industrial_core and the error messages are still there.

What do you think is the problem in my operations?

Thank you!

Best regards

Jason

On Thu, Mar 21, 2019 at 11:46 AM Anastasiamor100 notifications@github.com wrote:

Hi Anastasiamor100, I have found that my command lines do not display the following messages as yours displayed:

... [INFO]... [ERROR]... socket open() ... [MOVEJ ... socket close() ...

Does that mean my computer has not setup connection with the real robot arm?

Hi Jason Zhou1, I'm was using this version of the code, #136 (comment) https://github.com/ros-industrial/ur_modern_driver/issues/136#issuecomment-444709653

Also make sure to select the remote mode key next to the hamburger menu mentioned in #184 (comment) https://github.com/ros-industrial/ur_modern_driver/issues/184#issuecomment-435325436

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ros-industrial/ur_modern_driver/issues/136#issuecomment-475105308, or mute the thread https://github.com/notifications/unsubscribe-auth/Akqy2W6ou5_KcVpZxtkhphgyih_PrMYBks5vYwB5gaJpZM4PpUWE .

miguelprada commented 5 years ago

@Jason-Zhou1 this issue is supposed to track the problem with deserialization of certain packages for certain PolyScope versions. Please refrain from using it as a general Q&A discussion forum; you can use https://answers.ros.org for that.

I'm going to close the issue since it has long gone off-topic.

sourabhacharya commented 5 years ago

Hello @miguelprada @gavanderhoorn

Since you have experience on this issue, could you please help me debug this error? I'm getting the same error on ROS Kinetic being run on Debian 8 with UR10 CB3.1 series and UR software 5.0.4.30603. I can use PolyScope to move robot with local control, but with remote control, I'm not able to see any movement.

Thanks!

[ INFO] [1560555640.026144442]: Trajectory thread started                              
[ERROR] [1560555640.092470129]: Sub-package of type 0 was not parsed completely!   
[ INFO] [1560555640.092610956]: Disconnecting from 10.45.93.4:30002                   
[ INFO] [1560555640.092722969]: Shutting down on stopped pipeline StatePacket          
[ur_driver-2] process has died [pid 1824, exit code -11