Skip to content

Commit

Permalink
Merge branch 'jr3-mbed'
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Jan 2, 2024
2 parents a8570b2 + c491fe5 commit 1c466d0
Show file tree
Hide file tree
Showing 99 changed files with 3,022 additions and 1,091 deletions.
4 changes: 2 additions & 2 deletions doc/yarp-devices-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ For unit testing, you'll need the googletest source package. Refer to [Install g
- [../libraries/YarpPlugins/AravisGigE](../libraries/YarpPlugins/AravisGigE#requirements)
- [../libraries/YarpPlugins/CanBusHico](../libraries/YarpPlugins/CanBusHico#requirements)
- [../libraries/YarpPlugins/CanBusPeak](../libraries/YarpPlugins/CanBusPeak#requirements)
- [../libraries/YarpPlugins/Jr3](../libraries/YarpPlugins/Jr3#requirements)
- [../libraries/YarpPlugins/Jr3Pci](../libraries/YarpPlugins/Jr3Pci#requirements)
- [../libraries/YarpPlugins/LeapMotionSensor](../libraries/YarpPlugins/LeapMotionSensor#requirements)
- [../libraries/YarpPlugins/SpaceNavigator](../libraries/YarpPlugins/SpaceNavigator#requirements)
- [../libraries/YarpPlugins/WiimoteSensor](../libraries/YarpPlugins/WiimoteSensor#requirements)
- [../programs/grabberControls2Gui](../programs/grabberControls2Gui#requirements)
- The following components additionally need some kind of CAN Bus driver (e.g. a [CanBusHico](../libraries/YarpPlugins/CanBusHico) or [CanBusPeak](../libraries/YarpPlugins/CanBusPeak)):
- [../libraries/YarpPlugins/CanBusControlBoard](../libraries/YarpPlugins/CanBusControlBoard)
- [../libraries/YarpPlugins/CanBusBroker](../libraries/YarpPlugins/CanBusBroker)
- [../libraries/YarpPlugins/CuiAbsolute](../libraries/YarpPlugins/CuiAbsolute)
- [../libraries/YarpPlugins/FakeJoint](../libraries/YarpPlugins/FakeJoint)
- [../libraries/YarpPlugins/LacqueyFetch](../libraries/YarpPlugins/LacqueyFetch)
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
option(ENABLE_examples "Enable/disable C++ examples" OFF)

if(ENABLE_examples)
add_subdirectory(exampleJr3)
add_subdirectory(exampleJr3Pci)
add_subdirectory(exampleRemoteControlBoard)
add_subdirectory(exampleRemoteControlBoardModule)
add_subdirectory(exampleRemoteJr3)
Expand Down
12 changes: 0 additions & 12 deletions examples/cpp/exampleJr3/CMakeLists.txt

This file was deleted.

12 changes: 12 additions & 0 deletions examples/cpp/exampleJr3Pci/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.16)

project(exampleJr3Pci LANGUAGES CXX)

if(NOT YARP_FOUND)
find_package(YARP 3.7 REQUIRED COMPONENTS os dev)
endif()

add_executable(exampleJr3Pci exampleJr3Pci.cpp)

target_link_libraries(exampleJr3Pci YARP::YARP_os
YARP::YARP_dev)
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

/**
* @ingroup yarp_devices_examples_cpp
* @defgroup exampleJr3 exampleJr3
* @brief This example instantiates a local @ref Jr3 device.
* @defgroup exampleJr3Pci exampleJr3Pci
* @brief This example instantiates a local @ref Jr3Pci device.
*/

/**
* @example{lineno} exampleJr3.cpp
* @example{lineno} exampleJr3Pci.cpp
*/

#include <yarp/os/LogStream.h>
Expand All @@ -19,7 +19,7 @@

int main(int argc, char * argv[])
{
yarp::os::Property options {{"device", yarp::os::Value("Jr3")}};
yarp::os::Property options {{"device", yarp::os::Value("Jr3Pci")}};

yarp::dev::PolyDriver device(options);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @ingroup yarp_devices_examples_cpp
* @defgroup exampleRemoteControlBoard exampleRemoteControlBoard
*
* @brief This example connects to a remote control board device (e.g. @ref CanBusControlBoard).
* @brief This example connects to a remote control board device (e.g. @ref CanBusBroker).
*
* <b>Legal</b>
*
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/exampleRemoteControlBoardModule/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @ingroup yarp_devices_examples_cpp
* @defgroup exampleRemoteControlBoardModule exampleRemoteControlBoardModule
*
* @brief This example connects to a remote control board device (e.g. @ref CanBusControlBoard) as a module.
* @brief This example connects to a remote control board device (e.g. @ref CanBusBroker) as a module.
*
* <b>Legal</b>
*
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/exampleRemoteJr3/exampleRemoteJr3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @ingroup yarp_devices_examples_cpp
* @defgroup exampleRemoteJr3 exampleRemoteJr3
* @brief This example connects to a remote @ref Jr3 device.
* @brief This example connects to a remote Jr3 device.
*/

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* speed and period between consecutive points. The `yarp::dev::IRemoteVariables` interface is used
* to configure and switch to interpolated position (pi) mode on the real robot. Although prepared
* for remote execution, this application could be rewritten to connect to a local instance of
* @ref CanBusControlBoard. The techniques showcased here are best aimed at trajectories fully
* @ref CanBusBroker. The techniques showcased here are best aimed at trajectories fully
* available offline (e.g. loaded from file) that don't assume a constant period between points.
*
* Usage (showing default option values):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* speed and period between consecutive points. The `yarp::dev::IRemoteVariables` interface is used
* to configure and switch to interpolated position (pi) mode on the real robot. Although prepared
* for remote execution, this application could be rewritten to connect to a local instance of
* @ref CanBusControlBoard. The techniques showcased here are best aimed at trajectories fully
* @ref CanBusBroker. The techniques showcased here are best aimed at trajectories fully
* available offline (e.g. loaded from file) that assume a constant period between points. To fully
* take advantage of this fact, all points are sent to the robot in a single batch, hence the flow
* of the program is slightly different from what you'd expect (no delay function within a for-loop).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* A constant-velocity, single-joint trajectory is generated with configurable final target, motion
* speed and period between consecutive points. The period is assumed constant (maps to cyclic
* synchronous position mode on the real robot, a.k.a. CSP). A callback is registered for listening
* to a local synchronization loop managed by @ref CanBusControlBoard, position commands will be
* to a local synchronization loop managed by @ref CanBusBroker, position commands will be
* prepared and sent in response. The techniques showcased here are especially suited for
* online-generated trajectories, e.g. joystick teleoperation of visual servoing.
*
Expand Down Expand Up @@ -88,7 +88,7 @@ int main(int argc, char * argv[])
auto * syncObserverPtr = &syncObserver;

yarp::os::Property options;
options.put("device", yarp::os::Value("CanBusControlBoard"));
options.put("device", yarp::os::Value("CanBusBroker"));
options.put("buses", yarp::os::Value::makeList(bus.c_str()));
options.put(bus, yarp::os::Value::makeList(ipos.c_str()));
options.put("syncPeriod", yarp::os::Value(period));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* position mode on the real robot, a.k.a. CSP). A callback is registered for listening to a
* remote synchronization port, position commands will be prepared and sent in response.
* Although prepared for remote execution, this application could be rewritten to connect to
* a local instance of @ref CanBusControlBoard; however, a better alternative exists (see notes).
* a local instance of @ref CanBusBroker; however, a better alternative exists (see notes).
* The techniques showcased here are especially suited for online-generated trajectories, e.g.
* joystick teleoperation of visual servoing.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* speed and period between consecutive points. Although it is not mandatory, it is a good practice
* to force the period to be constant and sent at precise intervals if commanding the real robot
* (maps to cyclic synchronous position mode, a.k.a. CSP). Although prepared for remote execution,
* this application could be rewritten to connect to a local instance of @ref CanBusControlBoard;
* this application could be rewritten to connect to a local instance of @ref CanBusBroker;
* however, a better alternative exists (see notes). The techniques showcased here are especially
* suited for online-generated trajectories, e.g. joystick teleoperation or visual servoing.
*
Expand Down
2 changes: 1 addition & 1 deletion examples/python/exampleRemoteJr3.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## @ingroup yarp_devices_examples_py
# @defgroup exampleRemoteJr3Py exampleRemoteJr3.py
# @brief This example connects to a remote @ref Jr3 device.
# @brief This example connects to a remote Jr3 device.

## @example{lineno} exampleRemoteJr3.py

Expand Down
1 change: 1 addition & 0 deletions libraries/YarpDeviceMapperLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if(ENABLE_YarpDeviceMapperLib)

add_library(YarpDeviceMapperLib SHARED DeviceMapper.hpp
DeviceMapper.cpp
RawDevice.hpp
RawDevice.cpp
FutureTask.hpp
FutureTask.cpp
Expand Down
Loading

0 comments on commit 1c466d0

Please sign in to comment.