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

[ft_sensor-2] process has died [pid 87237, exit code -7, #19

Open
HongyuanChen opened this issue Jun 6, 2024 · 4 comments
Open

[ft_sensor-2] process has died [pid 87237, exit code -7, #19

HongyuanChen opened this issue Jun 6, 2024 · 4 comments

Comments

@HongyuanChen
Copy link

Sorry to interrupt you. I have faced a problem with the code.
I create my workspace. And copy the downloaded zip file to the /workspace/src and unzip it and rename as ati_sensor.
Then I have changed the ip address in ft_sensor_node.cpp and ft_sensor.launch with 192.168.1.1.
Then catkin_make.
When I use the following sentence to start the node like:
roslaunch ati_sensor ft_sensor.launch ip:=192.168.1.1 frame:=/ati_ft_link

The terminal returns as follows:

... logging to /home/bbl/.ros/log/dea96846-23e1-11ef-aafa-e772c84d7aa0/roslaunch-bbl-System-Product-Name-87215.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://bbl-System-Product-Name:46321/

SUMMARY
========

PARAMETERS
 * /ft_sensor/frame: /ati_ft_link
 * /ft_sensor/ip: 192.168.1.1
 * /rosdistro: noetic
 * /rosversion: 1.16.0

NODES
  /
    ft_sensor (ati_sensor/ft_sensor_node)

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

setting /run_id to dea96846-23e1-11ef-aafa-e772c84d7aa0
process[rosout-1]: started with pid [87234]
started core service [/rosout]
process[ft_sensor-2]: started with pid [87237]
[ INFO] [1717663848.588635817]: ATISensor IP : 192.168.1.1
[ INFO] [1717663848.589147044]: ATISensor frame : /ati_ft_link
[ft_sensor 192.168.1.1:49152] Start realtime streaming with 1 samples 
[ft_sensor 192.168.1.1:49152] Using current calibration
[ft_sensor 192.168.1.1:49152] Sucessfully retrieved counts per force : 1000000
[ft_sensor 192.168.1.1:49152] Sucessfully retrieved counts per torque : 1000000
[ft_sensor-2] process has died [pid 87237, exit code -7, cmd /home/bbl/chy/ati_ws/devel/lib/ati_sensor/ft_sensor_node __name:=ft_sensor __log:=/home/bbl/.ros/log/dea96846-23e1-11ef-aafa-e772c84d7aa0/ft_sensor-2.log].
log file: /home/bbl/.ros/log/dea96846-23e1-11ef-aafa-e772c84d7aa0/ft_sensor-2*.log
[ft_sensor-2] restarting process
process[ft_sensor-2]: started with pid [87249]
[ INFO] [1717663848.850855297]: ATISensor IP : 192.168.1.1
[ INFO] [1717663848.851312782]: ATISensor frame : /ati_ft_link
[ft_sensor 192.168.1.1:49152] Start realtime streaming with 1 samples 
[ft_sensor 192.168.1.1:49152] Using current calibration
[ft_sensor 192.168.1.1:49152] Sucessfully retrieved counts per force : 1000000
[ft_sensor 192.168.1.1:49152] Sucessfully retrieved counts per torque : 1000000
[ft_sensor-2] process has died [pid 87249, exit code -7, cmd /home/bbl/chy/ati_ws/devel/lib/ati_sensor/ft_sensor_node __name:=ft_sensor __log:=/home/bbl/.ros/log/dea96846-23e1-11ef-aafa-e772c84d7aa0/ft_sensor-2.log].
log file: /home/bbl/.ros/log/dea96846-23e1-11ef-aafa-e772c84d7aa0/ft_sensor-2*.log

I try to find what is wrong with the thing but I can't find the .log file in the folder which mentioned in the terminal. I wonder if anyone have encountered similar problems as I do. Please help me and thanks a lot !!

@HongyuanChen
Copy link
Author

I have ignored the ip address in ft_sensor.h. When I correct it as 192.168.1.1, the terminal reports the following errors:

[ft_sensor-2] restarting process
process[ft_sensor-2]: started with pid [88734]
[ INFO] [1717665718.144031801]: ATISensor IP : 192.168.1.1
[ INFO] [1717665718.144370585]: ATISensor frame : /ati_ft_link
[ft_sensor 192.168.1.1:49152] Start realtime streaming with 1 samples 
[ft_sensor 192.168.1.1:49152] Using current calibration
error : Operation in progress
I/O warning : failed to load external entity "http://192.168.1.1/netftapi2.xml"
[ft_sensor 192.168.1.1:49152] Could not parse file http://192.168.1.1/netftapi2.xml
[ft_sensor 192.168.1.1:49152] Using default counts per force : 1000000
[ft_sensor 192.168.1.1:49152] Using default counts per torque : 1000000
[ft_sensor-2] process has died [pid 88734, exit code -7, cmd /home/bbl/chy/ati_ws/devel/lib/ati_sensor/ft_sensor_node __name:=ft_sensor __log:=/home/bbl/.ros/log/37555e1a-23e6-11ef-aafa-e772c84d7aa0/ft_sensor-2.log].
log file: /home/bbl/.ros/log/37555e1a-23e6-11ef-aafa-e772c84d7aa0/ft_sensor-2*.log

@guihomework
Copy link
Collaborator

Hi, I have used this sensor software with a netFT box in the past but do not have access to one right now.
I also participated to the development.

I would suggest to look http://192.168.1.1/netftapi2.xml in a web browser directly when the sensor is operational. If this address is wrong, then check the doc of your sensor to find out what the correct address is. Additionally you could specify your hardware reference for better help.

@HongyuanChen
Copy link
Author

Hi, Thank you for your answer. But I have tried to directly open the [(http://192.168.1.1/netftapi2.xml)] it seems quite well. So I don't understand what's wrong with the code or me. I have extended this question to my ATI hardwae provider, they also don't know what's wrong.

@guihomework
Copy link
Collaborator

Ok. Just something that had happened within my lab: There was a difference between browser access and "terminal/software" access to http pages in our lab. We had to disable proxy access in our terminal before starting up the driver.

You could also try start the driver with a debugger, which might help to know why/where the node crashes

http://wiki.ros.org/roslaunch/Tutorials/Roslaunch%20Nodes%20in%20Valgrind%20or%20GDB

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

No branches or pull requests

2 participants