-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
136 additions
and
149 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
bitbots_motion/bitbots_animation_rqt/bitbots_animation_rqt/utils.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from python_qt_binding.QtCore import Qt, pyqtSignal | ||
from python_qt_binding.QtWidgets import QListWidget | ||
|
||
class DragDropList(QListWidget): | ||
''' QListWidget with an event that is called when a drag and drop action was performed.''' | ||
keyPressed = pyqtSignal() | ||
|
||
def __init__(self, parent, ui): | ||
super(DragDropList, self).__init__(parent) | ||
|
||
self.ui = ui | ||
self.setAcceptDrops(True) | ||
|
||
|
||
def dropEvent(self, e): | ||
super(DragDropList, self).dropEvent(e) | ||
items = [] | ||
for i in range(0, self.count()): | ||
items.append(self.item(i).text()) | ||
self.ui.change_frame_order(items) | ||
|
||
def keyPressEvent(self, event): | ||
if event.key() == Qt.Key_Delete: | ||
super(DragDropList, self).keyPressEvent(event) | ||
self.keyPressed.emit() | ||
elif event.key() == Qt.Key_Up and self.currentRow()-1 >= 0: | ||
self.setCurrentRow(self.currentRow()-1) | ||
elif event.key() == Qt.Key_Down and self.currentRow()+1 < self.count(): | ||
self.setCurrentRow(self.currentRow()+1) |
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>bitbots_animation_rqt</name> | ||
<version>2.0.0</version> | ||
<description> | ||
A Python GUI plugin to record joint space animations. | ||
</description> | ||
|
||
<maintainer email="[email protected]">Florian Vahl</maintainer> | ||
<maintainer email="[email protected]">Hamburg Bit-Bots</maintainer> | ||
|
||
<author email="[email protected]">Jasper Güldenstein</author> | ||
|
||
<license>MIT</license> | ||
|
||
<exec_depend version_gte="0.2.19">python_qt_binding</exec_depend> | ||
<exec_depend>python3-rospkg</exec_depend> | ||
<exec_depend>rclpy</exec_depend> | ||
<exec_depend>rqt_gui</exec_depend> | ||
<exec_depend>rqt_gui_py</exec_depend> | ||
<exec_depend>bitbots_hcm</exec_depend> | ||
|
||
<export> | ||
<architecture_independent/> | ||
<rqt_gui plugin="${prefix}/plugin.xml"/> | ||
<build_type>ament_python</build_type> | ||
</export> | ||
</package> | ||
|
8 changes: 4 additions & 4 deletions
8
...ts_motion/bitbots_recordui_rqt/plugin.xml → ...s_motion/bitbots_animation_rqt/plugin.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<library path="src"> | ||
<class name="RecordUI" type="bitbots_recordui_rqt.record_ui.RecordUI" base_class_type="rqt_gui_py::Plugin"> | ||
<class name="RecordUI" type="bitbots_animation_rqt.record_ui.RecordUI" base_class_type="rqt_gui_py::Plugin"> | ||
<description> | ||
TODO | ||
A Python GUI plugin to record joint space animations. | ||
</description> | ||
<qtgui> | ||
<group> | ||
<label>RoboCup</label> | ||
<icon type="theme">folder</icon> | ||
<statustip>Plugins related to RoboCup.</statustip> | ||
</group> | ||
<label>Animation record</label> | ||
<label>Bit-Bots Animation</label> | ||
<icon type="theme">preferences-system-network</icon> | ||
<statustip>TODO</statustip> | ||
<statustip>A Python GUI plugin to record joint space animations.</statustip> | ||
</qtgui> | ||
</class> | ||
</library> |
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[develop] | ||
script_dir=$base/lib/bitbots_animation_rqt | ||
[install] | ||
install_scripts=$base/lib/bitbots_animation_rqt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from setuptools import find_packages, setup | ||
|
||
package_name = "bitbots_animation_rqt" | ||
|
||
setup( | ||
name=package_name, | ||
packages=find_packages(), | ||
data_files=[ | ||
("share/" + package_name + "/resource", ["resource/RecordUI.ui"]), | ||
("share/ament_index/resource_index/packages", ["resource/" + package_name]), | ||
("share/" + package_name, ["package.xml"]), | ||
("share/" + package_name, ["plugin.xml"]), | ||
], | ||
install_requires=["setuptools"], | ||
zip_safe=True, | ||
entry_points={ | ||
"console_scripts": [ | ||
"animation_gui = " + package_name + ".record_ui:main", | ||
], | ||
}, | ||
) |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.