Comments (16)
Hi Ahyan,
that error message is normal until you start the ROSMonitor or ROSSmartServo application from the SmartPad of the robot. After you start the application, you should see the message "robot connected".
By the way: if I understand you correctly, you are using a WiFi network to connect the workstation to the robot. This is quite dangerous, given the unreliability of a wireless connection; as far as I know it would be much safer to use an Ethernet cable, better if without switch between the computer and the robot.
from iiwa_stack.
I started the application.However it shows that "couldn't find an AF_INET address for [fe80]. Robot is not connected...." .Do you think the problem occurs for using wifi network? Using wired connection can solve this?
Thank you
from iiwa_stack.
I tried by removing switch between IIWA and my PC and simply connect the cable with my pc, configure the IP address of associated network card. The connection is made via KLI. Using this network setting I am able to upload sunrise application on to the controller.
Then I started the ROSSmartServo application from the SmartPad and executed roscore. I can hear the robot being unlocked.
However, when I try t rosrun iiwa_tool_examples read_robot_state, It shows
"couldn't find an AF_INET address for [fe80]. Robot is not connected...."
roscore terminal also shows same error message "couldn't find an AF_INET address for [fe80]."
Would you please give any suggestion to fix it?
Thank you
from iiwa_stack.
You correctly use the KLI port to synchronize the Sunrise project onto the cabinet.
But the ROS communication goes through the KONI port at the moment, you need to set it up following these instructions.
You will still need the connection via the KLI port for synchronization (by default 172.31.1.147 is the cabinet and 172.31.1.2 your PC, from what you posted).
Then you are going to have another network for ROS via the KONI port. We use 160.69.69.69 on the cabinet and 160.69.69.100 on the PC, but you can choose whatever you want. You need to set those IPs : on the network configuration within the Windows7 Embedded on the cabinet, on the network configuration of your PC and as your ROS_MASTER_URI and in the configuration file in the Sunrise project.
If your PC doesn't have two ethernet interfaces, you can simply switch the one it has after synchronizing the project.
I hope this helps, let us know in case it is not clear.
from iiwa_stack.
Thank you for your explanation. It helps me a lot. Before going for the cabinet setup (https://github.com/SalvoVirga/iiwa_stack/wiki/cabinet_setup), I would like to ask you (as there is a warning) if these instructions create any problem to the original setup of the cabinet/hardware, is it possible to restore the original setup?
Thank you
from iiwa_stack.
An unofficial statement from KUKA would sound something like "That is not the intended use and it may lead to untested/unexpected behaviours". In practice we never experienced any problem at all, and it's possible to revert the change as shown in the note at the end of that wiki page. I personally assigned that ethernet port back and forth to win/rtos hundred times.
An idea to be super safe could be to make an image of the ssd disk inside the cabinet for backup.
from iiwa_stack.
I finished cabinet setup (https://github.com/SalvoVirga/iiwa_stack/wiki/cabinet_setup). Now IP addresses are:
cabinet: 160.69.69.69 (IP), 255.255.255.0 (netmask), I kept it blank (gateway)
ubuntu machine: 160.69.69.100 (IP), 255.255.255.0 (netmask), 160.69.69.100 (gateway)
export ROS_MASTER_URI=http://160.69.69.100:11311
export ROS_IP=160.69.69.100
config.txt: master_ip=160.69.69.100
Then I started the ROSSmartServo application from the SmartPad and executed roscore. I can hear the robot being unlocked.
However, when I try roslaunch iiwa_tool_examples iiwa_tool_command_moveit.launch, still It shows
"Robot is not connected....
No LBR IIWA is connected. waiting for the robot to connect before reading"
I am able to ping from both side using ping 160.69.69.69 and ping 160.69.69.100. I got stuck at this point. Please help me in this regard.
Thank you
from iiwa_stack.
The setup looks good.
Run ROSSmartServo or ROSMonitor from the SmartPad and just a roscore on the external PC. Now try to print the joint position of the robot with
rostopic echo /iiwa/state/JointPosition
you should get some values, same for /iiwa/state/CartesianPose and so on. If this doesn't work let me know. Remember that export ROS_MASTER_URI and export ROS_IP has to be in the .bashrc file or you have to call that for every instance of the shell.
It might also be that those messages "No LBR IIWA is connected. waiting for the robot to connect before reading" are printed out (wrongly) also when the robot is connected, just check with rostopic echo.
Mind that the examples from iiwa_tool is made to show how to work with a tool attached on the robot, as described here.
As shown at the bottom of that page, that requires the tool to be defined also within Sunrise Workbench.
Rather than trying with that, I would call roslaunch iiwa_moveit moveit_planning_execution.launch sim:=false
. That will make you work with the robot without any tool attached to it.
Then if you need to attach a tool, follow the wiki step by step to reproduce the examples of iiwa_tool for your specific tool. Remember to define the tool you want to use in the launch file that you call.
from iiwa_stack.
Thank you for your kind response. I want to follow your suggestions. However, now I am facing another new problem that didn't happened earlier. Before I was able to execute ROSSmartServo or ROSMonitor from smart pad while running roscore on ubuntu machine without any red error messages. However, now it shows the following errors on smartpad
Do you have any idea why this error?
Thank you
from iiwa_stack.
Oh, which Sunrise version are you using? I had this error an infinite number of times in the past, but it should be fixed by now.
Just restart completely the cabinet until it doesn't show up :|
When it shows up you could also create a diagnostic package (check in the KUKA manual) and send it to me, I would then forward it to the right people at KUKA.
from iiwa_stack.
I am using sunrise.os 1.7.0.11. How did you fixed it when you faced this error?
Here is the diagnostic package.
https://drive.google.com/file/d/0B8X1OCrk2KDvR0lwbDNKcXhUOUU/view?usp=drive_web
Thank you
from iiwa_stack.
Just turning off/on the cabinet until you are lucky :|
from iiwa_stack.
Now all error messages are disappears. Again I am able to start the ROSSmartServo application from the SmartPad and executed roscore .
I can hear the robot being unlocked. Then I use rostopic list. It shows:
/iiwa/command/CartesianPose
/iiwa/command/CartesianWrench
/iiwa/command/JointPosition
/iiwa/command/JointStiffness
/iiwa/commmand/JointTorque
/iiwa/joint_states
/iiwa/state/CartesianPose
/iiwa/state/CartesianWrench
/iiwa/state/JointDamping
/iiwa/state/JointPosition
/iiwa/state/JointStiffness
/iiwa/state/JointTorque
/iiwa/state/buttonEvent
/rosout
/rosout_agg
Then I try to print the joint position of the robot with rostopic echo /iiwa/state/JointPosition. But terminal shows nothing. Same for /iiwa/state/CartesianPose or /iiwa/joint_states.
Next I call roslaunch iiwa_moveit moveit_planning_execution.launch sim:=false. It keep showing that "No LBR IIWA is connected. waiting for the robot to connect before reading". Also it shows visualization tool. Now if I execute rostopic echo /iiwa/joint_states, it shows following response:
Although other (e.g. rostopic echo /iiwa/state/JointPosition) show nothing.
I put export ROS_MASTER_URI and export ROS_IP in the .bashrc file. I wonder whether the robot is really connected. Why it is not showing any values for rostopic echo?
Hope you will give me suggestions to proceed on. Thank you.
from iiwa_stack.
I try to plan the movements of the robot Kuka LBR IIWA. I am using ubuntu 14.04 LTS and ros Indigo. But the robot writes an error: No LBR IIWA is connected. Waiting for the robot to connect before reading...
What am I doing wrong, if I want to plan the robot movements? Thanks.
When you choose Planning / Commands / Plan and Execute robot does not move, only writes an error in Terminal.
Thank you.
from iiwa_stack.
That "No LBR IIWA is connected. Waiting for the robot to connect before reading..." is quite buggy, it is printed also when the robot is connected. So don't rely on that, we will fix it at some point.
If you are running ROSSmartServo and you can read the state of the robot, you should also be able to command it. I think your problems falls in the category of network setting, please have a look at this.
In particular, be sure you set everything in the ~/.bashrc. Once you check the three points, let me know if you find something or nothing changes.
from iiwa_stack.
I went through this again three fundamental steps. When I started ROSSmartServo so after starting the program the robot a click and after 5-6 seconds the stop Ros loop. I know Ping device from both sides. ROS - Cabinet and Cabinet - ROS. I still have new problems. I can not get them out. Thank you for your advice.
from iiwa_stack.
Related Issues (20)
- Is it possible to access the I/O-groups? HOT 1
- Using iiwa_moveit results in a jerky motion HOT 4
- Q: What is [override_joint_acceleration] in SetSmartServoJointSpeedLimits.srv HOT 1
- Compatability with kuka med 7 HOT 1
- Python MoveIt integration
- Robot semantic description not found. Did you forget to define or remap '/robot_description_semantic'? HOT 1
- ‘ConfigureControlMode’ is not a member of ‘iiwa_msgs’ HOT 1
- Use of DirectServo instead of SmartServo? HOT 1
- Can't find the srv about “configuresmartservo” in ROS Noetic. HOT 1
- Problems with the accuracy of the desired force mode
- Installing the Servoing module in Workbench / Is it mandatory to have a Windows 7 machine as the Programming computer? HOT 1
- iiwa_stack ip configuration issue
- Direct Servo Joints Control Implementation
- Diect publish joint positions HOT 2
- Errors using Gazebo and iiwa_stack examples
- Smooth Velocity Control using iiwa/command/JointVelocity HOT 4
- Creating safety configuration
- subscribe the sensor data not in real time
- who can really use this stack to communicate with kuka iiwa robot smoothly???
- Suspect setMaxCartesianVelocity ought to actually call the service
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iiwa_stack.