Skip to content

Commit

Permalink
Update command language instructions standard item to include uuid an…
Browse files Browse the repository at this point in the history
…d parent uuid
  • Loading branch information
Levi-Armstrong committed May 29, 2024
1 parent 6887ce3 commit a1a3659
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
#include <tesseract_command_language/move_instruction.h>
#include <tesseract_command_language/poly/instruction_poly.h>

#include <boost/uuid/uuid_io.hpp>

namespace tesseract_gui
{
CompositeInstructionStandardItem::CompositeInstructionStandardItem(const tesseract_planning::CompositeInstruction& ci)
Expand Down Expand Up @@ -82,6 +84,8 @@ void CompositeInstructionStandardItem::ctor(const tesseract_planning::CompositeI
appendRow(createStandardItemString("description", ci.getDescription()));
appendRow(createStandardItemString("order", toString(ci.getOrder())));
appendRow(createStandardItemString("profile", ci.getProfile()));
appendRow(createStandardItemString("uuid", boost::uuids::to_string(ci.getUUID())));
appendRow(createStandardItemString("parent uuid", boost::uuids::to_string(ci.getParentUUID())));
appendRow(new ManipulatorInfoStandardItem("manip info", ci.getManipulatorInfo()));
appendRow(new VectorInstructionStandardItem("instructions", ci.getInstructions()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include <tesseract_command_language/poly/joint_waypoint_poly.h>
#include <tesseract_command_language/poly/state_waypoint_poly.h>

#include <boost/uuid/uuid_io.hpp>

namespace tesseract_gui
{
MoveInstructionStandardItem::MoveInstructionStandardItem(const tesseract_planning::MoveInstructionPoly& mi)
Expand Down Expand Up @@ -81,6 +83,8 @@ void MoveInstructionStandardItem::ctor(const tesseract_planning::MoveInstruction
appendRow(createStandardItemString("profile", mi.getProfile()));
appendRow(createStandardItemString("path_profile", mi.getPathProfile()));
appendRow(createStandardItemString("type", toString(mi.getMoveType())));
appendRow(createStandardItemString("uuid", boost::uuids::to_string(mi.getUUID())));
appendRow(createStandardItemString("parent uuid", boost::uuids::to_string(mi.getParentUUID())));
appendRow(new ManipulatorInfoStandardItem(mi.getManipulatorInfo())); // NOLINT

if (mi.getWaypoint().isCartesianWaypoint())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include <tesseract_command_language/set_analog_instruction.h>

#include <boost/uuid/uuid_io.hpp>

namespace tesseract_gui
{
SetAnalogInstructionStandardItem::SetAnalogInstructionStandardItem(const tesseract_planning::SetAnalogInstruction& sai)
Expand Down Expand Up @@ -58,6 +60,8 @@ int SetAnalogInstructionStandardItem::type() const
void SetAnalogInstructionStandardItem::ctor(const tesseract_planning::SetAnalogInstruction& sai)
{
appendRow(createStandardItemString("description", sai.getDescription()));
appendRow(createStandardItemString("uuid", boost::uuids::to_string(sai.getUUID())));
appendRow(createStandardItemString("parent uuid", boost::uuids::to_string(sai.getParentUUID())));
appendRow(createStandardItemString("key", sai.getKey()));
appendRow(createStandardItemInt("index", sai.getIndex()));
appendRow(createStandardItemFloat("value", sai.getValue()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include <tesseract_command_language/set_tool_instruction.h>

#include <boost/uuid/uuid_io.hpp>

namespace tesseract_gui
{
SetToolInstructionStandardItem::SetToolInstructionStandardItem(const tesseract_planning::SetToolInstruction& sti)
Expand Down Expand Up @@ -55,6 +57,8 @@ int SetToolInstructionStandardItem::type() const { return static_cast<int>(Stand
void SetToolInstructionStandardItem::ctor(const tesseract_planning::SetToolInstruction& sti)
{
appendRow(createStandardItemString("description", sti.getDescription()));
appendRow(createStandardItemString("uuid", boost::uuids::to_string(sti.getUUID())));
appendRow(createStandardItemString("parent uuid", boost::uuids::to_string(sti.getParentUUID())));
appendRow(createStandardItemInt("tool", sti.getTool()));
}
} // namespace tesseract_gui
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include <tesseract_command_language/timer_instruction.h>

#include <boost/uuid/uuid_io.hpp>

namespace tesseract_gui
{
TimerInstructionStandardItem::TimerInstructionStandardItem(const tesseract_planning::TimerInstruction& ti)
Expand Down Expand Up @@ -68,6 +70,8 @@ std::string toString(tesseract_planning::TimerInstructionType t_type)
void TimerInstructionStandardItem::ctor(const tesseract_planning::TimerInstruction& ti)
{
appendRow(createStandardItemString("description", ti.getDescription()));
appendRow(createStandardItemString("uuid", boost::uuids::to_string(ti.getUUID())));
appendRow(createStandardItemString("parent uuid", boost::uuids::to_string(ti.getParentUUID())));
appendRow(createStandardItemString("type", toString(ti.getTimerType())));
appendRow(createStandardItemFloat("time (sec)", ti.getTimerTime()));
appendRow(createStandardItemInt("I/O", ti.getTimerIO()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

#include <tesseract_command_language/wait_instruction.h>

#include <boost/uuid/uuid_io.hpp>

namespace tesseract_gui
{
WaitInstructionStandardItem::WaitInstructionStandardItem(const tesseract_planning::WaitInstruction& wi)
Expand Down Expand Up @@ -74,6 +76,8 @@ std::string toString(tesseract_planning::WaitInstructionType w_type)
void WaitInstructionStandardItem::ctor(const tesseract_planning::WaitInstruction& wi)
{
appendRow(createStandardItemString("description", wi.getDescription()));
appendRow(createStandardItemString("uuid", boost::uuids::to_string(wi.getUUID())));
appendRow(createStandardItemString("parent uuid", boost::uuids::to_string(wi.getParentUUID())));
appendRow(createStandardItemString("type", toString(wi.getWaitType())));
appendRow(createStandardItemFloat("time (sec)", wi.getWaitTime()));
appendRow(createStandardItemInt("I/O", wi.getWaitIO()));
Expand Down

0 comments on commit a1a3659

Please sign in to comment.