Closed yossioo closed 7 years ago
I think that there is no error.
[PortHandlerLinux::SetupPort] Error opening serial port! -> if you execute gazebo mode, this is not error.
Did you try to use manipulator_h_gui? I think that command will work. https://github.com/ROBOTIS-GIT/ROBOTIS-Documents/wiki/How-to-operate-GUI-program
I can start GUI node and it works.
Why does port handler even start when I work with gazebo? If I have a real Manipulator-H connected, will it connect to it, despite the fact that I specify gazebo argument? If so, how can I know whether the command I send will go to simulation in gazebo or to real robot? If it won't connect, why it even tries to open serial port?
This looks deceiving: displaying a message about serial port when I work with gazebo, maybe some message about manager connecting to gazebo should be displayed instead?
We will fix the framework.
If you start the framework with the topic "gazebo:=true",you can confirm from the command "rostopic list". Some topics are generated for the gazebo.
After fresh installation of following packages from git,
A gazebo simulation launched by running the following command:
roslaunch manipulator_h_gazebo manipulator_h_gazebo.launch
When running a following command the manager starts but tries to connect via serial port, despite the fact that GAZEBO parameter specified to be true.
roslaunch manipulator_h_manager manipulator_h_manager.launch gazebo:=true
Trying to confirm that the argument was received, I added a line to CPP file:
The output when running the command:
Full text: